UAActionScheduleInfo

@interface UAActionScheduleInfo : UAScheduleInfo

Defines the scheduled action.

  • The schedule’s group.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSString *group;

    Swift

    var group: String? { get }
  • Actions payload to run when the schedule is triggered.

    Declaration

    Objective-C

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

    Swift

    var actions: [AnyHashable : Any]? { get }
  • Creates an action schedule info with a builder block.

    Declaration

    Objective-C

    + (nonnull instancetype)scheduleInfoWithBuilderBlock:
        (nonnull void (^)(UAActionScheduleInfoBuilder *_Nonnull))builderBlock;

    Swift

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

    Return Value

    The action schedule info.

  • Factory method to create an action schedule info from a JSON payload.

    Declaration

    Objective-C

    + (nullable instancetype)scheduleInfoWithJSON:(nonnull id)json
                                            error:(NSError *_Nullable *_Nullable)
                                                      error;

    Swift

    convenience init(json: Any) throws

    Parameters

    json

    The JSON payload.

    error

    An NSError pointer for storing errors, if applicable.

    Return Value

    An action schedule info or nil if the JSON is invalid.