CameraInterface

class CameraInterface(context: Context, cameraListener: CameraInterfaceListener)

Interface to communicate with a vendor specific camera.

Constructors

Link copied to clipboard
fun CameraInterface(context: Context, cameraListener: CameraInterfaceListener)

Functions

Link copied to clipboard
fun connect(device: UsbDevice): Boolean

Connect to the given UsbDevice by iterating through available interfaces and create a new MTP Session.

Link copied to clipboard
fun disconnect()

Disconnect from the currently active device, closing any active session and clearing the queue.

Link copied to clipboard
fun focus()

Activates the single autofocus

Link copied to clipboard
fun getDeviceInfo(): DeviceInfo?

Returns a dataset to provide a description of the device.

Link copied to clipboard
fun getLiveviewPicture(reuse: LiveviewData? = null)

Return the content of the current active liveview

Link copied to clipboard
fun listImages(storageId: Int, objectFormat: Int = ObjectFormat.EXIF_JPEG, listener: CameraStorageListener)

List all remote images on the connected Camera

Link copied to clipboard
fun listStorages(listener: CameraStorageListener)

List all remote storages on the connected Camera

Link copied to clipboard
fun retrievePicture(handle: Int)

Retrieve a specific image by given handle

Link copied to clipboard
fun retrievePictureInfo(handle: Int, listener: CameraImageListener)

Retrieve file informations for the picture with the given handle

Link copied to clipboard
fun startLiveview()

Start liveview

Link copied to clipboard
fun stopLiveview()

Stop liveview

Link copied to clipboard
fun triggerCapture()

D.2.14 Initiates to the Responder device to produce a new data object according to the current device properties using an object capture mechanism enabled by the device.