setRemoteConfigAutomaticDownload method

  1. @Deprecated('This function is deprecated, please use remoteConfigRegisterGlobalCallback instead')
CountlyConfig setRemoteConfigAutomaticDownload(
  1. bool enabled,
  2. dynamic callback(
    1. String? error
    )
)

If enable, will automatically download newest remote config values. enabled set true for enabling it callback callback called after the update was done

Implementation

@Deprecated('This function is deprecated, please use remoteConfigRegisterGlobalCallback instead')

/// If enable, will automatically download newest remote config values.
/// enabled set true for enabling it
/// callback callback called after the update was done
CountlyConfig setRemoteConfigAutomaticDownload(bool enabled, Function(String? error) callback) {
  _enableRemoteConfigAutomaticDownload = enabled;
  Countly.setRemoteConfigCallback(callback);
  return this;
}