UATagUtils Class Reference
Inherits from | NSObject |
Declared in | UATagUtils.h |
Class Methods
addPendingTags:group:pendingTagsDictionary:
Add tags to pending tags.
+ (NSDictionary *)addPendingTags:(NSArray *)tagsToAdd group:(NSString *)tagGroup pendingTagsDictionary:(NSDictionary *)pendingTags
Parameters
- tagsToAdd
Tags to combine with pending tags.
- tagGroup
Tag group ID to combine with pending tags.
- pendingTags
The pending tags to add to.
Return Value
The combined tags.
Discussion
Note: This method is for internal use only. It is called when modifying tag groups.
Declared In
UATagUtils.h
createTags:
Creates an autoreleased NSArray containing tags specified in the tags parameter, a bit field accepting UATagType flags. (Deprecated: As of version 6.3.0.)
+ (NSArray *)createTags:(UATagType)tags
Parameters
- tags
to create
Return Value
The tags as an NSArray.
Declared In
UATagUtils.h
isValid:group:
Check if tags and tagGroupID are not empty.
+ (BOOL)isValid:(NSArray *)tags group:(NSString *)tagGroup
Parameters
- tags
Tags as an NSArray.
- tagGroup
Tag group ID as an NSString.
Discussion
Note: This method is for internal use only. It is called when modifying tag groups.
Declared In
UATagUtils.h
normalizeTags:
Used to trim whitespace and filter out tags with unacceptable tag length.
+ (NSArray<NSString*> *)normalizeTags:(NSArray *)tags
Parameters
- tags
Tags as an NSArray.
Discussion
Note: This method is for internal use only. It is called when tags are set.
Declared In
UATagUtils.h
removePendingTags:group:pendingTagsDictionary:
Remove tags from pending tags.
+ (NSDictionary *)removePendingTags:(NSArray *)tagsToRemove group:(NSString *)tagGroup pendingTagsDictionary:(NSDictionary *)pendingTags
Parameters
- tagsToRemove
Tags to remove from pending tags.
- tagGroup
Tag groupID to combine with pending tags.
- pendingTags
The pending tags to remove tags from.
Return Value
The combined tags.
Discussion
Note: This method is for internal use only. It is called when modifying tag groups.
Declared In
UATagUtils.h