// Package deviceaccess provides the Chrome DevTools Protocol// commands, types, and events for the DeviceAccess domain.//// Generated by the cdproto-gen command.
package deviceaccess// Code generated by cdproto-gen. DO NOT EDIT.import ()// EnableParams enable events in this domain.typeEnableParamsstruct{}// Enable enable events in this domain.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#method-enablefunc () *EnableParams {return &EnableParams{}}// Do executes DeviceAccess.enable against the provided context.func ( *EnableParams) ( context.Context) ( error) {returncdp.Execute(, CommandEnable, nil, nil)}// DisableParams disable events in this domain.typeDisableParamsstruct{}// Disable disable events in this domain.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#method-disablefunc () *DisableParams {return &DisableParams{}}// Do executes DeviceAccess.disable against the provided context.func ( *DisableParams) ( context.Context) ( error) {returncdp.Execute(, CommandDisable, nil, nil)}// SelectPromptParams select a device in response to a// DeviceAccess.deviceRequestPrompted event.typeSelectPromptParamsstruct { ID RequestID`json:"id"` DeviceID DeviceID`json:"deviceId"`}// SelectPrompt select a device in response to a// DeviceAccess.deviceRequestPrompted event.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#method-selectPrompt//// parameters://// id// deviceIDfunc ( RequestID, DeviceID) *SelectPromptParams {return &SelectPromptParams{ID: ,DeviceID: , }}// Do executes DeviceAccess.selectPrompt against the provided context.func ( *SelectPromptParams) ( context.Context) ( error) {returncdp.Execute(, CommandSelectPrompt, , nil)}// CancelPromptParams cancel a prompt in response to a// DeviceAccess.deviceRequestPrompted event.typeCancelPromptParamsstruct { ID RequestID`json:"id"`}// CancelPrompt cancel a prompt in response to a// DeviceAccess.deviceRequestPrompted event.//// See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#method-cancelPrompt//// parameters://// idfunc ( RequestID) *CancelPromptParams {return &CancelPromptParams{ID: , }}// Do executes DeviceAccess.cancelPrompt against the provided context.func ( *CancelPromptParams) ( context.Context) ( error) {returncdp.Execute(, CommandCancelPrompt, , nil)}// Command names.const (CommandEnable = "DeviceAccess.enable"CommandDisable = "DeviceAccess.disable"CommandSelectPrompt = "DeviceAccess.selectPrompt"CommandCancelPrompt = "DeviceAccess.cancelPrompt")
The pages are generated with Goldsv0.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.