remoteConfigUpdate static method

  1. @Deprecated('Use remoteConfigDownloadValues instead')
Future<String?> remoteConfigUpdate(
  1. dynamic callback(
    1. String?
    )
)

Implementation

@Deprecated('Use remoteConfigDownloadValues instead')
static Future<String?> remoteConfigUpdate(Function(String?) callback) async {
  if (!_instance._countlyState.isInitialized) {
    String message = '"initWithConfig" must be called before "remoteConfigUpdate"';
    log('remoteConfigUpdate, $message', logLevel: LogLevel.ERROR);
    return message;
  }
  log('Calling "remoteConfigUpdate"');
  final String? result = await _channel.invokeMethod('remoteConfigUpdate');

  callback(result);
  return result;
}