INNER CODE UNIT · Dart
setProxyURL
RevenueCat/purchases-flutter · lib/purchases_flutter.dart:796
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
/// purchases.
///
/// This method should be called anytime a sync is needed, like after a
/// successful purchase.
static Future<void> syncPurchases() => _channel.invokeMethod('syncPurchases');