WKExtendedRuntimeSession
A session that continues to run your app after the user has stopped interacting.
Declaration
class WKExtendedRuntimeSessionMentioned in
Overview
With extended runtime sessions, your app continues to run after the user stops interacting with it. The app can continue to communicate with Bluetooth devices, process data, or play sounds or haptics, even after the watch’s screen turns off.
Each app can support a single type of extended runtime session: self care, mindfulness, physical therapy, or smart alarm. Select the session by enabling the appropriate Background Modes capability.
For more information, see Using extended runtime sessions.
Topics
Creating a Session
Managing the Session State
start()start(at:)invalidate()stateWKExtendedRuntimeSessionStateexpirationDaterequestAutoLaunchAuthorizationStatus(completion:)WKExtendedRuntimeSessionAutoLaunchAuthorizationStatus