urbanairship-core/src/main/java/com/urbanairship/push/PushManager.java
public TagGroupsEditor editTagGroups() {
        return new TagGroupsEditor() {
            @Override
            protected boolean allowTagGroupChange(String tagGroup) {
                if (channelTagRegistrationEnabled && DEFAULT_TAG_GROUP.equals(tagGroup)) {
                    Logger.error("Unable to add tags to `device` tag group when `channelTagRegistrationEnabled` is true.");
                    return false;
                }

                return true;
            }

            @Override
            protected void onApply(List<TagGroupsMutation> collapsedMutations) {

                if (collapsedMutations.isEmpty()) {
                    return;
                }

                tagGroupRegistrar.addMutations(TagGroupRegistrar.CHANNEL, collapsedMutations);

                if (getChannelId() != null) {
                    dispatchUpdateTagGroupsJob();
                }
            }
        };
    }
/**
     * Edit the channel tag groups.
     *
     * @return A {@link TagGroupsEditor}.
     */
Edit the channel tag groups.
Edit the channel tag groups .
public TagGroupsEditor editTagGroups() {
        return new TagGroupsEditor() {
            @Override
            protected boolean allowTagGroupChange(String tagGroup) {
                if (channelTagRegistrationEnabled && DEFAULT_TAG_GROUP.equals(tagGroup)) {
                    Logger.error("Unable to add tags to `device` tag group when `channelTagRegistrationEnabled` is true.");
                    return false;
                }
                return true;
            }
            @Override
            protected void onApply(List<TagGroupsMutation> collapsedMutations) {
                if (collapsedMutations.isEmpty()) {
                    return;
                }
                tagGroupRegistrar.addMutations(TagGroupRegistrar.CHANNEL, collapsedMutations);
                if (getChannelId() != null) {
                    dispatchUpdateTagGroupsJob();
                }
            }
        };
    }
public TagGroupsEditor editTagGroups ( ) { return new TagGroupsEditor ( ) { @ Override protected boolean allowTagGroupChange ( String tagGroup ) { if ( channelTagRegistrationEnabled && DEFAULT_TAG_GROUP . equals ( tagGroup ) ) { Logger . error ( "Unable to add tags to `device` tag group when `channelTagRegistrationEnabled` is true." ) ; return false ; } return true ; } @ Override protected void onApply ( List < TagGroupsMutation > collapsedMutations ) { if ( collapsedMutations . isEmpty ( ) ) { return ; } tagGroupRegistrar . addMutations ( TagGroupRegistrar . CHANNEL , collapsedMutations ) ; if ( getChannelId ( ) != null ) { dispatchUpdateTagGroupsJob ( ) ; } } } ; }
Edit the channel tag groups.
Edit the channel tag groups .