MicCameraStateRepository

Repository of current state of device's camera and microphone.

Types

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun dispose()

Disconnect and clear resources.

Link copied to clipboard
abstract fun getVersion(): Int?

Returns device version service.

Link copied to clipboard
@RequiresPermission(value = "ru.sberdevices.permission.CHANGE_CAMERA_STATE")
abstract fun setCameraEnabled(newState: Boolean)

Set camera state programmatically.

Link copied to clipboard
@RequiresPermission(value = "ru.sberdevices.permission.CHANGE_MIC_STATE")
abstract fun setMicEnabled(newState: Boolean)

Set mic state programmatically.

Properties

Link copied to clipboard

Current camera state.

Link copied to clipboard
abstract val isCameraCovered: Flow<Boolean>

Is camera covered now.

Link copied to clipboard

Current microphone state.