Channel

UaSDK. Channel

Your user's channel

Constructor

new Channel()

Properties:
Name Type Description
channel.id string

This channel's ID

channel.optedIn boolean

Is this channel opted in to push notifications?

channel.tags UaSDK.Channel.Tags

This channel's tags

channel.namedUser UaSDK.Channel.NamedUser

This channel's named user

Example
// You will access this through the sdk
UA.then(function(sdk) { sdk.channel })

Classes

NamedUser
Tags

Methods

optOut() → {Promise}

Opt this channel out of push notifications. In order to opt back in you need to call UaSDK#register again.

Returns:
Type:
Promise

Resolves to true