One Logo Pool Ball
WorkoutKit · IOS API REFERENCE

WorkoutScheduler

class · iOS 17.0+ · SDK 27.1

final class WorkoutScheduler

Members (10)

get · iOS 17.0+

maxAllowedScheduledWorkoutCount

TypeScript
static get maxAllowedScheduledWorkoutCount(): number
Swift declaration
static let maxAllowedScheduledWorkoutCount: Int
get · iOS 17.0+

isSupported

TypeScript
static get isSupported(): boolean
Swift declaration
static var isSupported: Bool { get }
method · iOS 17.0+

markComplete

TypeScript
markComplete(workout: WorkoutPlan, at: _Foundation_DateComponents): Promise<void>
Swift declaration
final func markComplete(_ workout: WorkoutPlan, at: DateComponents) async
method · iOS 17.0+

removeAllWorkouts

TypeScript
removeAllWorkouts(): Promise<void>
Swift declaration
final func removeAllWorkouts() async
get · iOS 17.0+

scheduledWorkouts

TypeScript
get scheduledWorkouts(): Promise<Array<ScheduledWorkoutPlan>>
Swift declaration
final var scheduledWorkouts: [ScheduledWorkoutPlan] { get async }
get · iOS 17.0+

authorizationState

TypeScript
get authorizationState(): Promise<WorkoutScheduler_AuthorizationState>
Swift declaration
final var authorizationState: WorkoutScheduler.AuthorizationState { get async }
method · iOS 17.0+

requestAuthorization

TypeScript
requestAuthorization(): Promise<WorkoutScheduler_AuthorizationState>
Swift declaration
final func requestAuthorization() async -> WorkoutScheduler.AuthorizationState
method · iOS 17.0+

remove

TypeScript
remove(workout: WorkoutPlan, at: _Foundation_DateComponents): Promise<void>
Swift declaration
final func remove(_ workout: WorkoutPlan, at: DateComponents) async
get · iOS 17.0+

shared

TypeScript
static get shared(): WorkoutScheduler
Swift declaration
static let shared: WorkoutScheduler
method · iOS 17.0+

schedule

TypeScript
schedule(workout: WorkoutPlan, at: _Foundation_DateComponents): Promise<void>
Swift declaration
final func schedule(_ workout: WorkoutPlan, at: DateComponents) async

Skipped declarations

No declarations were skipped in this snapshot.

All WorkoutKit types →