package deviceaccess
Import Path
github.com/chromedp/cdproto/deviceaccess (on go.dev)
Dependency Relation
imports 6 packages, and imported by one package
Involved Source Files
Package deviceaccess provides the Chrome DevTools Protocol
commands, types, and events for the DeviceAccess domain.
Generated by the cdproto-gen command.
easyjson.go
events.go
types.go
Package-Level Type Names (total 8)
CancelPromptParams cancel a prompt in response to a
DeviceAccess.deviceRequestPrompted event.
ID RequestID
Do executes DeviceAccess.cancelPrompt against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*CancelPromptParams : github.com/chromedp/chromedp.Action
*CancelPromptParams : github.com/chromedp/chromedp.CallAction
*CancelPromptParams : github.com/chromedp/chromedp.EmulateAction
*CancelPromptParams : github.com/chromedp/chromedp.EvaluateAction
*CancelPromptParams : github.com/chromedp/chromedp.KeyAction
*CancelPromptParams : github.com/chromedp/chromedp.MouseAction
*CancelPromptParams : github.com/chromedp/chromedp.NavigateAction
*CancelPromptParams : github.com/chromedp/chromedp.PollAction
*CancelPromptParams : github.com/chromedp/chromedp.QueryAction
CancelPromptParams : github.com/goccy/go-json.Marshaler
*CancelPromptParams : github.com/goccy/go-json.Unmarshaler
CancelPromptParams : github.com/mailru/easyjson.Marshaler
*CancelPromptParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*CancelPromptParams : github.com/mailru/easyjson.Unmarshaler
CancelPromptParams : encoding/json.Marshaler
*CancelPromptParams : encoding/json.Unmarshaler
func CancelPrompt(id RequestID) *CancelPromptParams
DeviceID a device id.
See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#type-DeviceId
String returns the DeviceID as string value.
DeviceID : expvar.Var
DeviceID : fmt.Stringer
func SelectPrompt(id RequestID, deviceID DeviceID) *SelectPromptParams
DisableParams disable events in this domain.
Do executes DeviceAccess.disable against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*DisableParams : github.com/chromedp/chromedp.Action
*DisableParams : github.com/chromedp/chromedp.CallAction
*DisableParams : github.com/chromedp/chromedp.EmulateAction
*DisableParams : github.com/chromedp/chromedp.EvaluateAction
*DisableParams : github.com/chromedp/chromedp.KeyAction
*DisableParams : github.com/chromedp/chromedp.MouseAction
*DisableParams : github.com/chromedp/chromedp.NavigateAction
*DisableParams : github.com/chromedp/chromedp.PollAction
*DisableParams : github.com/chromedp/chromedp.QueryAction
DisableParams : github.com/goccy/go-json.Marshaler
*DisableParams : github.com/goccy/go-json.Unmarshaler
DisableParams : github.com/mailru/easyjson.Marshaler
*DisableParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*DisableParams : github.com/mailru/easyjson.Unmarshaler
DisableParams : encoding/json.Marshaler
*DisableParams : encoding/json.Unmarshaler
func Disable() *DisableParams
EnableParams enable events in this domain.
Do executes DeviceAccess.enable against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*EnableParams : github.com/chromedp/chromedp.Action
*EnableParams : github.com/chromedp/chromedp.CallAction
*EnableParams : github.com/chromedp/chromedp.EmulateAction
*EnableParams : github.com/chromedp/chromedp.EvaluateAction
*EnableParams : github.com/chromedp/chromedp.KeyAction
*EnableParams : github.com/chromedp/chromedp.MouseAction
*EnableParams : github.com/chromedp/chromedp.NavigateAction
*EnableParams : github.com/chromedp/chromedp.PollAction
*EnableParams : github.com/chromedp/chromedp.QueryAction
EnableParams : github.com/goccy/go-json.Marshaler
*EnableParams : github.com/goccy/go-json.Unmarshaler
EnableParams : github.com/mailru/easyjson.Marshaler
*EnableParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*EnableParams : github.com/mailru/easyjson.Unmarshaler
EnableParams : encoding/json.Marshaler
*EnableParams : encoding/json.Unmarshaler
func Enable() *EnableParams
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
Devices []*PromptDevice
ID RequestID
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
EventDeviceRequestPrompted : github.com/goccy/go-json.Marshaler
*EventDeviceRequestPrompted : github.com/goccy/go-json.Unmarshaler
EventDeviceRequestPrompted : github.com/mailru/easyjson.Marshaler
*EventDeviceRequestPrompted : github.com/mailru/easyjson.MarshalerUnmarshaler
*EventDeviceRequestPrompted : github.com/mailru/easyjson.Unmarshaler
EventDeviceRequestPrompted : encoding/json.Marshaler
*EventDeviceRequestPrompted : encoding/json.Unmarshaler
PromptDevice device information displayed in a user prompt to select a
device.
See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#type-PromptDevice
ID DeviceID
// Display name as it appears in a device request user prompt.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
PromptDevice : github.com/goccy/go-json.Marshaler
*PromptDevice : github.com/goccy/go-json.Unmarshaler
PromptDevice : github.com/mailru/easyjson.Marshaler
*PromptDevice : github.com/mailru/easyjson.MarshalerUnmarshaler
*PromptDevice : github.com/mailru/easyjson.Unmarshaler
PromptDevice : encoding/json.Marshaler
*PromptDevice : encoding/json.Unmarshaler
RequestID device request id.
See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#type-RequestId
String returns the RequestID as string value.
RequestID : expvar.Var
RequestID : fmt.Stringer
func CancelPrompt(id RequestID) *CancelPromptParams
func SelectPrompt(id RequestID, deviceID DeviceID) *SelectPromptParams
SelectPromptParams select a device in response to a
DeviceAccess.deviceRequestPrompted event.
DeviceID DeviceID
ID RequestID
Do executes DeviceAccess.selectPrompt against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*SelectPromptParams : github.com/chromedp/chromedp.Action
*SelectPromptParams : github.com/chromedp/chromedp.CallAction
*SelectPromptParams : github.com/chromedp/chromedp.EmulateAction
*SelectPromptParams : github.com/chromedp/chromedp.EvaluateAction
*SelectPromptParams : github.com/chromedp/chromedp.KeyAction
*SelectPromptParams : github.com/chromedp/chromedp.MouseAction
*SelectPromptParams : github.com/chromedp/chromedp.NavigateAction
*SelectPromptParams : github.com/chromedp/chromedp.PollAction
*SelectPromptParams : github.com/chromedp/chromedp.QueryAction
SelectPromptParams : github.com/goccy/go-json.Marshaler
*SelectPromptParams : github.com/goccy/go-json.Unmarshaler
SelectPromptParams : github.com/mailru/easyjson.Marshaler
*SelectPromptParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SelectPromptParams : github.com/mailru/easyjson.Unmarshaler
SelectPromptParams : encoding/json.Marshaler
*SelectPromptParams : encoding/json.Unmarshaler
func SelectPrompt(id RequestID, deviceID DeviceID) *SelectPromptParams
Package-Level Functions (total 4)
CancelPrompt cancel a prompt in response to a
DeviceAccess.deviceRequestPrompted event.
See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#method-cancelPrompt
parameters:
id
Disable disable events in this domain.
See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#method-disable
Enable enable events in this domain.
See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#method-enable
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
Package-Level Constants (total 4)
Command names.
Command names.
Command names.
Command names.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |