DeviceState

data class DeviceState(val microphoneStatus: StateFlow<DeviceStatus>, val microphoneLastError: StateFlow<DeviceError>, val captureVolume: StateFlow<Int>, val currentMicVolume: StateFlow<Int>, val outputVolume: StateFlow<Int>, val cameraStatus: StateFlow<DeviceStatus>, val cameraLastError: StateFlow<DeviceError>, val isFrontCamera: StateFlow<Boolean>, val localMirrorType: StateFlow<MirrorType>, val localVideoQuality: StateFlow<VideoQuality>, val currentAudioRoute: StateFlow<AudioRoute>, val screenStatus: StateFlow<DeviceStatus>, val networkInfo: StateFlow<NetworkInfo>)

Device state

Constructors

Link copied to clipboard
constructor(microphoneStatus: StateFlow<DeviceStatus>, microphoneLastError: StateFlow<DeviceError>, captureVolume: StateFlow<Int>, currentMicVolume: StateFlow<Int>, outputVolume: StateFlow<Int>, cameraStatus: StateFlow<DeviceStatus>, cameraLastError: StateFlow<DeviceError>, isFrontCamera: StateFlow<Boolean>, localMirrorType: StateFlow<MirrorType>, localVideoQuality: StateFlow<VideoQuality>, currentAudioRoute: StateFlow<AudioRoute>, screenStatus: StateFlow<DeviceStatus>, networkInfo: StateFlow<NetworkInfo>)

Properties

Link copied to clipboard

Camera error, used to extract error information when an error occurs. {@link DeviceError}

Link copied to clipboard
val cameraStatus: StateFlow<DeviceStatus>

Camera status. {@link DeviceStatus}

Link copied to clipboard
val captureVolume: StateFlow<Int>

Capture volume, range 0, 100

Link copied to clipboard

Current audio route position. {@link AudioRoute}

Link copied to clipboard
val currentMicVolume: StateFlow<Int>

Current user's actual output volume.

Link copied to clipboard
val isFrontCamera: StateFlow<Boolean>

Whether it is front camera.

Link copied to clipboard
val localMirrorType: StateFlow<MirrorType>

Mirror status. {@link MirrorType}

Link copied to clipboard

Local video quality. {@link VideoQuality}

Link copied to clipboard

Microphone error, used to extract error information when an error occurs. {@link DeviceError}

Link copied to clipboard

Microphone status. {@link DeviceStatus}

Link copied to clipboard
val networkInfo: StateFlow<NetworkInfo>

Network information. {@link NetworkInfo}

Link copied to clipboard
val outputVolume: StateFlow<Int>

Maximum output volume, range 0, 100

Link copied to clipboard
val screenStatus: StateFlow<DeviceStatus>

Screen sharing status. {@link DeviceStatus}