screen

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultScale = 0.25

DefaultScale is the default scaling factor for screenshots.

Variables

This section is empty.

Functions

func CaptureSimulator

func CaptureSimulator(ctx context.Context, udid string) ([]byte, error)

CaptureSimulator captures a screenshot of the simulator window, scaled down.

func CaptureSimulatorScaled

func CaptureSimulatorScaled(ctx context.Context, udid string, scale float64) ([]byte, error)

CaptureSimulatorScaled captures a screenshot and scales it by the given factor.

Types

This section is empty.

Jump to

Keyboard shortcuts

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