setRemoteConfigAutomaticDownload static method

  1. @Deprecated('Use remoteConfigRegisterDownloadCallback of CountlyConfig instead')
Future<String?> setRemoteConfigAutomaticDownload(
  1. dynamic callback(
    1. String?
    )
)

Set Automatic value download happens when the SDK is initiated or when the device ID is changed. Should be call before Countly init

Implementation

@Deprecated('Use remoteConfigRegisterDownloadCallback of CountlyConfig instead')
static Future<String?> setRemoteConfigAutomaticDownload(Function(String?) callback) async {
  log('Calling "setRemoteConfigAutomaticDownload"');
  log('setRemoteConfigAutomaticDownload is deprecated, use setRemoteConfigAutomaticDownload of CountlyConfig instead', logLevel: LogLevel.WARNING);
  final String? result = await _channel.invokeMethod('setRemoteConfigAutomaticDownload');

  callback(result);
  return result;
}