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.
    • Constructor Detail

      • ICDevice

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

      • UUIDString

        public java.lang.String UUIDString()
        [@property] UUIDString A string representation of the Universally Unique ID of the device.
      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static ICDevice alloc()
      • allocWithZone

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

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

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

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

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

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

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

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

        public 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.
      • description_static

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

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

        public static long hash_static()
      • icon

        public 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.
      • 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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • name

        public 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.
      • new_objc

        public static java.lang.Object new_objc()
      • productKind

        public java.lang.String productKind()
        [@property] productKind Type of the device. Possible values are: @"iPhone", @"iPod", @"iPad", @"Camera", @"Scanner"
      • 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.
      • requestCloseSessionWithOptionsCompletion

        public void requestCloseSessionWithOptionsCompletion​(NSDictionary<java.lang.String,​?> options,
                                                             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.
      • requestEject

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

        public void requestEjectWithCompletion​(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.
      • 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.
      • requestOpenSessionWithOptionsCompletion

        public void requestOpenSessionWithOptionsCompletion​(NSDictionary<java.lang.String,​?> options,
                                                            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.
      • 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​(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.
      • setDelegate

        public void setDelegate​(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.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public java.lang.String transportType()
        [@property] transportType The transport type used by the device. The possible values are: ICTransportTypeUSB or ICTransportTypeMassStorage.
      • 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.
      • usbLocationID

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

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

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

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

        public static long version_static()