UAScheduleAudienceBuilder

Objective-C

@interface UAScheduleAudienceBuilder : NSObject

Swift

class UAScheduleAudienceBuilder : NSObject

Builder class for UAScheduleAudience.

  • The notifications opt in flag.

    Optional.

    Declaration

    Objective-C

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

    Swift

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

    Optional.

    Declaration

    Objective-C

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

    Swift

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

    Optional.

    Declaration

    Objective-C

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

    Swift

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

    Optional.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UATagSelector *tagSelector;

    Swift

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

    Optional.

    Declaration

    Objective-C

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

    Swift

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

    Optional. Defaults to UAScheduleAudienceMissBehaviorPenalize.

    Declaration

    Objective-C

    @property (nonatomic) UAScheduleAudienceMissBehaviorType missBehavior;

    Swift

    var missBehavior: UAScheduleAudienceMissBehaviorType { 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.