Class 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. API-Since: 13.0
    • Constructor Detail

      • ICCameraDevice

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull 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​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

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

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

        @NotNull
        public static @NotNull 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. API-Since: 13.0
      • contents

        @Nullable
        public @Nullable 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. API-Since: 13.0
      • debugDescription_static

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

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

        @Nullable
        public @Nullable NSArray<java.lang.String> filesOfType​(@NotNull
                                                               @NotNull 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. API-Since: 13.0
      • 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. API-Since: 13.0
      • 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. API-Since: 13.0
      • isEjectable

        public boolean isEjectable()
        [@property] ejectable Indicates whether the device can be 'soft' removed or disconnected. API-Since: 13.0
      • isLocked

        public boolean isLocked()
        [@property] locked Indicates whether the device is locked. A locked device does not allow for deletion of any asset. API-Since: 13.0
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • mediaFiles

        @Nullable
        public @Nullable 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. API-Since: 13.0
      • ptpEventHandler

        @NotNull
        public @NotNull 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. API-Since: 13.0
      • requestDeleteFiles

        public void requestDeleteFiles​(@NotNull
                                       @NotNull NSArray<? extends ICCameraItem> files)
        requestDeleteFiles Deletes files. API-Since: 13.0
      • requestDeleteFilesDeleteFailedCompletion

        @Nullable
        public @Nullable NSProgress requestDeleteFilesDeleteFailedCompletion​(@NotNull
                                                                             @NotNull NSArray<? extends ICCameraItem> files,
                                                                             @NotNull
                                                                             @NotNull ICCameraDevice.Block_requestDeleteFilesDeleteFailedCompletion_1 deleteFailed,
                                                                             @NotNull
                                                                             @NotNull 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 API-Since: 13.0
      • requestDownloadFileOptionsDownloadDelegateDidDownloadSelectorContextInfo

        public void requestDownloadFileOptionsDownloadDelegateDidDownloadSelectorContextInfo​(@NotNull
                                                                                             @NotNull ICCameraFile file,
                                                                                             @NotNull
                                                                                             @NotNull NSDictionary<java.lang.String,​?> options,
                                                                                             @NotNull
                                                                                             @NotNull ICCameraDeviceDownloadDelegate downloadDelegate,
                                                                                             @NotNull
                                                                                             @NotNull org.moe.natj.objc.SEL selector,
                                                                                             @Nullable
                                                                                             @Nullable 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. API-Since: 13.0
      • requestSendPTPCommandOutDataCompletion

        public void requestSendPTPCommandOutDataCompletion​(@NotNull
                                                           @NotNull NSData ptpCommand,
                                                           @Nullable
                                                           @Nullable NSData ptpData,
                                                           @NotNull
                                                           @NotNull 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. API-Since: 13.0
      • 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​(@NotNull
                                       @NotNull 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. API-Since: 13.0
      • 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 always set to YES when the device has the capability 'ICCameraDeviceCanTakePicture' requestEnableTethering/requestDisableTethering is no longer required to setup and destroy the standard take picture functionality of supported cameras.
      • 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. API-Since: 14.0
      • 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. API-Since: 14.0
      • requestReadDataFromFileAtOffsetLengthReadDelegateDidReadDataSelectorContextInfo

        public void requestReadDataFromFileAtOffsetLengthReadDelegateDidReadDataSelectorContextInfo​(@NotNull
                                                                                                    @NotNull ICCameraFile file,
                                                                                                    long offset,
                                                                                                    long length,
                                                                                                    @NotNull
                                                                                                    @NotNull java.lang.Object readDelegate,
                                                                                                    @NotNull
                                                                                                    @NotNull org.moe.natj.objc.SEL selector,
                                                                                                    @Nullable
                                                                                                    @Nullable org.moe.natj.general.ptr.VoidPtr contextInfo)
        requestReadDataFromFile:atOffset:length:readDelegate:didReadDataSelector:contextInfo: This method asynchronously reads data of a specified length from a specified offset. The readDelegate passed must not be nil. When this request is completed, the didReadDataSelector of the readDelegate object is called. The didReadDataSelector should have the same signature as: - (void)didReadData:(NSData*)data fromFile:(ICCameraFile*)file error:(NSError*)error contextInfo:(void*)contextInfo. The content of error returned should be examined to determine if the request completed successfully. API-Since: 15.2
      • requestSendPTPCommandOutDataSendCommandDelegateDidSendCommandSelectorContextInfo

        public void requestSendPTPCommandOutDataSendCommandDelegateDidSendCommandSelectorContextInfo​(@NotNull
                                                                                                     @NotNull NSData command,
                                                                                                     @Nullable
                                                                                                     @Nullable NSData data,
                                                                                                     @NotNull
                                                                                                     @NotNull java.lang.Object sendCommandDelegate,
                                                                                                     @NotNull
                                                                                                     @NotNull org.moe.natj.objc.SEL selector,
                                                                                                     @Nullable
                                                                                                     @Nullable org.moe.natj.general.ptr.VoidPtr contextInfo)
        requestSendPTPCommand:outData:sendCommandDelegate:sendCommandDelegate:contextInfo: This method asynchronously sends a PTP command to a camera. This should be sent only if the 'capabilities' property contains 'ICCameraDeviceCanAcceptPTPCommands'. All PTP cameras have this capability. The response to this command will be delivered using didSendCommandSelector of sendCommandDelegate. The didSendCommandSelector should have the same signature as: - (void)didSendPTPCommand:(NSData*)command inData:(NSData*)data response:(NSData*)response error:(NSError*)error contextInfo:(void*)contextInfo. The content of error returned should be examined to determine if the request completed successfully. API-Since: 15.2
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.