TagGroupEditor

TagGroupEditor

new TagGroupEditor(nativeMethod)

Helper object to edit tag groups. Normally not created directly. Instead use UrbanAirship.editNamedUserTagGroups or UrbanAirship.editChannelTagGroups.
Source:
Parameters:
Name Type Description
nativeMethod The native method to call on apply.

Methods

addTags(tagGroup, tags) → {TagGroupEditor}

Adds tags to a tag group.
Source:
Parameters:
Name Type Description
tagGroup string The tag group.
tags array.<string> Tags to add.
Returns:
Type:
TagGroupEditor
The tag group editor instance.

apply(successopt, failureopt) → {TagGroupEditor}

Applies the tag 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:
TagGroupEditor
The tag group editor instance.

removeTags(tagGroup, tags) → {TagGroupEditor}

Removes a tag from the tag group.
Source:
Parameters:
Name Type Description
tagGroup string The tag group.
tags array.<string> Tags to remove.
Returns:
Type:
TagGroupEditor
The tag group editor instance.