UAInAppMessageTagSelector

@interface UAInAppMessageTagSelector : NSObject

Model object for an in-app message audience constraint’s tag selector.

  • Creates an AND tag selector.

    Declaration

    Objective-C

    + (nonnull instancetype)
        and:(nonnull NSArray<UAInAppMessageTagSelector *> *)selectors;

    Swift

    class func and(_ selectors: [UAInAppMessageTagSelector]) -> 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<UAInAppMessageTagSelector *> *)selectors;

    Swift

    class func or(_ selectors: [UAInAppMessageTagSelector]) -> 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 UAInAppMessageTagSelector *)selector;

    Swift

    class func not(_ selector: UAInAppMessageTagSelector) -> 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.