Enumeration

WKExtendedRuntimeSessionErrorCode

The error codes reported by extended runtime sessions.

Declaration

typedef enum WKExtendedRuntimeSessionErrorCode : NSInteger {
    ...
} WKExtendedRuntimeSessionErrorCode;

Overview

The session passes these errors to the sesson delegate’s extendedRuntimeSession:didInvalidateWithReason:error: method.

Topics

Error Codes

WKExtendedRuntimeSessionErrorUnknown

An unknown error occurred.

WKExtendedRuntimeSessionErrorScheduledTooFarInAdvance

The app attempted to schedule a session too far in the future.

WKExtendedRuntimeSessionErrorMustBeActiveToStartOrSchedule

The watchOS app attempted to start or schedule a session while not in an active state.

WKExtendedRuntimeSessionErrorNotYetStarted

The app invalidated the session before it started.

WKExtendedRuntimeSessionErrorExceededResourceLimits

The session exceeded its resource limits.

WKExtendedRuntimeSessionErrorBARDisabled

The user has disabled background app refresh.

WKExtendedRuntimeSessionErrorNotApprovedToStartSession

The app attempted to start a session, but doesn’t have a valid session type.

WKExtendedRuntimeSessionErrorNotApprovedToSchedule

The app attempted to schedule a session, but the session type does not support scheduling.

See Also

Extended Runtime Sessions

Using Extended Runtime Sessions

Create an extended runtime session that continues running your app after the user stops interacting with it.

WKExtendedRuntimeSession

A session that continues to run your app after the user has stopped interacting.

Beta
WKExtendedRuntimeSessionErrorDomain

The domain for errors reported by extended runtime sessions.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software