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
,org.robovm.objc.ObjCProtocol
public class UIDevice extends NSObject
- Since:
- Available in iOS 2.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UIDevice.Notifications
static class
UIDevice.UIDevicePtr
-
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 UIDevice()
protected
UIDevice(NSObject.Handle h, long handle)
protected
UIDevice(NSObject.SkipInit skipInit)
-
Method Summary
-
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
-
UIDevice
public UIDevice()
-
UIDevice
protected UIDevice(NSObject.Handle h, long handle)
-
UIDevice
protected UIDevice(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getCurrentDevice
public static UIDevice getCurrentDevice()
-
getName
public java.lang.String getName()
-
getModel
public java.lang.String getModel()
-
getLocalizedModel
public java.lang.String getLocalizedModel()
-
getSystemName
public java.lang.String getSystemName()
-
getSystemVersion
public java.lang.String getSystemVersion()
-
getOrientation
public UIDeviceOrientation getOrientation()
-
getIdentifierForVendor
public NSUUID getIdentifierForVendor()
- Since:
- Available in iOS 6.0 and later.
-
generatesDeviceOrientationNotifications
public boolean generatesDeviceOrientationNotifications()
-
isBatteryMonitoringEnabled
public boolean isBatteryMonitoringEnabled()
- Since:
- Available in iOS 3.0 and later.
-
setBatteryMonitoringEnabled
public void setBatteryMonitoringEnabled(boolean v)
- Since:
- Available in iOS 3.0 and later.
-
getBatteryState
public UIDeviceBatteryState getBatteryState()
- Since:
- Available in iOS 3.0 and later.
-
getBatteryLevel
public float getBatteryLevel()
- Since:
- Available in iOS 3.0 and later.
-
isProximityMonitoringEnabled
public boolean isProximityMonitoringEnabled()
- Since:
- Available in iOS 3.0 and later.
-
setProximityMonitoringEnabled
public void setProximityMonitoringEnabled(boolean v)
- Since:
- Available in iOS 3.0 and later.
-
isProximityState
public boolean isProximityState()
- Since:
- Available in iOS 3.0 and later.
-
isMultitaskingSupported
public boolean isMultitaskingSupported()
- Since:
- Available in iOS 4.0 and later.
-
getUserInterfaceIdiom
public UIUserInterfaceIdiom getUserInterfaceIdiom()
- Since:
- Available in iOS 3.2 and later.
-
OrientationDidChangeNotification
public static NSString OrientationDidChangeNotification()
-
BatteryStateDidChangeNotification
public static NSString BatteryStateDidChangeNotification()
- Since:
- Available in iOS 3.0 and later.
-
BatteryLevelDidChangeNotification
public static NSString BatteryLevelDidChangeNotification()
- Since:
- Available in iOS 3.0 and later.
-
ProximityStateDidChangeNotification
public static NSString ProximityStateDidChangeNotification()
- Since:
- Available in iOS 3.0 and later.
-
beginGeneratingDeviceOrientationNotifications
public void beginGeneratingDeviceOrientationNotifications()
-
endGeneratingDeviceOrientationNotifications
public void endGeneratingDeviceOrientationNotifications()
-
playInputClick
public void playInputClick()
- Since:
- Available in iOS 4.2 and later.
-
-