AirshipSDK.AirshipChannel Class Reference
Airship channel. More...
Public Member Functions | |
| string? | GetChannelId () |
| Gets the channel ID associated with the device. | |
| IEnumerator | WaitForChannelId (Action< string > onComplete, Action< Exception > onError=null) |
| Waits for the channel ID asynchronously using a coroutine. | |
| IEnumerable< string > | GetTags () |
| Gets the tags currently set for the device. | |
| TagEditor | EditTags () |
| Returns an editor for channel tags. | |
| TagGroupEditor | EditTagGroups () |
| Returns an editor for channel tag groups. | |
| AttributeEditor | EditAttributes () |
| Returns an editor for channel attributes. | |
| IEnumerator | GetSubscriptionLists (Action< IEnumerable< string > > onComplete, Action< Exception > onError=null) |
| Gets the channel's subscription lists asynchronously using a coroutine. | |
| SubscriptionListEditor | EditSubscriptionLists () |
| Returns an editor for channel subscription lists. | |
Detailed Description
Airship channel.
Member Function Documentation
◆ EditAttributes()
|
inline |
Returns an editor for channel attributes.
- Returns
- A AttributeEditor for channel attributes.
◆ EditSubscriptionLists()
|
inline |
Returns an editor for channel subscription lists.
- Returns
- A SubscriptionListEditor.
◆ EditTagGroups()
|
inline |
Returns an editor for channel tag groups.
- Returns
- A TagGroupEditor for channel tag groups.
◆ EditTags()
|
inline |
Returns an editor for channel tags.
- Returns
- A TagEditor for channel tags.
◆ GetChannelId()
|
inline |
Gets the channel ID associated with the device.
- Returns
- The channel ID.
◆ GetSubscriptionLists()
|
inline |
Gets the channel's subscription lists asynchronously using a coroutine.
This method does not block Unity's main thread.
- Parameters
-
onComplete Callback invoked with the subscription lists when the operation completes. onError Optional callback invoked if an error occurs.
- Returns
- A coroutine that can be started with StartCoroutine.
◆ GetTags()
|
inline |
Gets the tags currently set for the device.
- Returns
- The tags.
◆ WaitForChannelId()
|
inline |
Waits for the channel ID asynchronously using a coroutine.
If the channel ID is not yet created, this method will wait for it before completing. After the channel ID is created, this method functions the same as getChannelId(). This method does not block Unity's main thread.
- Parameters
-
onComplete Callback invoked with the channel ID when the operation completes. onError Optional callback invoked if an error occurs.
- Returns
- A coroutine that can be started with StartCoroutine.
1.9.8