UAScheduleAudience

Objective-C

@interface UAScheduleAudience : NSObject

Swift

class UAScheduleAudience : NSObject

Model object for an in-app message audience constraint.

Note

This object is built using UAScheduleAudienceBuilder.
  • The notifications opt in flag.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray<NSString *> *languageIDs;

    Swift

    var languageIDs: [String]? { get }
  • The tag selector

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic, readonly) UAScheduleAudienceMissBehaviorType missBehavior;

    Swift

    var missBehavior: UAScheduleAudienceMissBehaviorType { get }
  • Factory method for building audience model from a builder block.

    Declaration

    Objective-C

    + (nullable instancetype)audienceWithBuilderBlock:
        (nonnull void (^)(UAScheduleAudienceBuilder *_Nonnull))builderBlock;

    Swift

    convenience init?(builderBlock: @escaping (UAScheduleAudienceBuilder) -> Void)

    Parameters

    builderBlock

    The builder block. @returns YES if the builderBlock was able to be applied, otherwise NO.