Class WKInterfaceController

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol
Direct Known Subclasses:
WKUserNotificationInterfaceController

public class WKInterfaceController
extends NSObject
Since:
Available in iOS 8.2 and later.
  • Constructor Details

    • WKInterfaceController

      public WKInterfaceController()
    • WKInterfaceController

      protected WKInterfaceController​(NSObject.Handle h, long handle)
    • WKInterfaceController

      protected WKInterfaceController​(NSObject.SkipInit skipInit)
  • Method Details

    • getContentFrame

      public CGRect getContentFrame()
    • awake

      public void awake​(NSObject context)
    • willActivate

      public void willActivate()
    • didDeactivate

      public void didDeactivate()
    • didSelectRow

      public void didSelectRow​(WKInterfaceTable table, long rowIndex)
    • handleAction

      public void handleAction​(String identifier, UNNotification notification)
      Since:
      Available in iOS 10.0 and later.
    • handleUserActivity

      public void handleUserActivity​(NSDictionary<?,​?> userInfo)
    • setTitle

      public void setTitle​(String title)
    • pushController

      public void pushController​(String name, NSObject context)
    • popController

      public void popController()
    • popToRootController

      public void popToRootController()
    • becomeCurrentPage

      public void becomeCurrentPage()
    • presentController

      public void presentController​(String name, NSObject context)
    • presentController

      public void presentController​(List<String> names, NSArray<NSObject> contexts)
    • dismissController

      public void dismissController()
    • presentTextInputController

      public void presentTextInputController​(List<String> suggestions, WKTextInputMode inputMode, VoidBlock1<NSArray<?>> completion)
    • presentTextInputController

      public void presentTextInputController​(Block1<NSString,​NSArray<?>> suggestionsHandler, WKTextInputMode inputMode, VoidBlock1<NSArray<?>> completion)
    • dismissTextInputController

      public void dismissTextInputController()
    • getContextForSegue

      public NSObject getContextForSegue​(String segueIdentifier)
    • getContextsForSegue

      public NSArray<NSObject> getContextsForSegue​(String segueIdentifier)
    • getContextForSegue

      public NSObject getContextForSegue​(String segueIdentifier, WKInterfaceTable table, long rowIndex)
    • getContextsForSegue

      public NSArray<NSObject> getContextsForSegue​(String segueIdentifier, WKInterfaceTable table, long rowIndex)
    • addMenuItem

      public void addMenuItem​(UIImage image, String title, Selector action)
    • addMenuItem

      public void addMenuItem​(String imageName, String title, Selector action)
    • addMenuItem

      public void addMenuItem​(WKMenuItemIcon itemIcon, String title, Selector action)
    • clearAllMenuItems

      public void clearAllMenuItems()
    • updateUserActivity

      public void updateUserActivity​(String type, NSDictionary<?,​?> userInfo, NSURL webpageURL)
    • invalidateUserActivity

      public void invalidateUserActivity()
    • beginGlanceUpdates

      public void beginGlanceUpdates()
    • endGlanceUpdates

      public void endGlanceUpdates()
    • handleAction

      @Deprecated public void handleAction​(String identifier, UIRemoteNotification remoteNotification)
      Deprecated.
      Deprecated in iOS 10.0. use UNUserNotificationCenterDelegate
      Since:
      Available in iOS 8.2 and later.
    • handleAction

      @Deprecated public void handleAction​(String identifier, UILocalNotification localNotification)
      Deprecated.
      Deprecated in iOS 10.0. use UNUserNotificationCenterDelegate
      Since:
      Available in iOS 8.2 and later.
    • reloadRootControllers

      public static void reloadRootControllers​(List<String> names, NSArray<NSObject> contexts)
    • openParentApplication

      public static boolean openParentApplication​(NSDictionary<?,​?> userInfo, VoidBlock2<NSDictionary<?,​?>,​NSError> reply)
      Since:
      Available in iOS 8.2 and later.