Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface Protocol.Emulation.DisplayFeature
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/mod.ts";
const { DisplayFeature } = Protocol.Emulation;

Properties

orientation: "vertical" | "horizontal"

Orientation of a display feature in relation to screen (DisplayFeatureOrientation enum)

offset: integer

The offset from the screen origin in either the x (for vertical orientation) or y (for horizontal orientation) direction.

maskLength: integer

A display feature may mask content such that it is not physically displayed - this length along with the offset describes this area. A display feature that only splits content will have a 0 mask_length.