UATagSelector
Objective-C
@interface UATagSelector : NSObject
Swift
class TagSelector : NSObject
Model object for an audience tag selector.
-
Creates an AND tag selector.
Declaration
Objective-C
+ (nonnull instancetype)and:(nonnull NSArray<UATagSelector *> *)selectors;
Swift
class func and(_ selectors: [TagSelector]) -> Self
Parameters
selectors
An array of selectors to AND together.
Return Value
The AND tag selector.
-
Creates an OR tag selector.
Declaration
Objective-C
+ (nonnull instancetype)or:(nonnull NSArray<UATagSelector *> *)selectors;
Swift
class func or(_ selectors: [TagSelector]) -> Self
Parameters
selectors
An array of selectors to OR together.
Return Value
The OR tag selector.
-
Creates a NOT tag selector.
Declaration
Objective-C
+ (nonnull instancetype)not:(nonnull UATagSelector *)selector;
Swift
class func not(_ selector: TagSelector) -> Self
Parameters
selector
A selector to apply NOT to.
Return Value
The NOT tag selector.
-
Creates a tag selector that checks for tag.
Declaration
Objective-C
+ (nonnull instancetype)tag:(nonnull NSString *)tag;
Swift
class func tag(_ tag: String) -> Self
Parameters
tag
The tag.
Return Value
The tag selector.
-
Applies the tag selector to an array of tags.
Declaration
Objective-C
- (BOOL)apply:(nonnull NSArray<NSString *> *)tags;
Swift
func apply(_ tags: [String]) -> Bool
Parameters
tags
The array of tags.
Return Value
YES if the tag selector matches the tags, otherwise NO.