public class ICDevice extends NSObject
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ICDevice.Block_requestCloseSessionWithOptionsCompletion |
static interface |
ICDevice.Block_requestEjectWithCompletion |
static interface |
ICDevice.Block_requestOpenSessionWithOptionsCompletion |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
ICDevice(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static ICDevice |
alloc() |
static ICDevice |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
NSArray<java.lang.String> |
capabilities()
[@property] capabilities
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
ICDeviceDelegate |
delegate()
[@property] delegate
|
static java.lang.String |
description_static() |
static long |
hash_static() |
boolean |
hasOpenSession()
[@property] hasOpenSession
|
CGImageRef |
icon()
[@property] icon
|
ICDevice |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
java.lang.String |
name()
[@property] name
|
static ICDevice |
new_objc() |
java.lang.String |
productKind()
[@property] productKind
|
void |
requestCloseSession()
requestCloseSession
|
void |
requestCloseSessionWithOptionsCompletion(NSDictionary<java.lang.String,?> options,
ICDevice.Block_requestCloseSessionWithOptionsCompletion completion)
requestCloseSessionWithOptions:completion
|
void |
requestEject()
requestEject
|
void |
requestEjectWithCompletion(ICDevice.Block_requestEjectWithCompletion completion)
requestEjectWithCompletion:
|
void |
requestOpenSession()
requestOpenSession
|
void |
requestOpenSessionWithOptionsCompletion(NSDictionary<java.lang.String,?> options,
ICDevice.Block_requestOpenSessionWithOptionsCompletion completion)
requestOpenSessionWithOptions:completion
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setDelegate_unsafe(ICDeviceDelegate value)
[@property] delegate
|
void |
setDelegate(ICDeviceDelegate value)
[@property] delegate
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
java.lang.String |
transportType()
[@property] transportType
|
long |
type()
[@property] type
|
int |
usbLocationID()
[@property] usbLocationID
|
int |
usbProductID()
[@property] usbProductID
|
int |
usbVendorID()
[@property] usbVendorID
|
NSMutableDictionary<?,?> |
userData()
[@property] userData
|
java.lang.String |
UUIDString()
[@property] UUIDString
|
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic java.lang.String UUIDString()
A string representation of the Universally Unique ID of the device.
public static boolean accessInstanceVariablesDirectly()
public static ICDevice alloc()
public static ICDevice allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public NSArray<java.lang.String> capabilities()
The capabilities of the device as reported by the device module.
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public ICDeviceDelegate 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.
public static java.lang.String description_static()
public boolean hasOpenSession()
Indicates whether the device has an open session.
public static long hash_static()
public CGImageRef 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.
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public java.lang.String 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.
public static ICDevice new_objc()
public java.lang.String productKind()
Type of the device. Possible values are: @"iPhone", @"iPod", @"iPad", @"Camera", @"Scanner"
public void 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.
public void requestCloseSessionWithOptionsCompletion(NSDictionary<java.lang.String,?> options, ICDevice.Block_requestCloseSessionWithOptionsCompletion 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.
public void requestEject()
Eject the media if permitted by the device, or disconnect from a remote device.
public void requestEjectWithCompletion(ICDevice.Block_requestEjectWithCompletion completion)
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.
public void 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.
public void requestOpenSessionWithOptionsCompletion(NSDictionary<java.lang.String,?> options, ICDevice.Block_requestOpenSessionWithOptionsCompletion 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.
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void setDelegate_unsafe(ICDeviceDelegate value)
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.
public void setDelegate(ICDeviceDelegate value)
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.
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public java.lang.String transportType()
The transport type used by the device. The possible values are: ICTransportTypeUSB or ICTransportTypeMassStorage.
public long 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.
public int usbLocationID()
The USB location of which the device is occupying.
public int usbProductID()
The USB PID associated with the device attached.
public int usbVendorID()
The USB VID associated with the device attached.
public NSMutableDictionary<?,?> userData()
Client convenience bookkeeping object retained by the framework.
public static long version_static()