Documentation
¶
Overview ¶
Package deviceaccess provides the Chrome DevTools Protocol commands, types, and events for the DeviceAccess domain.
Generated by the cdproto-gen command.
Index ¶
Constants ¶
const ( CommandEnable = "DeviceAccess.enable" CommandDisable = "DeviceAccess.disable" CommandSelectPrompt = "DeviceAccess.selectPrompt" CommandCancelPrompt = "DeviceAccess.cancelPrompt" )
Command names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelPromptParams ¶
type CancelPromptParams struct {
ID RequestID `json:"id"`
}
CancelPromptParams cancel a prompt in response to a DeviceAccess.deviceRequestPrompted event.
func CancelPrompt ¶
func CancelPrompt(id RequestID) *CancelPromptParams
CancelPrompt cancel a prompt in response to a DeviceAccess.deviceRequestPrompted event.
See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#method-cancelPrompt
parameters:
id
type DeviceID ¶
type DeviceID string
DeviceID a device id.
See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#type-DeviceId
type DisableParams ¶
type DisableParams struct{}
DisableParams disable events in this domain.
func Disable ¶
func Disable() *DisableParams
Disable disable events in this domain.
See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#method-disable
type EnableParams ¶
type EnableParams struct{}
EnableParams enable events in this domain.
func Enable ¶
func Enable() *EnableParams
Enable enable events in this domain.
See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#method-enable
type EventDeviceRequestPrompted ¶
type EventDeviceRequestPrompted struct {
ID RequestID `json:"id"`
Devices []*PromptDevice `json:"devices"`
}
EventDeviceRequestPrompted a device request opened a user prompt to select a device. Respond with the selectPrompt or cancelPrompt command.
See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#event-deviceRequestPrompted
type PromptDevice ¶
type PromptDevice struct {
ID DeviceID `json:"id"`
Name string `json:"name"` // Display name as it appears in a device request user prompt.
}
PromptDevice device information displayed in a user prompt to select a device.
See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#type-PromptDevice
type RequestID ¶
type RequestID string
RequestID device request id.
See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#type-RequestId
type SelectPromptParams ¶
SelectPromptParams select a device in response to a DeviceAccess.deviceRequestPrompted event.
func SelectPrompt ¶
func SelectPrompt(id RequestID, deviceID DeviceID) *SelectPromptParams
SelectPrompt select a device in response to a DeviceAccess.deviceRequestPrompted event.
See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#method-selectPrompt
parameters:
id deviceID