An object that manages behaviors shared by an app’s interface controllers.
SDK
- watchOS 2.0+
Framework
- Watch
Kit
Declaration
class WKExtension : NSObject
Overview
Every WatchKit extension has a single extension object that the system creates and manages. You use the extension object to perform app-level tasks such as opening URLs and getting the root interface controller of your app.
As relevant events occur within your WatchKit app, the extension object notifies its delegate of those events. Your delegate object can implement the methods it needs to provide an appropriate response to life cycle events, handle notifications, or handle Handoff–related behaviors. For more information about the methods of the delegate, see WKExtension
.