lights

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Overview

Package lights provides Go bindings for .

Index

Constants

View Source
const (
	Creator                    = consts.Creator
	LightCapabilityBrightness  = consts.LightCapabilityBrightness
	LightCapabilityColorRgb    = consts.LightCapabilityColorRgb
	LightCapabilityRgb         = consts.LightCapabilityRgb
	LightTypeInput             = consts.LightTypeInput
	LightTypeKeyboardBacklight = consts.LightTypeKeyboardBacklight
	LightTypeMicrophone        = consts.LightTypeMicrophone
	LightTypePlayerId          = consts.LightTypePlayerId
)

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

func NewlightsManager

func NewlightsManager(ctx *app.Context) (*lightsManager, error)

NewlightsManager obtains android.hardware.lights.LightsManager from the Android system service manager.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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