deviceorientation

package
v0.160.11 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 1 Imported by: 4 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

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

SetDeviceOrientationOverride overrides the Device Orientation.

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

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.

Jump to

Keyboard shortcuts

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