DeviceAccess

class DeviceAccess(cdp: CDP) : Domain

Constructors

Link copied to clipboard
constructor(cdp: CDP)

Types

Link copied to clipboard
@Serializable
data class CancelPromptParameter(val id: String)
Link copied to clipboard
@Serializable
data class DeviceRequestPromptedParameter(val id: String, val devices: List<DeviceAccess.PromptDevice>)

A device request opened a user prompt to select a device. Respond with the selectPrompt or cancelPrompt command.

Link copied to clipboard
@Serializable
data class PromptDevice(val id: String, val name: String)

Device information displayed in a user prompt to select a device.

Link copied to clipboard
@Serializable
data class SelectPromptParameter(val id: String, val deviceId: String)

Properties

Link copied to clipboard

A device request opened a user prompt to select a device. Respond with the selectPrompt or cancelPrompt command.

Functions

Link copied to clipboard
suspend fun cancelPrompt(id: String)
suspend fun cancelPrompt(args: DeviceAccess.CancelPromptParameter, mode: CommandMode = CommandMode.DEFAULT)

Cancel a prompt in response to a DeviceAccess.deviceRequestPrompted event.

Link copied to clipboard
suspend fun disable(mode: CommandMode = CommandMode.DEFAULT)

Disable events in this domain.

Link copied to clipboard
suspend fun enable(mode: CommandMode = CommandMode.DEFAULT)

Enable events in this domain.

Link copied to clipboard
suspend fun selectPrompt(args: DeviceAccess.SelectPromptParameter, mode: CommandMode = CommandMode.DEFAULT)
suspend fun selectPrompt(id: String, deviceId: String)

Select a device in response to a DeviceAccess.deviceRequestPrompted event.