Airship Message Center. More...
Public Member Functions | |
| IEnumerator | GetUnReadCount (Action< int > onComplete, Action< Exception > onError=null) |
| Gets the number of unread messages for the message center asynchronously using a coroutine. | |
| IEnumerator | GetMessages (Action< IEnumerable< InboxMessage > > onComplete, Action< Exception > onError=null) |
| Gets the inbox messages asynchronously using a coroutine. | |
| void | MarkMessageRead (string messageId) |
| Mark an inbox message as having been read. | |
| void | DeleteMessage (string messageId) |
| Delete an inbox message. | |
| IEnumerator | RefreshInbox (Action onComplete=null, Action< Exception > onError=null) |
| Refreshes the inbox asynchronously using a coroutine. | |
| void | SetAutoLaunchDefaultMessageCenter (bool enabled) |
| Sets the default behavior when the message center is launched from a push notification. | |
| void | Display (string? messageId) |
| Requests to display the Message Center. | |
| void | Dismiss () |
| Dismisses the OOTB message center if displayed. | |
| void | ShowMessageView (string messageId) |
| Overlays the message view. | |
| void | ShowMessageCenter (string? messageId) |
| Overlays the message center regardless if auto launch Message Center is enabled or not. | |
Detailed Description
Airship Message Center.
Member Function Documentation
◆ DeleteMessage()
Delete an inbox message.
- Parameters
-
messageId The messageId for the message.
References AirshipSDK.List.
◆ Dismiss()
|
inline |
Dismisses the OOTB message center if displayed.
◆ Display()
Requests to display the Message Center.
Will either emit an event to display the Message Center if auto launch message center is disabled, or display the OOTB message center.
- Parameters
-
messageId Optional message Id.
References AirshipSDK.List.
◆ GetMessages()
|
inline |
Gets the inbox messages asynchronously using a coroutine.
This method does not block Unity's main thread.
- Parameters
-
onComplete Callback invoked with the messages when the operation completes. onError Optional callback invoked if an error occurs.
- Returns
- A coroutine that can be started with StartCoroutine.
References AirshipSDK.List.
◆ GetUnReadCount()
|
inline |
Gets the number of unread messages for the message center asynchronously using a coroutine.
This method does not block Unity's main thread.
- Parameters
-
onComplete Callback invoked with the unread count when the operation completes. onError Optional callback invoked if an error occurs.
- Returns
- A coroutine that can be started with StartCoroutine.
References AirshipSDK.List.
◆ MarkMessageRead()
Mark an inbox message as having been read.
- Parameters
-
messageId The messageId for the message.
References AirshipSDK.List.
◆ RefreshInbox()
|
inline |
Refreshes the inbox asynchronously using a coroutine.
This method does not block Unity's main thread.
- Parameters
-
onComplete Optional callback invoked when the operation completes. onError Optional callback invoked if an error occurs.
- Returns
- A coroutine that can be started with StartCoroutine.
References AirshipSDK.List.
◆ SetAutoLaunchDefaultMessageCenter()
Sets the default behavior when the message center is launched from a push notification.
- Parameters
-
enabled trueto automatically launch the default message center. Iffalsethe message center must be manually launched by the app.
References AirshipSDK.List.
◆ ShowMessageCenter()
Overlays the message center regardless if auto launch Message Center is enabled or not.
- Parameters
-
messageId Optional message Id.
References AirshipSDK.List.
◆ ShowMessageView()
Overlays the message view.
Should be used to display the actual message body in a custom Message Center.
- Parameters
-
messageId The message Id.
References AirshipSDK.List.
1.9.8