setRemoteConfigAutomaticDownload static method
- @Deprecated('Use remoteConfigRegisterDownloadCallback of CountlyConfig instead')
- dynamic callback()
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;
}