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.
    • Constructor Detail

      • ICCameraDevice

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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.
      • 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.