setAutoLaunchDefaultPreferenceCenter method

Future<void> setAutoLaunchDefaultPreferenceCenter(
  1. String preferenceCenterID,
  2. bool autoLaunch
)

Enables or disables auto launching the Preference Center with the given preferenceCenterID. If auto launch is enabled, Airship will show an OOTB UI for the given preference center ID. If disabled, a display preference center event will be emitted.

Implementation

Future<void> setAutoLaunchDefaultPreferenceCenter(String preferenceCenterID, bool autoLaunch) async {
  return await _module.channel.invokeMethod('preferenceCenter#setAutoLaunch', [preferenceCenterID, autoLaunch]);
}