The activation states for an extended runtime session.


enum WKExtendedRuntimeSessionState : Int


Session States

case notStarted

The app has not yet started or scheduled the session.

case scheduled

The app has scheduled the session to run at a future date.

case running

The session is actively running.

case invalid

Either the session has encountered an error, or it has stopped running.

See Also

Managing the Session State

func start()

Starts running the session.

func start(at: Date)

Schedules a session to start running at a future date.

func invalidate()

Stops the session.

var state: WKExtendedRuntimeSessionState

The session’s current state.

var expirationDate: Date?

The time and date when the session expires.