INNER CODE UNIT · Dart

setDebugLogsEnabled

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

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

  /// Configures log level
  /// Used to set the log level. Useful for debugging issues with the lovely team @RevenueCat.
  /// The default is {LOG_LEVEL.INFO} in release builds and {LOG_LEVEL.DEBUG} in debug builds.
  static Future<void> setLogLevel(LogLevel level) => _channel.invokeMethod(
        'setLogLevel',
        {'level': level.name.toUpperCase()},
      );

  ///
  /// iOS only. Set this property to true *only* when testing the ask-to-buy / SCA purchases flow.
  /// More information: http://errors.rev.cat/ask-to-buy
  ///
  static Future<void> setSimulatesAskToBuyInSandbox(bool enabled) => _channel
      .invokeMethod('setSimulatesAskToBuyInSandbox', {'enabled': enabled});

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…