Edit

Share via


WKInterfaceController.PushController Method

Definition

Overloads

PushController(String, NSObject)

In a navigation interface, initializes and displays a new WKInterfaceController.

PushController(String, String)

In a navigation interface, initializes and displays a new WKInterfaceController.

PushController(String, NSObject)

In a navigation interface, initializes and displays a new WKInterfaceController.

[Foundation.Export("pushControllerWithName:context:")]
[ObjCRuntime.ThreadSafe(false)]
public virtual void PushController (string name, Foundation.NSObject context);
abstract member PushController : string * Foundation.NSObject -> unit
override this.PushController : string * Foundation.NSObject -> unit

Parameters

name
String

In the Storyboard, the value of the Identifier for the WKInterfaceController to be displayed.

context
NSObject

Information for the WKInterfaceController being displayed. May be null.

This parameter can be null.

Attributes

Remarks

This method must be called from the Watch Kit Extension's main thread. (See InvokeOnMainThread(Selector, NSObject) and BeginInvokeOnMainThread(Selector, NSObject))

This can be used from a background thread.

Applies to

PushController(String, String)

In a navigation interface, initializes and displays a new WKInterfaceController.

public void PushController (string name, string context);
member this.PushController : string * string -> unit

Parameters

name
String
context
String

Applies to