WKInterfaceController.Awake(NSObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Main initialization method.
[Foundation.Export("awakeWithContext:")]
public virtual void Awake (Foundation.NSObject context);
abstract member Awake : Foundation.NSObject -> unit
override this.Awake : Foundation.NSObject -> unit
Parameters
- context
- NSObject
Arbitrary data (set by presenting WKInterfaceController). May be null
.
This parameter can be null
.
- Attributes
Remarks
The context
may contain data from a previous WKInterfaceController, and is passed by the M:WatchKit.WKInterfaceController.PresentController* method.
Most initialization should be done in this method rather than WillActivate().