ContactSubscriptionListEditor

ContactSubscriptionListEditor

new ContactSubscriptionListEditor(nativeMethod)

Helper object to subscribe/unsubscribe to/from a list. Normally not created directly. Instead use UrbanAirship.editContactSubscriptionLists.
Source:
Parameters:
Name Type Description
nativeMethod The native method to call on apply.

Methods

apply(successopt, failureopt) → {ContactSubscriptionListEditor}

Applies subscription list changes.
Source:
Parameters:
Name Type Attributes Description
success function <optional>
Success callback.
failure function <optional>
Failure callback.
Name Type Description
message string The failure message.
Returns:
Type:
ContactSubscriptionListEditor
The subscription List editor instance.

subscribe(subscriptionListID, contactScope) → {ContactSubscriptionListEditor}

Subscribes to a contact list.
Source:
Parameters:
Name Type Description
subscriptionListID subscriptionListID The subscription list identifier.
contactScope contactScope Defines the channel types that the change applies to.
Returns:
Type:
ContactSubscriptionListEditor
The subscription list editor instance.

unsubscribe(subscriptionListID, contactScope) → {ContactSubscriptionListEditor}

Unsubscribes from a contact list.
Source:
Parameters:
Name Type Description
subscriptionListID subscriptionListID The subscription list identifier.
contactScope contactScope Defines the channel types that the change applies to.
Returns:
Type:
ContactSubscriptionListEditor
The subscription list editor instance.