Help us shape the future of Go! Take the 2026 Go Developer Survey

screen

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package screen captures iOS simulator screenshots with optional scaling.

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