WatchKit.WKInterfaceController: Method Members

The methods of WatchKit.WKInterfaceController are listed below. For a list of all members, see the WKInterfaceController Members list.

See Also: Inherited members from Foundation.NSObject

Public Methods

AddMenuItem(string, string, ObjCRuntime.Selector)
Adds a menu item with a predefined image to the context menu.
AddMenuItem(UIKit.UIImage, string, ObjCRuntime.Selector)
Adds a menu item with a specified UIKit.UIImage to the context menu.
AddMenuItem(WKMenuItemIcon, string, ObjCRuntime.Selector)
Adds a menu item with a predefined icon to the context menu.
Awake(Foundation.NSObject)
Main initialization method.
BecomeCurrentPage()
In a page-based UI, makes this the active controller.
ClearAllMenuItems()
Removes programmatically-added items from the context menu.
DidDeactivate()
Called after the Watch App has been dismissed by the user.
DidSelectRow(WKInterfaceTable, nint)
Called when the user has selected a row in the table.
DismissController()
Dismisses a modally-presented WatchKit.WKInterfaceController.
DismissTextInputController()
Cancels text input and dismisses the text input controller.
GetContextForSegue(string) : Foundation.NSObject
In response to a button tap, returns the context to be passed to the next WatchKit.WKInterfaceController object's WKInterfaceController.Awake method.
GetContextForSegue(string, WKInterfaceTable, nint) : Foundation.NSObject
In response to a row selection, returns the context to be passed to the next WatchKit.WKInterfaceController object's WKInterfaceController.Awake method.
GetContextsForSegue(string) : Foundation.NSObject[]
In response to a button tap leading to a page-based UI, returns the context objects to be passed to the WatchKit.WKInterfaceController objects' WKInterfaceController.Awake methods.
GetContextsForSegue(string, WKInterfaceTable, nint) : Foundation.NSObject[]
In response to a table-row tap leading to a page-based UI, returns the context objects to be passed to the WatchKit.WKInterfaceController objects' WKInterfaceController.Awake methods.
HandleLocalNotificationAction(string, UIKit.UILocalNotification)
Called on the Watch App's initial WatchKit.WKInterfaceController when the user reacts to a local notification.
HandleRemoteNotificationAction(string, Foundation.NSDictionary)
Called on the Watch App's initial WatchKit.WKInterfaceController when the user reacts to a remote notification.
HandleUserActivity(Foundation.NSDictionary)
Indicates that the Watch App was launched as a result of a Handoff action.
static
OpenParentApplication(Foundation.NSDictionary, Action<Foundation.NSDictionary, Foundation.NSError>) : bool
Opens the Watch Extension's Parent app, passing userInfo and receiving data back in the reply callback.
PopController()
In a navigation interface, pops the current WatchKit.WKInterfaceController.
PopToRootController()
In a navigation interface, pops all WatchKit.WKInterfaceController except the root.
PresentController(string, Foundation.NSObject)
Modally presents a WatchKit.WKInterfaceController.
PresentController(string, string)
Modally presents a WatchKit.WKInterfaceController.
PresentController(string[], Foundation.NSObject[])
Modally presents a page-based UI with the specified WatchKit.WKInterfaceControllers.
PresentController(string[], string[])
Modally presents a page-based UI with the specified WatchKit.WKInterfaceControllers.
PresentTextInputController(string[], WKTextInputMode, Action<Foundation.NSArray>)
Asynchronously presents the watch's text input controller.
PushController(string, Foundation.NSObject)
In a navigation interface, initializes and displays a new WatchKit.WKInterfaceController.
static
ReloadRootControllers(string[], Foundation.NSObject[])
In a page-based UI, reloads the set of WatchKit.WKInterfaceControllers displayed.
SetTitle(string)
Sets the title for the interface.
UpdateUserActivity(string, Foundation.NSDictionary)
Documentation for this section has not yet been entered.
WillActivate()
Called shortly before the WatchKit.WKInterfaceController appears to the user.