UAInAppMessageAudienceBuilder

@interface UAInAppMessageAudienceBuilder : NSObject

Builder class for UAInAppMessageAudience.

  • The notifications opt in flag.

    Optional.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSNumber *notificationsOptIn;

    Swift

    var notificationsOptIn: NSNumber? { get set }
  • The location opt in flag.

    Optional.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSNumber *locationOptIn;

    Swift

    var locationOptIn: NSNumber? { get set }
  • The language tags.

    Optional.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable)
        NSArray<NSString *> *languageTags;

    Swift

    var languageTags: [String]? { get set }
  • The tag selector.

    Optional.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable)
        UAInAppMessageTagSelector *tagSelector;

    Swift

    var tagSelector: UAInAppMessageTagSelector? { get set }
  • The app version predicate.

    Optional.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable)
        UAJSONPredicate *versionPredicate;

    Swift

    var versionPredicate: UAJSONPredicate? { get set }
  • The audience check miss behavior.

    Optional. Defaults to UAInAppMessageAudienceMissBehaviorPenalize.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        UAInAppMessageAudienceMissBehaviorType missBehavior;

    Swift

    var missBehavior: UAInAppMessageAudienceMissBehaviorType { get set }
  • Checks if the builder is valid and will produce a audience.

    Declaration

    Objective-C

    - (BOOL)isValid;

    Swift

    func isValid() -> Bool

    Return Value

    YES if the builder is valid, otherwise NO.