Package apple.imagecapturecore
Class ICCameraDevice
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.imagecapturecore.ICDevice
-
- apple.imagecapturecore.ICCameraDevice
-
- All Implemented Interfaces:
NSObject
public class ICCameraDevice extends ICDevice
--------------------------------------------------------------------------------------------------------------- ICCameraDevice ICCameraDevice ICCameraDevice is a concrete subclass of ICDevice class. ICDeviceBrowser creates instances of this class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceICCameraDevice.Block_ptpEventHandler_retstatic interfaceICCameraDevice.Block_requestDeleteFilesDeleteFailedCompletion_1static interfaceICCameraDevice.Block_requestDeleteFilesDeleteFailedCompletion_2static interfaceICCameraDevice.Block_requestSendPTPCommandOutDataCompletionstatic interfaceICCameraDevice.Block_setPtpEventHandler-
Nested classes/interfaces inherited from class apple.imagecapturecore.ICDevice
ICDevice.Block_requestCloseSessionWithOptionsCompletion, ICDevice.Block_requestEjectWithCompletion, ICDevice.Block_requestOpenSessionWithOptionsCompletion
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedICCameraDevice(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static ICCameraDevicealloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)longbatteryLevel()[@property] batteryLevel Indicates the battery charge level.booleanbatteryLevelAvailable()[@property] batteryLevelAvailable Indicates if the device has reported battery charge level.static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()longcontentCatalogPercentCompleted()[@property] contentCatalogPercentCompleted Indicates the percentage of content cataloging completed on the device.NSArray<? extends ICCameraItem>contents()[@property] contents Contents of the camera.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()NSArray<java.lang.String>filesOfType(java.lang.String fileUTType)filesOfType: This method returns an array of files on the camera of type fileType.static longhash_static()booleaniCloudPhotosEnabled()[@property] iCloudPhotosEnabled Set to YES if the device is made by Apple and is pass-coded locked and connected to an untrusted host.ICCameraDeviceinit()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)booleanisAccessRestrictedAppleDevice()[@property] accessRestrictedAppleDevice Set to YES if the device is made by Apple and is pass-coded locked and connected to an untrusted host.booleanisEjectable()[@property] ejectable Indicates whether the device can be 'soft' removed or disconnected.booleanisLocked()[@property] locked Indicates whether the device is locked.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)NSArray<? extends ICCameraItem>mediaFiles()[@property] mediaFiles The property mediaFiles represents all image, movie and audio files on the camera.longmediaPresentation()[@property] mediaPresentation The media presentation describes the visible assets from a device that may contain multiple formats of each media asset.static java.lang.Objectnew_objc()ICCameraDevice.Block_ptpEventHandler_retptpEventHandler()[@property] ptpEventHandler As an alternative to setting up an object to handle PTP event packets, a handler can be set.voidrequestDeleteFiles(NSArray<? extends ICCameraItem> files)requestDeleteFiles Deletes files.NSProgressrequestDeleteFilesDeleteFailedCompletion(NSArray<? extends ICCameraItem> files, ICCameraDevice.Block_requestDeleteFilesDeleteFailedCompletion_1 deleteFailed, ICCameraDevice.Block_requestDeleteFilesDeleteFailedCompletion_2 completion)requestDeleteFiles:deleteFailed:completion Allows for deletion of an array of ICCameraItem objects, with the added ability to catch delete failures using the 'deleteFailed' block, and a completion block that will return the overall state of the request.voidrequestDownloadFileOptionsDownloadDelegateDidDownloadSelectorContextInfo(ICCameraFile file, NSDictionary<java.lang.String,?> options, ICCameraDeviceDownloadDelegate downloadDelegate, org.moe.natj.objc.SEL selector, org.moe.natj.general.ptr.VoidPtr contextInfo)requestDownloadFile:options:downloadDelegate:didDownloadSelector:contextInfo: Download a file from the camera.voidrequestSendPTPCommandOutDataCompletion(NSData ptpCommand, NSData ptpData, ICCameraDevice.Block_requestSendPTPCommandOutDataCompletion completion)requestSendPTPCommand:outData:completion This method asynchronously sends a PTP command to a camera.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetMediaPresentation(long value)[@property] mediaPresentation The media presentation describes the visible assets from a device that may contain multiple formats of each media asset.voidsetPtpEventHandler(ICCameraDevice.Block_setPtpEventHandler value)[@property] ptpEventHandler As an alternative to setting up an object to handle PTP event packets, a handler can be set.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()booleantetheredCaptureEnabled()[@property] tetheredCaptureEnabled This property is set to YES when tethered capture is enabled on the device.doubletimeOffset()[@property] timeOffset Indicates the time offset, in seconds, between the camera's clock and the computer's clock.static longversion_static()-
Methods inherited from class apple.imagecapturecore.ICDevice
capabilities, delegate, hasOpenSession, icon, name, productKind, requestCloseSession, requestCloseSessionWithOptionsCompletion, requestEject, requestEjectWithCompletion, requestOpenSession, requestOpenSessionWithOptionsCompletion, setDelegate, setDelegate_unsafe, transportType, type, usbLocationID, usbProductID, usbVendorID, userData, UUIDString
-
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
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static ICCameraDevice alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
batteryLevel
public long batteryLevel()
[@property] batteryLevel Indicates the battery charge level. Its value ranges from 0 to 100.
-
batteryLevelAvailable
public boolean batteryLevelAvailable()
[@property] batteryLevelAvailable Indicates if the device has reported battery charge level.
-
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)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
contentCatalogPercentCompleted
public long contentCatalogPercentCompleted()
[@property] contentCatalogPercentCompleted Indicates the percentage of content cataloging completed on the device. Its value ranges from 0 to 100.
-
contents
public NSArray<? extends ICCameraItem> contents()
[@property] contents Contents of the camera. The structure of the elements in this array will reflect the folder structure of the storage reported by the camera. Each item in this array will correspond to a storage on the camera.
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
filesOfType
public NSArray<java.lang.String> filesOfType(java.lang.String fileUTType)
filesOfType: This method returns an array of files on the camera of type fileType. The fileType string is one of the following Uniform Type Identifier strings: kUTTypeImage, kUTTypeMovie, kUTTypeAudio, or kUTTypeData.
-
hash_static
public static long hash_static()
-
iCloudPhotosEnabled
public boolean iCloudPhotosEnabled()
[@property] iCloudPhotosEnabled Set to YES if the device is made by Apple and is pass-coded locked and connected to an untrusted host.
-
init
public ICCameraDevice init()
-
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)
-
isAccessRestrictedAppleDevice
public boolean isAccessRestrictedAppleDevice()
[@property] accessRestrictedAppleDevice Set to YES if the device is made by Apple and is pass-coded locked and connected to an untrusted host.
-
isEjectable
public boolean isEjectable()
[@property] ejectable Indicates whether the device can be 'soft' removed or disconnected.
-
isLocked
public boolean isLocked()
[@property] locked Indicates whether the device is locked. A locked device does not allow for deletion of any asset.
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
mediaFiles
public NSArray<? extends ICCameraItem> mediaFiles()
[@property] mediaFiles The property mediaFiles represents all image, movie and audio files on the camera. These files are returned as a single array without regard to the folder hierarchy used to store these files on the camera.
-
new_objc
public static java.lang.Object new_objc()
-
ptpEventHandler
public ICCameraDevice.Block_ptpEventHandler_ret ptpEventHandler()
[@property] ptpEventHandler As an alternative to setting up an object to handle PTP event packets, a handler can be set. The handler will always be called in place of the delegate if non-nil. If the handler is not present, the delegate will be called if present. It is guaranteed only one of the methods will be called if both are implemented.
-
requestDeleteFiles
public void requestDeleteFiles(NSArray<? extends ICCameraItem> files)
requestDeleteFiles Deletes files.
-
requestDeleteFilesDeleteFailedCompletion
public NSProgress requestDeleteFilesDeleteFailedCompletion(NSArray<? extends ICCameraItem> files, ICCameraDevice.Block_requestDeleteFilesDeleteFailedCompletion_1 deleteFailed, ICCameraDevice.Block_requestDeleteFilesDeleteFailedCompletion_2 completion)
requestDeleteFiles:deleteFailed:completion Allows for deletion of an array of ICCameraItem objects, with the added ability to catch delete failures using the 'deleteFailed' block, and a completion block that will return the overall state of the request. The deleteFailed block will return: - NSDictionary* The completion block will return: — error: - nil if successful - NSError* with an code set to ICReturnDeleteFilesFailed if any file failed. - result: NSDictionary *>* result - ICDeleteSuccessful: NSArray * success - ICDeleteFailed: NSArray * failed
-
requestDownloadFileOptionsDownloadDelegateDidDownloadSelectorContextInfo
public void requestDownloadFileOptionsDownloadDelegateDidDownloadSelectorContextInfo(ICCameraFile file, NSDictionary<java.lang.String,?> options, ICCameraDeviceDownloadDelegate downloadDelegate, org.moe.natj.objc.SEL selector, org.moe.natj.general.ptr.VoidPtr contextInfo)
requestDownloadFile:options:downloadDelegate:didDownloadSelector:contextInfo: Download a file from the camera. Please refer to the top of this header for information about the options. The downloadDelegate passed must not be nil. When this request is completed, the didDownloadSelector of the downloadDelegate object is called.The didDownloadSelector should have the same signature as: - (void)didDownloadFile:(ICCameraFile*)file error:(NSError*)error options:(NSDictionary*)options contextInfo:(void*)contextInfo. The content of error returned should be examined to determine if the request completed successfully.
-
requestSendPTPCommandOutDataCompletion
public void requestSendPTPCommandOutDataCompletion(NSData ptpCommand, NSData ptpData, ICCameraDevice.Block_requestSendPTPCommandOutDataCompletion completion)
requestSendPTPCommand:outData:completion This method asynchronously sends a PTP command to a camera. The response, data, and any error message will be returned the block.
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setPtpEventHandler
public void setPtpEventHandler(ICCameraDevice.Block_setPtpEventHandler value)
[@property] ptpEventHandler As an alternative to setting up an object to handle PTP event packets, a handler can be set. The handler will always be called in place of the delegate if non-nil. If the handler is not present, the delegate will be called if present. It is guaranteed only one of the methods will be called if both are implemented.
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
tetheredCaptureEnabled
public boolean tetheredCaptureEnabled()
[@property] tetheredCaptureEnabled This property is set to YES when tethered capture is enabled on the device. Use 'requestEnableTethering' and 'requestDisableTethering' to enable or disable tethered capture on the device.
-
timeOffset
public double timeOffset()
[@property] timeOffset Indicates the time offset, in seconds, between the camera's clock and the computer's clock. This value is positive if the camera's clock is ahead of the computer's clock. This property should be ignored if the camera's capabilities property does not contain ICCameraDeviceCanSyncClock.
-
version_static
public static long version_static()
-
mediaPresentation
public long mediaPresentation()
[@property] mediaPresentation The media presentation describes the visible assets from a device that may contain multiple formats of each media asset. The asigngments are of the type ICMediaPresentation enumeration. This property is available only if the capability ICCameraDeviceSupportsHEIF is present. A device supporting this capability can specify the following presentations: ICMediaPresentationConverted - The default behavior for applications retrieving images from a device supporting HEIF is to show only converted JPG from HEIF originals, and only H264 encoded video assets from HEVC. ICMediaPresentationOriginal - This presentation will show only original images from a device supporting HEIF and HEVC. Burned in renders are always exported in JPG, as are burned in effects for MOV clips.
-
setMediaPresentation
public void setMediaPresentation(long value)
[@property] mediaPresentation The media presentation describes the visible assets from a device that may contain multiple formats of each media asset. The asigngments are of the type ICMediaPresentation enumeration. This property is available only if the capability ICCameraDeviceSupportsHEIF is present. A device supporting this capability can specify the following presentations: ICMediaPresentationConverted - The default behavior for applications retrieving images from a device supporting HEIF is to show only converted JPG from HEIF originals, and only H264 encoded video assets from HEVC. ICMediaPresentationOriginal - This presentation will show only original images from a device supporting HEIF and HEVC. Burned in renders are always exported in JPG, as are burned in effects for MOV clips.
-
-