updateRemoteConfigForKeysOnly static method
Implementation
@Deprecated('Use remoteConfigDownloadSpecificValue instead')
static Future<String?> updateRemoteConfigForKeysOnly(List<String> keys, Function(String?) callback) async {
if (!_instance._countlyState.isInitialized) {
String message = '"initWithConfig" must be called before "updateRemoteConfigForKeysOnly"';
log('updateRemoteConfigForKeysOnly, $message', logLevel: LogLevel.ERROR);
return message;
}
String keysString = keys.toString();
log('Calling "updateRemoteConfigForKeysOnly":[$keysString]');
if (keys.isEmpty) {
String error = 'updateRemoteConfigForKeysOnly, keys List is empty';
log(error, logLevel: LogLevel.WARNING);
}
log(keys.toString());
final String? result = await _channel.invokeMethod('updateRemoteConfigForKeysOnly', <String, dynamic>{'data': json.encode(keys)});
callback(result);
return result;
}