orientation

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package orientation locks the screen to portrait or landscape.

nimbus native plugin add orientation

orientation.Lock(ctx, orientation.Landscape)
orientation.Unlock(ctx)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lock

func Lock(ctx context.Context, m Mode) error

Lock holds the screen in a mode.

func Unlock

func Unlock(ctx context.Context) error

Unlock follows the phone again.

Types

type Mode

type Mode string

Mode is a way up.

const (
	Portrait  Mode = "portrait"
	Landscape Mode = "landscape"
)

Jump to

Keyboard shortcuts

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