deviceorientation

package
v0.3.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2026 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Overview

Package deviceorientation provides the Chrome DevTools Protocol commands, types, and events for the DeviceOrientation domain.

Generated by the cdproto-gen command.

Index

Constants

View Source
const (
	CommandClearDeviceOrientationOverride = "DeviceOrientation.clearDeviceOrientationOverride"
	CommandSetDeviceOrientationOverride   = "DeviceOrientation.setDeviceOrientationOverride"
)

Command names.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClearDeviceOrientationOverrideParams

type ClearDeviceOrientationOverrideParams struct{}

ClearDeviceOrientationOverrideParams clears the overridden Device Orientation.

func ClearDeviceOrientationOverride

func ClearDeviceOrientationOverride() *ClearDeviceOrientationOverrideParams

ClearDeviceOrientationOverride clears the overridden Device Orientation.

See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceOrientation#method-clearDeviceOrientationOverride

func (*ClearDeviceOrientationOverrideParams) Do

Do executes DeviceOrientation.clearDeviceOrientationOverride against the provided context.

type SetDeviceOrientationOverrideParams

type SetDeviceOrientationOverrideParams struct {
	Alpha float64 `json:"alpha"` // Mock alpha
	Beta  float64 `json:"beta"`  // Mock beta
	Gamma float64 `json:"gamma"` // Mock gamma
}

SetDeviceOrientationOverrideParams overrides the Device Orientation.

func SetDeviceOrientationOverride

func SetDeviceOrientationOverride(alpha float64, beta float64, gamma float64) *SetDeviceOrientationOverrideParams

SetDeviceOrientationOverride overrides the Device Orientation.

See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceOrientation#method-setDeviceOrientationOverride

parameters:

alpha - Mock alpha
beta - Mock beta
gamma - Mock gamma

func (*SetDeviceOrientationOverrideParams) Do

Do executes DeviceOrientation.setDeviceOrientationOverride against the provided context.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL