updateRemoteConfigExceptKeys static method

  1. @Deprecated('Use remoteConfigDownloadOmittingValues instead')
Future<String?> updateRemoteConfigExceptKeys(
  1. List<String> keys,
  2. dynamic callback(
    1. String?
    )
)

Implementation

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

  callback(result);
  return result;
}