UAScheduleEdits

Objective-C

@interface UAScheduleEdits : NSObject

Swift

class UAScheduleEdits : NSObject

Schedule edits.

Schedule Edits Properties

  • The schedule’s priority. Priority is optional and defaults to 0. Schedules are executed by priority in ascending order.

    Declaration

    Objective-C

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

    Swift

    var priority: NSNumber? { get }
  • Number of times the actions will be triggered until the schedule is finished.

    Declaration

    Objective-C

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

    Swift

    var limit: NSNumber? { get }
  • The schedule’s start time.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDate *start;

    Swift

    var start: Date? { get }
  • end

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

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDate *end;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDictionary *metadata;

    Swift

    var metadata: [AnyHashable : Any]? { get }
  • The schedule’s interval. The amount of time to pause the schedule after executing.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var editGracePeriod: NSNumber? { get }
  • The audience conditions for the message.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) UAScheduleAudience *audience;

    Swift

    var audience: UAScheduleAudience? { get }

Schedule Edit Methods

  • Creates edits that also updates the schedule’s data as an in-app message.

    Declaration

    Objective-C

    + (nonnull instancetype)
        editsWithMessage:(nonnull UAInAppMessage *)message
            builderBlock:
                (nonnull void (^)(UAScheduleEditsBuilder *_Nonnull))builderBlock;

    Swift

    convenience init(message: UAInAppMessage, builderBlock: @escaping (UAScheduleEditsBuilder) -> Void)

    Parameters

    message

    The message.

    builderBlock

    The builder block.

    Return Value

    The schedule edits.

  • Creates edits that also updates the schedule’s data as actions.

    Declaration

    Objective-C

    + (nonnull instancetype)
        editsWithActions:(nonnull NSDictionary *)actions
            builderBlock:
                (nonnull void (^)(UAScheduleEditsBuilder *_Nonnull))builderBlock;

    Swift

    convenience init(actions: [AnyHashable : Any], builderBlock: @escaping (UAScheduleEditsBuilder) -> Void)

    Parameters

    actions

    The actions.

    builderBlock

    The builder block.

    Return Value

    The schedule edits.

  • Creates schedule edits.

    Declaration

    Objective-C

    + (nonnull instancetype)editsWithBuilderBlock:
        (nonnull void (^)(UAScheduleEditsBuilder *_Nonnull))builderBlock;

    Swift

    convenience init(builderBlock: @escaping (UAScheduleEditsBuilder) -> Void)

    Parameters

    builderBlock

    The builder block.

    Return Value

    The schedule edits.