Documentation
¶
Overview ¶
Package deviceorientation provides the Chrome DevTools Protocol commands, types, and events for the DeviceOrientation domain.
Generated by the pdlgen command.
Index ¶
Constants ¶
View Source
const ( CommandClearDeviceOrientationOverride = "DeviceOrientation.clearDeviceOrientationOverride" CommandSetDeviceOrientationOverride = "DeviceOrientation.setDeviceOrientationOverride" )
Command names.
Variables ¶
View Source
var ClearDeviceOrientationOverride = cdp.Command[cdp.Empty, cdp.Empty]{Method: CommandClearDeviceOrientationOverride}
ClearDeviceOrientationOverride clears the overridden Device Orientation.
View Source
var SetDeviceOrientationOverride = cdp.Command[SetDeviceOrientationOverrideParams, cdp.Empty]{Method: CommandSetDeviceOrientationOverride}
SetDeviceOrientationOverride overrides the Device Orientation.
Functions ¶
This section is empty.
Types ¶
type SetDeviceOrientationOverrideParams ¶
type SetDeviceOrientationOverrideParams struct {
Alpha float64 `json:"alpha"` // Mock alpha
Beta float64 `json:"beta"` // Mock beta
Gamma float64 `json:"gamma"` // Mock gamma
}
SetDeviceOrientationOverrideParams are the parameters of the command DeviceOrientation.setDeviceOrientationOverride.
Click to show internal directories.
Click to hide internal directories.