Recorder

class Recorder(address: Long) : GemNativeObj

Log recorder. Records a video log.

Constructors

Link copied to clipboard
constructor(address: Long)

Types

Link copied to clipboard
object Companion

Recorder companion

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Current configuration. If it is started, first stops it, updates settings and restarts it.

Link copied to clipboard

Recorder status.

Functions

Link copied to clipboard
external fun addListener(listener: ProgressListener): Int

Adds a listener.

Link copied to clipboard
external fun addUserData(dataTypeIdentifier: Long, buffer: DataBuffer): Long

Records a customer buffer together with the sensor data.

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
external fun isAudioRecording(): Boolean

True if audio recording is in progress else false.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
external fun removeListener(listener: ProgressListener): Int

Updates the recorder settings. If it is started, first stops it, updates settings and restarts it.

Link copied to clipboard
external fun setChunkDurationInSeconds(value: Long)

Updates the chunkDurationSeconds setting. Without restarting.

Link copied to clipboard
external fun setContinuousRecording(value: Boolean)

Updates the bContinuousRecording setting. Without restarting.

Link copied to clipboard
external fun setDiskSpaceLimit(value: Long)

Sets the maximum bytes threshold that the logs should use. if this threshold is reached then it will start deleting old recordings, the same functionality happens if the device is full and this limit is set on IGNORE_DISK_LIMIT.

Link copied to clipboard
external fun setKeepMinimumSeconds(value: Long, deleteOlder: Boolean)

Will not delete any record if this threshold is not reached. After the threshold is reached the oldest recording will be deleted if there is no space left on the device.

Link copied to clipboard
external fun startAudioRecording()

Resumes audio recording only if current recording is started and audio is enabled.

Link copied to clipboard
external fun startRecording(): Int

Starts the recording. When recording is started, the status changes to recording and a notification is issued.

Link copied to clipboard
external fun stopAudioRecording()

Suspends audio recording only if current recording is started and audio is enabled.

Link copied to clipboard
external fun stopRecording(): Int

Stops the recording. When recording is stopped, the status changes to stopped and a notification is issued.