capture

package
v0.3.0-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// User Use front-facing camera (user-facing). Typically used for selfies, video calls,
	// and user-focused content capture on mobile devices.
	User = Capture("user")

	// Environment Use rear-facing camera (environment-facing). Default camera for photographing
	// surroundings, documents, and general content capture on mobile devices.
	Environment = Capture("environment")
)

Variables for Capture values

Functions

This section is empty.

Types

type Capture

type Capture []byte

Capture Camera selection hint for file inputs accepting images or video. Specifies which camera to use on mobile devices for direct media capture without file selection.

func Custom

func Custom(value string) Capture

Custom allows setting a custom Capture value for edge cases or future specifications. Use this when the predefined constants don't cover your specific use case.

Jump to

Keyboard shortcuts

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