INNER CODE UNIT · Dart

setSimulatesAskToBuyInSandbox

RevenueCat/purchases-flutter · lib/purchases_flutter.dart:790

  static Future<void> setSimulatesAskToBuyInSandbox(bool enabled) => _channel
      .invokeMethod('setSimulatesAskToBuyInSandbox', {'enabled': enabled});

  ///
  /// Set this property to your proxy URL before configuring Purchases *only* if you've received a proxy key value from your RevenueCat contact.
  ///
  static Future<void> setProxyURL(String url) =>
      _channel.invokeMethod('setProxyURLString', {'proxyURLString': url});

  /// Gets current customer info, which will normally be cached.
  static Future<CustomerInfo> getCustomerInfo() async {
    final result = await _channel.invokeMethod('getCustomerInfo');
    return CustomerInfo.fromJson(Map<String, dynamic>.from(result));
  }

  ///  This method will send all the purchases to the RevenueCat backend.
  ///
  ///  **WARNING**: Call this when using your own implementation of in-app

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…