UAScheduleDelayBuilder

@interface UAScheduleDelayBuilder : NSObject

Builder class for UAScheduleDelay.

  • Minimum amount of time to wait in seconds before the schedule actions are able to execute.

    Optional.

    Declaration

    Objective-C

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

    Swift

    var seconds: TimeInterval { get set }
  • Specifies the names of the app screens that will trigger the schedule’s actions if viewed. Specifying screens requires the application to make use of UAAnalytic’s screen tracking method trackScreen:.

    Optional.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSArray *screens;

    Swift

    var screens: [Any]? { get set }
  • Specifies the ID of a region that the device must currently be in before the schedule’s actions are able to be executed. Specifying regions requires the application to add UARegionEvents to UAAnalytics.

    Optional.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *regionID;

    Swift

    var regionID: String? { get set }
  • Specifies the app state that is required before the schedule’s actions are able to execute. Defaults to UAScheduleDelayAppStateAny.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UAScheduleDelayAppState appState;

    Swift

    var appState: UAScheduleDelayAppState { get set }
  • Array of cancellation triggers. Cancellation triggers define conditions on when to cancel the pending execution of schedule’s actions. If the delayed execution is cancelled, it will not cancel the schedule or count against the schedule’s limit.

    Optional.

    Declaration

    Objective-C

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

    Swift

    var cancellationTriggers: [UAScheduleTrigger]? { get set }