WKInterfaceController.PushController 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.
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