public abstract class

TagEditor

extends Object
java.lang.Object
   ↳ com.urbanairship.channel.TagEditor

Class Overview

Channel tag editor. See AirshipChannel#editTags().

Summary

Public Methods
TagEditor addTag(String tag)
Adds a tag.
TagEditor addTags(Set<String> tags)
Adds tags.
void apply()
Applies the tag changes.
TagEditor clear()
Clears all tags.
TagEditor removeTag(String tag)
Removes a tag.
TagEditor removeTags(Set<String> tags)
Removes tags.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public TagEditor addTag (String tag)

Adds a tag.

Parameters
tag Tag to add.
Returns
  • The TagEditor instance.

public TagEditor addTags (Set<String> tags)

Adds tags.

Parameters
tags Tags to add.
Returns
  • The TagEditor instance.

public void apply ()

Applies the tag changes.

public TagEditor clear ()

Clears all tags.

Tags will be cleared first during apply, then the other operations will be applied.

Returns
  • The TagEditor instance.

public TagEditor removeTag (String tag)

Removes a tag.

Parameters
tag Tag to remove.
Returns
  • The TagEditor instance.

public TagEditor removeTags (Set<String> tags)

Removes tags.

Parameters
tags Tags to remove.
Returns
  • The TagEditor instance.