Airship Unity Plugin 10.0.0
  • AirshipSDK
  • AirshipContact
Public Member Functions | List of all members
AirshipSDK.AirshipContact Class Reference

Airship contact. More...

Public Member Functions

void Identify (string namedUserId)
 Identifies the contact with a named user Id.
 
void Reset ()
 Resets the contact.
 
void NotifyRemoteLogin ()
 Notifies Airship of a remote login, prompting it to refresh the contact's data.
 
IEnumerator GetNamedUserId (Action< string > onComplete, Action< Exception > onError=null)
 Gets the named user Id asynchronously using a coroutine.
 
TagGroupEditor EditTagGroups ()
 Returns an editor for contact tag groups.
 
AttributeEditor EditAttributes ()
 Returns an editor for contact attributes.
 
IEnumerator GetSubscriptionLists (Action< Dictionary< string, IEnumerable< string > > > onComplete, Action< Exception > onError=null)
 Gets the contact's subscription lists asynchronously using a coroutine.
 
ScopedSubscriptionListEditor EditSubscriptionLists ()
 Returns an editor for contact subscription lists.
 

Detailed Description

Airship contact.

Member Function Documentation

◆ EditAttributes()

AttributeEditor AirshipSDK.AirshipContact.EditAttributes ( )
inline

Returns an editor for contact attributes.

Returns
A AttributeEditor for contact attributes.

◆ EditSubscriptionLists()

ScopedSubscriptionListEditor AirshipSDK.AirshipContact.EditSubscriptionLists ( )
inline

Returns an editor for contact subscription lists.

Returns
A SubscriptionListEditor.

◆ EditTagGroups()

TagGroupEditor AirshipSDK.AirshipContact.EditTagGroups ( )
inline

Returns an editor for contact tag groups.

Returns
A TagGroupEditor for contact tag groups.

◆ GetNamedUserId()

IEnumerator AirshipSDK.AirshipContact.GetNamedUserId ( Action< string >  onComplete,
Action< Exception >  onError = null 
)
inline

Gets the named user Id asynchronously using a coroutine.

This method does not block Unity's main thread.

Parameters
onCompleteCallback invoked with the named user Id when the operation completes.
onErrorOptional callback invoked if an error occurs.
Returns
A coroutine that can be started with StartCoroutine.

◆ GetSubscriptionLists()

IEnumerator AirshipSDK.AirshipContact.GetSubscriptionLists ( Action< Dictionary< string, IEnumerable< string > > >  onComplete,
Action< Exception >  onError = null 
)
inline

Gets the contact's subscription lists asynchronously using a coroutine.

This method does not block Unity's main thread.

Parameters
onCompleteCallback invoked with the subscription lists when the operation completes.
onErrorOptional callback invoked if an error occurs.
Returns
A coroutine that can be started with StartCoroutine.

◆ Identify()

void AirshipSDK.AirshipContact.Identify ( string  namedUserId)
inline

Identifies the contact with a named user Id.

Parameters
namedUserIdThe named user Id.

◆ NotifyRemoteLogin()

void AirshipSDK.AirshipContact.NotifyRemoteLogin ( )
inline

Notifies Airship of a remote login, prompting it to refresh the contact's data.

◆ Reset()

void AirshipSDK.AirshipContact.Reset ( )
inline

Resets the contact.


Generated on Wed Sep 2 2026 21:27:03 for Airship Unity Plugin by   doxygen 1.9.8