Platforms to show: All Mac Windows Linux Cross-Platform

Back to ICCameraDeviceMBS class.

ICCameraDeviceMBS.cancelDelete

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS AVFoundation Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Cancels the current delete operation started by sending a requestDeleteFiles.

ICCameraDeviceMBS.cancelDownload

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS AVFoundation Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Cancels the current download operation.

ICCameraDeviceMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS AVFoundation Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The private constructor.

ICCameraDeviceMBS.contents as ICCameraItemMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS AVFoundation Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
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.

ICCameraDeviceMBS.filesOfType(fileUTType as string) as ICCameraFileMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS AVFoundation Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
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.
See UTTypeMBS module.

ICCameraDeviceMBS.mediaFiles as ICCameraFileMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS AVFoundation Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
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.

If no files show up, try again a second later as the framework may not yet have the list loaded.

ICCameraDeviceMBS.requestDeleteFiles(files() as ICCameraFileMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS AVFoundation Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Deletes files.

Some examples using this method:

ICCameraDeviceMBS.requestDisableTethering

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS AVFoundation Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Send this message to disable tethered capture on the camera device if the camera has the 'ICCameraDeviceCanTakePicture' capability and if your process has already sent a 'requestEnableTethering' to it.

ICCameraDeviceMBS.requestDownloadFile(file as ICCameraFileMBS, options as dictionary = nil)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS AVFoundation Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Download a file from the camera. Please refer to the top of this header for information about the options.

Calls cameraDeviceDidDownloadFile event later.
The content of error returned should be examined to determine if the request completed successfully.

Some examples using this method:

ICCameraDeviceMBS.requestEnableTethering

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS AVFoundation Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Send this message to enable tethered capture on the camera device if the camera has the 'ICCameraDeviceCanTakePicture' capability.

ICCameraDeviceMBS.requestReadDataFromFile(file as ICCameraFileMBS, offset as UInt64, Length as UInt64)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS AVFoundation Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
This method asynchronously reads data of a specified length from a specified offset.

Calls later ImageCaptureEventsMBS.cameraDeviceDidReadData event.
The content of error returned should be examined to determine if the request completed successfully.

Some examples using this method:

ICCameraDeviceMBS.requestSendPTPCommand(command as MemoryBlock, dataOut as MemoryBlock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS AVFoundation Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
This method asynchronously sends a PTP command to a camera.

The content of error returned should be examined to determine if the request completed successfully.

ICCameraDeviceMBS.requestSyncClock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS AVFoundation Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Synchronize camera's clock with the computer's clock.

You should send this request only if the camera has the 'ICCameraDeviceCanSyncClock' capability.

Some examples using this method:

ICCameraDeviceMBS.requestTakePicture

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS AVFoundation Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Capture a new image using the camera, the camera capabilities include 'ICCameraDeviceCanTakePicture'.

You MUST send 'requestEnableTethering' message to the camera before sending 'requestTakePicture' message.

Some examples using this method:

ICCameraDeviceMBS.requestUploadFile(file as folderitem, options as dictionary = nil)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS AVFoundation Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Upload a file at fileURL to the camera.

The options dictionary is not used in this version.
Calls later ImageCaptureEventsMBS.cameraDeviceDidUploadFile event.
The content of error returned should be examined to determine if the request completed successfully.

The items on this page are in the following plugins: MBS AVFoundation Plugin.


The biggest plugin in space...