NamedUser

UaSDK.Channel. NamedUser

Your user's named user.

Constructor

new NamedUser()

Properties:
Name Type Description
channel.namedUser.tags UaSDK.Channel.namedUser.Tags

This namedUser's tags

channel.namedUser.attributes UaSDK.Channel.namedUser.Attributes

This namedUser's attributes

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

Members

id

Deprecated:
  • accessing the named user id may return a non-canonical response if the channel association has been changed outside of the browser session.

Methods

(async) remove() → {Promise}

Removes this channel from its named_user

Fires:
Returns:
Type:
Promise

Resolves to true if removed, false if there is no named user to remove.

(async) set(name) → {Promise}

Associates this channel with the named_user passed in.

Parameters:
Name Type Description
name string
Fires:
Returns:
Type:
Promise

Resolves to true if set, false if already set.