Edit

Share via


WKInterfaceController.Awake(NSObject) Method

Definition

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().

Applies to