Package apple.uikit

Class UIDevice

  • All Implemented Interfaces:
    NSObject

    public class UIDevice
    extends NSObject
    API-Since: 2.0
    • Constructor Detail

      • UIDevice

        protected UIDevice​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static UIDevice alloc()
      • allocWithZone

        public static UIDevice allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • currentDevice

        @NotNull
        public static @NotNull UIDevice currentDevice()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • new_objc

        public static UIDevice new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • batteryLevel

        public float batteryLevel()
        0 .. 1.0. -1.0 if UIDeviceBatteryStateUnknown API-Since: 3.0
      • batteryState

        public long batteryState()
        UIDeviceBatteryStateUnknown if monitoring disabled API-Since: 3.0
      • beginGeneratingDeviceOrientationNotifications

        public void beginGeneratingDeviceOrientationNotifications()
        nestable
      • endGeneratingDeviceOrientationNotifications

        public void endGeneratingDeviceOrientationNotifications()
      • identifierForVendor

        @Nullable
        public @Nullable NSUUID identifierForVendor()
        a UUID that may be used to uniquely identify the device, same across apps from a single vendor. API-Since: 6.0
      • isBatteryMonitoringEnabled

        public boolean isBatteryMonitoringEnabled()
        default is NO API-Since: 3.0
      • setBatteryMonitoringEnabled

        public void setBatteryMonitoringEnabled​(boolean value)
        default is NO API-Since: 3.0
      • isGeneratingDeviceOrientationNotifications

        public boolean isGeneratingDeviceOrientationNotifications()
      • isMultitaskingSupported

        public boolean isMultitaskingSupported()
        API-Since: 4.0
      • isProximityMonitoringEnabled

        public boolean isProximityMonitoringEnabled()
        default is NO API-Since: 3.0
      • setProximityMonitoringEnabled

        public void setProximityMonitoringEnabled​(boolean value)
        default is NO API-Since: 3.0
      • localizedModel

        @NotNull
        public @NotNull java.lang.String localizedModel()
        localized version of model
      • model

        @NotNull
        public @NotNull java.lang.String model()
        e.g. @"iPhone", @"iPod touch"
      • name

        @NotNull
        public @NotNull java.lang.String name()
        Synonym for model. Prior to iOS 16, user-assigned device name (e.g. @"My iPhone").
      • orientation

        public long orientation()
        return current device orientation. this will return UIDeviceOrientationUnknown unless device orientation notifications are being generated.
      • playInputClick

        public void playInputClick()
        Plays a click only if an enabling input view is on-screen and user has enabled input clicks. API-Since: 4.2
      • proximityState

        public boolean proximityState()
        always returns NO if no proximity detector API-Since: 3.0
      • systemName

        @NotNull
        public @NotNull java.lang.String systemName()
        e.g. @"iOS"
      • systemVersion

        @NotNull
        public @NotNull java.lang.String systemVersion()
        e.g. @"4.0"
      • userInterfaceIdiom

        public long userInterfaceIdiom()
        API-Since: 3.2
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.