AirshipSDK.AirshipPreferenceCenter Class Reference
Airship Preference Center. More...
Public Member Functions | |
| void | Display (string preferenceCenterId) |
| Requests to display a preference center. | |
| IEnumerator | GetConfig (string preferenceCenterId, Action< PreferenceCenterConfig > onComplete, Action< Exception > onError=null) |
| Gets the preference center config asynchronously using a coroutine. | |
| void | SetAutoLaunchDefaultPreferenceCenter (string preferenceCenterId, bool autoLaunch) |
Enables or disables showing the OOTB UI when requested to display by either Display or by a notification with some other action. | |
Detailed Description
Airship Preference Center.
Member Function Documentation
◆ Display()
Requests to display a preference center.
Will either emit an event to display the Preference Center if auto launch is disabled, or display the OOTB UI.
- Parameters
-
preferenceCenterId The preference center Id.
References AirshipSDK.List.
◆ GetConfig()
|
inline |
Gets the preference center config asynchronously using a coroutine.
This method does not block Unity's main thread.
- Parameters
-
preferenceCenterId The preference center Id. onComplete Callback invoked with the config when the operation completes. onError Optional callback invoked if an error occurs.
- Returns
- A coroutine that can be started with StartCoroutine.
References AirshipSDK.List.
◆ SetAutoLaunchDefaultPreferenceCenter()
|
inline |
Enables or disables showing the OOTB UI when requested to display by either Display or by a notification with some other action.
- Parameters
-
preferenceCenterId The preference center Id. autoLaunch true to show OOTB UI, false to emit events.
References AirshipSDK.List.
1.9.8