Enumeration

WKExtendedRuntimeSessionErrorCode

The error codes reported by extended runtime sessions.

Declaration

enum WKExtendedRuntimeSessionErrorCode : Int

Overview

The session passes these errors to the sesson delegate’s extendedRuntimeSession(_:didInvalidateWith:error:) method.

Topics

Error Codes

case unknown

An unknown error occurred.

case scheduledTooFarInAdvance

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

case mustBeActiveToStartOrSchedule

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

case notYetStarted

The app invalidated the session before it started.

case exceededResourceLimits

The session exceeded its resource limits.

case barDisabled

The user has disabled background app refresh.

case notApprovedToStartSession

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

case notApprovedToSchedule

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.

class WKExtendedRuntimeSession

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

Beta
let WKExtendedRuntimeSessionErrorDomain: String

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