Package org.robovm.apple.uikit
Class UIDevice
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.uikit.UIDevice
- All Implemented Interfaces:
NSObjectProtocol,ObjCProtocol
public class UIDevice extends NSObject
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUIDevice.Notificationsstatic classUIDevice.UIDevicePtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description UIDevice()protectedUIDevice(NSObject.Handle h, long handle)protectedUIDevice(NSObject.SkipInit skipInit) -
Method Summary
Modifier and Type Method Description static NSStringBatteryLevelDidChangeNotification()static NSStringBatteryStateDidChangeNotification()voidbeginGeneratingDeviceOrientationNotifications()voidendGeneratingDeviceOrientationNotifications()booleangeneratesDeviceOrientationNotifications()floatgetBatteryLevel()UIDeviceBatteryStategetBatteryState()static UIDevicegetCurrentDevice()NSUUIDgetIdentifierForVendor()StringgetLocalizedModel()StringgetModel()StringgetName()UIDeviceOrientationgetOrientation()StringgetSystemName()StringgetSystemVersion()UIUserInterfaceIdiomgetUserInterfaceIdiom()booleanisBatteryMonitoringEnabled()booleanisMultitaskingSupported()booleanisProximityMonitoringEnabled()booleanisProximityState()static NSStringOrientationDidChangeNotification()voidplayInputClick()static NSStringProximityStateDidChangeNotification()voidsetBatteryMonitoringEnabled(boolean v)voidsetProximityMonitoringEnabled(boolean v)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, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
Method Details
-
getCurrentDevice
-
getName
-
getModel
-
getLocalizedModel
-
getSystemName
-
getSystemVersion
-
getOrientation
-
getIdentifierForVendor
-
generatesDeviceOrientationNotifications
public boolean generatesDeviceOrientationNotifications() -
isBatteryMonitoringEnabled
public boolean isBatteryMonitoringEnabled() -
setBatteryMonitoringEnabled
public void setBatteryMonitoringEnabled(boolean v) -
getBatteryState
-
getBatteryLevel
public float getBatteryLevel() -
isProximityMonitoringEnabled
public boolean isProximityMonitoringEnabled() -
setProximityMonitoringEnabled
public void setProximityMonitoringEnabled(boolean v) -
isProximityState
public boolean isProximityState() -
isMultitaskingSupported
public boolean isMultitaskingSupported() -
getUserInterfaceIdiom
-
OrientationDidChangeNotification
-
BatteryStateDidChangeNotification
-
BatteryLevelDidChangeNotification
-
ProximityStateDidChangeNotification
-
beginGeneratingDeviceOrientationNotifications
public void beginGeneratingDeviceOrientationNotifications() -
endGeneratingDeviceOrientationNotifications
public void endGeneratingDeviceOrientationNotifications() -
playInputClick
public void playInputClick()
-