setRemoteConfigAutomaticDownload method

  1. @Deprecated('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('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;
}