Class ICDevice

  • All Implemented Interfaces:
    NSObject
    Direct Known Subclasses:
    ICCameraDevice

    public class ICDevice
    extends NSObject
    --------------------------------------------------------------------------------------------------------------------- ICDevice ICDevice ICDevice is an abstract class that represents a device supported by Image Capture facility. ImageCaptureCore defines two concrete subclasses of ICDevice, ICCameraDevice and ICScannerDevice. ICDeviceBrowser creates instances of these two subclasses to represent cameras and scanners it finds. API-Since: 13.0
    • Constructor Detail

      • ICDevice

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

      • UUIDString

        @Nullable
        public @Nullable java.lang.String UUIDString()
        [@property] UUIDString A string representation of the Universally Unique ID of the device. API-Since: 13.0
      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static ICDevice alloc()
      • allocWithZone

        public static ICDevice 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)
      • capabilities

        @NotNull
        public @NotNull NSArray<java.lang.String> capabilities()
        [@property] capabilities The capabilities of the device as reported by the device module. API-Since: 13.0
      • classFallbacksForKeyedArchiver

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

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

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

        @Nullable
        public @Nullable ICDeviceDelegate delegate()
        [@property] delegate The delegate to receive messages once a session is opened on the device. The delegate must conform ICDeviceDelegate protocol. In addition it should respond to selectors defined in ICCameraDeviceDelegate protocol in order to effectively interact with the device object. The messages this delegate can expect to receive are described by these protocols. API-Since: 13.0
      • description_static

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

        public boolean hasOpenSession()
        [@property] hasOpenSession Indicates whether the device has an open session. API-Since: 13.0
      • hash_static

        public static long hash_static()
      • icon

        @Nullable
        public @Nullable CGImageRef icon()
        [@property] icon Icon image for the device class. If there is no custom icon present from a device manufacturer, this will be a rendered version of the system symbol for the device class. Using a rendered system symbol instead of the systemSymbolName is discouraged. API-Since: 13.0
      • 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)
      • name

        @Nullable
        public @Nullable java.lang.String name()
        [@property] name Name of the device as reported by the device module or by the device transport when a device module is not in control of this device. [@note] This name may change if the device module overrides the default name of the device reported by the device's transport, or if the name of the filesystem volume mounted by the device is changed by the user. API-Since: 13.0
      • new_objc

        public static ICDevice new_objc()
      • productKind

        @Nullable
        public @Nullable java.lang.String productKind()
        [@property] productKind Type of the device. Possible values are: @"iPhone", @"iPod", @"iPad", @"Camera", @"Scanner" API-Since: 13.0
      • requestCloseSession

        public void requestCloseSession()
        requestCloseSession This message requests to close a previously opened session on this device. This request is completed when the delegate receives a "device:didCloseSessionWithError:" message. [@note] Execution of the delegate callback will occur on the main thread. API-Since: 13.0
      • requestCloseSessionWithOptionsCompletion

        public void requestCloseSessionWithOptionsCompletion​(@Nullable
                                                             @Nullable NSDictionary<java.lang.String,​?> options,
                                                             @NotNull
                                                             @NotNull ICDevice.Block_requestCloseSessionWithOptionsCompletion completion)
        requestCloseSessionWithOptions:completion This message requests to close a previously opened session on this device. This request will execute the completion handler provided upon return. [@note] The completion block will execute on an any available queue, often this will not be the main queue. API-Since: 13.0
      • requestEject

        public void requestEject()
        requestEject Eject the media if permitted by the device, or disconnect from a remote device. API-Since: 13.0
      • requestEjectWithCompletion

        public void requestEjectWithCompletion​(@NotNull
                                               @NotNull ICDevice.Block_requestEjectWithCompletion completion)
        requestEjectWithCompletion: Eject the media, or disconnect the device - if permitted by the device. This request will execute the completion handler provided upon return. [@note] The completion block will execute on an any available queue, often this will not be the main queue. API-Since: 13.0
      • requestOpenSession

        public void requestOpenSession()
        requestOpenSession This message requests to open a session on the device. Make sure the receiver's delegate is set prior to sending this message; otherwise this message will be ignored. This request is completed when the delegate receives a "device:didOpenSessionWithError:" message. [@note] Execution of the delegate callback will occur on the main thread. API-Since: 13.0
      • requestOpenSessionWithOptionsCompletion

        public void requestOpenSessionWithOptionsCompletion​(@Nullable
                                                            @Nullable NSDictionary<java.lang.String,​?> options,
                                                            @NotNull
                                                            @NotNull ICDevice.Block_requestOpenSessionWithOptionsCompletion completion)
        requestOpenSessionWithOptions:completion This message requests to open a session on the device. This request will execute the completion handler provided upon return. [@note] The completion block will execute on an any available queue, often this will not be the main queue. API-Since: 13.0
      • resolveClassMethod

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

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

        public void setDelegate_unsafe​(@Nullable
                                       @Nullable ICDeviceDelegate value)
        [@property] delegate The delegate to receive messages once a session is opened on the device. The delegate must conform ICDeviceDelegate protocol. In addition it should respond to selectors defined in ICCameraDeviceDelegate protocol in order to effectively interact with the device object. The messages this delegate can expect to receive are described by these protocols. API-Since: 13.0
      • setDelegate

        public void setDelegate​(@Nullable
                                @Nullable ICDeviceDelegate value)
        [@property] delegate The delegate to receive messages once a session is opened on the device. The delegate must conform ICDeviceDelegate protocol. In addition it should respond to selectors defined in ICCameraDeviceDelegate protocol in order to effectively interact with the device object. The messages this delegate can expect to receive are described by these protocols. API-Since: 13.0
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        @Nullable
        public @Nullable java.lang.String transportType()
        [@property] transportType The transport type used by the device. The possible values are: ICTransportTypeUSB or ICTransportTypeMassStorage. API-Since: 13.0
      • type

        public long type()
        [@property] type The type of the device as defined by ICDeviceType OR'd with its ICDeviceLocationType. [@note] The type of this device can be obtained by AND'ing the value retuned by this property with an appropriate ICDeviceTypeMask. [@note] The location type of this device can be obtained by AND'ing the value retuned by this property with an appropriate ICDeviceLocationTypeMask. API-Since: 13.0
      • usbLocationID

        public int usbLocationID()
        [@property] usbLocationID The USB location of which the device is occupying. API-Since: 13.0
      • usbProductID

        public int usbProductID()
        [@property] usbProductID The USB PID associated with the device attached. API-Since: 13.0
      • usbVendorID

        public int usbVendorID()
        [@property] usbVendorID The USB VID associated with the device attached. API-Since: 13.0
      • userData

        @Nullable
        public @Nullable NSMutableDictionary<?,​?> userData()
        [@property] userData Client convenience bookkeeping object retained by the framework. API-Since: 13.0
      • version_static

        public static long version_static()
      • systemSymbolName

        @Nullable
        public @Nullable java.lang.String systemSymbolName()
        [@property] systemSymbolName Standard system symbol used to represent the device class. Using the symbol to render an appropriate device icon will ensure proper scaling for high resolution devices. API-Since: 15.2
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.