public class ICCameraDevice extends ICDevice
ICCameraDevice
ICCameraDevice is a concrete subclass of ICDevice class. ICDeviceBrowser creates instances of this class.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ICCameraDevice.Block_ptpEventHandler_ret |
static interface |
ICCameraDevice.Block_requestDeleteFilesDeleteFailedCompletion_1 |
static interface |
ICCameraDevice.Block_requestDeleteFilesDeleteFailedCompletion_2 |
static interface |
ICCameraDevice.Block_requestSendPTPCommandOutDataCompletion |
static interface |
ICCameraDevice.Block_setPtpEventHandler |
ICDevice.Block_requestCloseSessionWithOptionsCompletion, ICDevice.Block_requestEjectWithCompletion, ICDevice.Block_requestOpenSessionWithOptionsCompletionNSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
ICCameraDevice(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static ICCameraDevice |
alloc() |
static ICCameraDevice |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
long |
batteryLevel()
[@property] batteryLevel
|
boolean |
batteryLevelAvailable()
[@property] batteryLevelAvailable
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(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.Class |
classForKeyedUnarchiver() |
long |
contentCatalogPercentCompleted()
[@property] contentCatalogPercentCompleted
|
NSArray<? extends ICCameraItem> |
contents()
[@property] contents
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
NSArray<java.lang.String> |
filesOfType(java.lang.String fileUTType)
filesOfType:
|
static long |
hash_static() |
boolean |
iCloudPhotosEnabled()
[@property] iCloudPhotosEnabled
|
ICCameraDevice |
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) |
boolean |
isAccessRestrictedAppleDevice()
[@property] accessRestrictedAppleDevice
|
boolean |
isEjectable()
[@property] ejectable
|
boolean |
isLocked()
[@property] locked
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
NSArray<? extends ICCameraItem> |
mediaFiles()
[@property] mediaFiles
|
long |
mediaPresentation()
[@property] mediaPresentation
|
static ICCameraDevice |
new_objc() |
ICCameraDevice.Block_ptpEventHandler_ret |
ptpEventHandler()
[@property] ptpEventHandler
|
void |
requestDeleteFiles(NSArray<? extends ICCameraItem> files)
requestDeleteFiles
|
NSProgress |
requestDeleteFilesDeleteFailedCompletion(NSArray<? extends ICCameraItem> files,
ICCameraDevice.Block_requestDeleteFilesDeleteFailedCompletion_1 deleteFailed,
ICCameraDevice.Block_requestDeleteFilesDeleteFailedCompletion_2 completion)
requestDeleteFiles:deleteFailed:completion
|
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:
|
void |
requestSendPTPCommandOutDataCompletion(NSData ptpCommand,
NSData ptpData,
ICCameraDevice.Block_requestSendPTPCommandOutDataCompletion completion)
requestSendPTPCommand:outData:completion
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setMediaPresentation(long value)
[@property] mediaPresentation
|
void |
setPtpEventHandler(ICCameraDevice.Block_setPtpEventHandler value)
[@property] ptpEventHandler
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
boolean |
tetheredCaptureEnabled()
[@property] tetheredCaptureEnabled
|
double |
timeOffset()
[@property] timeOffset
|
static long |
version_static() |
capabilities, delegate, hasOpenSession, icon, name, productKind, requestCloseSession, requestCloseSessionWithOptionsCompletion, requestEject, requestEjectWithCompletion, requestOpenSession, requestOpenSessionWithOptionsCompletion, setDelegate_unsafe, setDelegate, transportType, type, usbLocationID, usbProductID, usbVendorID, userData, UUIDStringaccessibilityActivate, 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 static boolean accessInstanceVariablesDirectly()
public static ICCameraDevice alloc()
public static ICCameraDevice allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public long batteryLevel()
Indicates the battery charge level. Its value ranges from 0 to 100.
public boolean batteryLevelAvailable()
Indicates if the device has reported battery charge level.
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 static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public long contentCatalogPercentCompleted()
Indicates the percentage of content cataloging completed on the device. Its value ranges from 0 to 100.
public NSArray<? extends ICCameraItem> 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.
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public NSArray<java.lang.String> filesOfType(java.lang.String fileUTType)
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.
public static long hash_static()
public boolean iCloudPhotosEnabled()
Set to YES if the device is made by Apple and is pass-coded locked and connected to an untrusted host.
public ICCameraDevice init()
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 boolean isAccessRestrictedAppleDevice()
Set to YES if the device is made by Apple and is pass-coded locked and connected to an untrusted host.
public boolean isEjectable()
Indicates whether the device can be 'soft' removed or disconnected.
public boolean isLocked()
Indicates whether the device is locked. A locked device does not allow for deletion of any asset.
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public NSArray<? extends ICCameraItem> 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.
public static ICCameraDevice new_objc()
public ICCameraDevice.Block_ptpEventHandler_ret 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.
public void requestDeleteFiles(NSArray<? extends ICCameraItem> files)
Deletes files.
public NSProgress requestDeleteFilesDeleteFailedCompletion(NSArray<? extends ICCameraItem> files, ICCameraDevice.Block_requestDeleteFilesDeleteFailedCompletion_1 deleteFailed, ICCameraDevice.Block_requestDeleteFilesDeleteFailedCompletion_2 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
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)
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.
public void requestSendPTPCommandOutDataCompletion(NSData ptpCommand, NSData ptpData, ICCameraDevice.Block_requestSendPTPCommandOutDataCompletion completion)
This method asynchronously sends a PTP command to a camera.
The response, data, and any error message will be returned the block.
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void setPtpEventHandler(ICCameraDevice.Block_setPtpEventHandler value)
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.
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public boolean 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.
public double 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.
public static long version_static()
public long 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.
public void setMediaPresentation(long value)
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.