Class WKInterfaceDevice

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class WKInterfaceDevice
extends NSObject
  • Constructor Details

    • WKInterfaceDevice

      public WKInterfaceDevice()
    • WKInterfaceDevice

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

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

    • getCachedImages

      public Map<String,​NSNumber> getCachedImages()
      Since:
      Available in iOS 8.2 and later.
    • getScreenBounds

      public CGRect getScreenBounds()
    • getScreenScale

      public double getScreenScale()
    • getPreferredContentSizeCategory

      public UIContentSizeCategory getPreferredContentSizeCategory()
    • getSystemVersion

      public String getSystemVersion()
      Since:
      Available in iOS 9.0 and later.
    • getName

      public String getName()
      Since:
      Available in iOS 9.0 and later.
    • getModel

      public String getModel()
      Since:
      Available in iOS 9.0 and later.
    • getLocalizedModel

      public String getLocalizedModel()
      Since:
      Available in iOS 9.0 and later.
    • getSystemName

      public String getSystemName()
      Since:
      Available in iOS 9.0 and later.
    • addCachedImage

      public boolean addCachedImage​(UIImage image, String name)
      Since:
      Available in iOS 8.2 and later.
    • addCachedImage

      public boolean addCachedImage​(NSData imageData, String name)
      Since:
      Available in iOS 8.2 and later.
    • removeCachedImage

      public void removeCachedImage​(String name)
      Since:
      Available in iOS 8.2 and later.
    • removeAllCachedImages

      public void removeAllCachedImages()
      Since:
      Available in iOS 8.2 and later.
    • getCurrentDevice

      public static WKInterfaceDevice getCurrentDevice()