Package apple.imagecapturecore
Class ICDevice
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.imagecapturecore.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceICDevice.Block_requestCloseSessionWithOptionsCompletionstatic interfaceICDevice.Block_requestEjectWithCompletionstatic interfaceICDevice.Block_requestOpenSessionWithOptionsCompletion-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedICDevice(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static ICDevicealloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)NSArray<java.lang.String>capabilities()[@property] capabilities The capabilities of the device as reported by the device module.static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()ICDeviceDelegatedelegate()[@property] delegate The delegate to receive messages once a session is opened on the device.static java.lang.Stringdescription_static()static longhash_static()booleanhasOpenSession()[@property] hasOpenSession Indicates whether the device has an open session.CGImageReficon()[@property] icon Icon image for the device class.ICDeviceinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)java.lang.Stringname()[@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.static java.lang.Objectnew_objc()java.lang.StringproductKind()[@property] productKind Type of the device.voidrequestCloseSession()requestCloseSession This message requests to close a previously opened session on this device.voidrequestCloseSessionWithOptionsCompletion(NSDictionary<java.lang.String,?> options, ICDevice.Block_requestCloseSessionWithOptionsCompletion completion)requestCloseSessionWithOptions:completion This message requests to close a previously opened session on this device.voidrequestEject()requestEject Eject the media if permitted by the device, or disconnect from a remote device.voidrequestEjectWithCompletion(ICDevice.Block_requestEjectWithCompletion completion)requestEjectWithCompletion: Eject the media, or disconnect the device - if permitted by the device.voidrequestOpenSession()requestOpenSession This message requests to open a session on the device.voidrequestOpenSessionWithOptionsCompletion(NSDictionary<java.lang.String,?> options, ICDevice.Block_requestOpenSessionWithOptionsCompletion completion)requestOpenSessionWithOptions:completion This message requests to open a session on the device.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetDelegate(ICDeviceDelegate value)[@property] delegate The delegate to receive messages once a session is opened on the device.voidsetDelegate_unsafe(ICDeviceDelegate value)[@property] delegate The delegate to receive messages once a session is opened on the device.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()java.lang.StringtransportType()[@property] transportType The transport type used by the device.longtype()[@property] type The type of the device as defined by ICDeviceType OR'd with its ICDeviceLocationType.intusbLocationID()[@property] usbLocationID The USB location of which the device is occupying.intusbProductID()[@property] usbProductID The USB PID associated with the device attached.intusbVendorID()[@property] usbVendorID The USB VID associated with the device attached.NSMutableDictionary<?,?>userData()[@property] userData Client convenience bookkeeping object retained by the framework.java.lang.StringUUIDString()[@property] UUIDString A string representation of the Universally Unique ID of the device.static longversion_static()-
Methods inherited from class apple.NSObject
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, willChangeValuesAtIndexesForKey
-
-
-
-
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.
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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()
-
-