CommandsContainer

Wrapper to access operations exposed as methods.

Functions

Link copied to clipboard
suspend fun deleteAllMedia(): Result<Unit>

Delete all media files on the SD card

Link copied to clipboard
suspend fun deleteGroupedMedia(group: MediaId): Result<Unit>

Delete an entire group of media files such as in a burst, timelapse, or chaptered video.

Link copied to clipboard
suspend fun deleteSingleMedia(file: MediaId): Result<Unit>

Delete a single media file

Link copied to clipboard
suspend fun downloadMedia(file: MediaId): Result<ByteArray>

Download a media file

Link copied to clipboard
suspend fun getDateTime(): Result<GpDatetime>

Get the camera's current date and time

Link copied to clipboard

Get hardware information of the connected camera

Link copied to clipboard

Get the last captured media file ID

Link copied to clipboard

Get continuous livestream statuses

Link copied to clipboard
suspend fun getMediaList(): Result<MediaList>

Get the Media List

Link copied to clipboard

Get Media Metadata for a single media file

Link copied to clipboard
suspend fun getPresetInfo(): Result<Flow<PresetInfo>>

Get available presets and related preset information

Link copied to clipboard
suspend fun getScreenNail(file: MediaId): Result<ByteArray>

Download a screennail for a given media file

Link copied to clipboard
suspend fun getThumbNail(file: MediaId): Result<ByteArray>

Download a thumbnail for a given media file

Link copied to clipboard

Get the current webcam state

Link copied to clipboard
suspend fun hilightFile(file: MediaId, offsetMs: Int? = null): Result<Unit>

Add a hilight / tag to an existing photo or media file

Link copied to clipboard
suspend fun hilightMoment(): Result<Unit>

Add hilight at current time while recording video

Link copied to clipboard
suspend fun hilightRemove(file: MediaId, offsetMs: Int?): Result<Unit>

Remove an existing hilight from a photo or video file

Link copied to clipboard
suspend fun loadPreset(presetId: Int): Result<Unit>

Load a preset by ID

Link copied to clipboard

Load a preset group by ID

Link copied to clipboard

Read the camera's Access Point password

Link copied to clipboard
suspend fun readWifiSsid(): Result<String>

Read the camera's Access Point SSID

Link copied to clipboard
suspend fun setApMode(enable: Boolean): Result<Unit>

Set camera Access Point on / off

Link copied to clipboard
suspend fun setDateTime(datetime: LocalDateTime, utcOffset: UtcOffset, isDaylightSavings: Boolean): Result<Unit>

Set the camera's date and time.

Link copied to clipboard
suspend fun setDigitalZoom(zoom: Int): Result<Unit>

Set the camera's digital zoom

Link copied to clipboard
suspend fun setShutter(value: Boolean): Result<Unit>

Enable / disable the shutter to start / stop encoding

Link copied to clipboard
suspend fun setThirdParty(): Result<Unit>

Flag as third party client

Link copied to clipboard
suspend fun sleep(): Result<Unit>

Put the camera to sleep

Link copied to clipboard

Configure and start livestreaming

Link copied to clipboard

Start the preview stream

Link copied to clipboard
suspend fun startWebcam(resolution: WebcamResolution? = null, fov: WebcamFov? = null, port: Int? = null, protocol: WebcamProtocol? = null): Result<Unit>

Start wireless webcam streaming

Link copied to clipboard
suspend fun stopPreviewStream(): Result<Unit>

Stop the preview stream

Link copied to clipboard
suspend fun stopWebcam(): Result<Unit>

Stop the wireless webcam