Package org.robovm.apple.watchkit
Class WKInterfaceDevice
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.watchkit.WKInterfaceDevice
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class WKInterfaceDevice extends NSObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WKInterfaceDevice.WKInterfaceDevicePtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description WKInterfaceDevice()
protected
WKInterfaceDevice(NSObject.Handle h, long handle)
protected
WKInterfaceDevice(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addCachedImage(NSData imageData, java.lang.String name)
boolean
addCachedImage(UIImage image, java.lang.String name)
java.util.Map<java.lang.String,NSNumber>
getCachedImages()
static WKInterfaceDevice
getCurrentDevice()
java.lang.String
getLocalizedModel()
java.lang.String
getModel()
java.lang.String
getName()
UIContentSizeCategory
getPreferredContentSizeCategory()
CGRect
getScreenBounds()
double
getScreenScale()
java.lang.String
getSystemName()
java.lang.String
getSystemVersion()
void
removeAllCachedImages()
void
removeCachedImage(java.lang.String name)
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
WKInterfaceDevice
public WKInterfaceDevice()
-
WKInterfaceDevice
protected WKInterfaceDevice(NSObject.Handle h, long handle)
-
WKInterfaceDevice
protected WKInterfaceDevice(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getCachedImages
public java.util.Map<java.lang.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 java.lang.String getSystemVersion()
- Since:
- Available in iOS 9.0 and later.
-
getName
public java.lang.String getName()
- Since:
- Available in iOS 9.0 and later.
-
getModel
public java.lang.String getModel()
- Since:
- Available in iOS 9.0 and later.
-
getLocalizedModel
public java.lang.String getLocalizedModel()
- Since:
- Available in iOS 9.0 and later.
-
getSystemName
public java.lang.String getSystemName()
- Since:
- Available in iOS 9.0 and later.
-
addCachedImage
public boolean addCachedImage(UIImage image, java.lang.String name)
- Since:
- Available in iOS 8.2 and later.
-
addCachedImage
public boolean addCachedImage(NSData imageData, java.lang.String name)
- Since:
- Available in iOS 8.2 and later.
-
removeCachedImage
public void removeCachedImage(java.lang.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()
-
-