UAScheduleInfoBuilder

@interface UAScheduleInfoBuilder : NSObject

Builder class for UAScheduleInfo.

  • The schedule’s priority. Schedules are executed by priority in ascending order.

    Optional. Defaults to 0.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSInteger priority;

    Swift

    var priority: Int { get set }
  • The max number of times the schedule may be executed.

    Optional. Defaults to 1.

    For in-app messages, if the audience condition checks fail, and the miss behavior is skip, the triggered schedule will not count towards the limit.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSUInteger limit;

    Swift

    var limit: UInt { get set }
  • Array of triggers. Triggers define conditions on when to execute the schedule.

    An array with between 1 and 10 triggers is required.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable)
        NSArray<UAScheduleTrigger *> *triggers;

    Swift

    var triggers: [UAScheduleTrigger]? { get set }
  • The schedule’s start time.

    Optional.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSDate *start;

    Swift

    var start: Date? { get set }
  • end

    The schedule’s end time. After the end time the schedule will be finished.

    Optional.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSDate *end;

    Swift

    var end: Date? { get set }
  • The schedule’s delay.

    Optional.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) UAScheduleDelay *delay;

    Swift

    var delay: UAScheduleDelay? { get set }
  • The schedule’s edit grace period. The amount of time the schedule will still be editable after it has expired or finished executing.

    Optional. Defaults to 0.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSTimeInterval editGracePeriod;

    Swift

    var editGracePeriod: TimeInterval { get set }
  • The schedule’s interval. The amount of time to pause the schedule after executing.

    Optional. Defaults to 0.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSTimeInterval interval;

    Swift

    var interval: TimeInterval { get set }