lights

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Overview

Package lights provides Go bindings for android.hardware.lights.

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.

Types

type Light added in v0.0.4

type Light struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Light wraps android.hardware.lights.Light.

func (*Light) DescribeContents added in v0.0.4

func (m *Light) DescribeContents() (int32, error)

DescribeContents calls android.hardware.lights.Light.describeContents.

func (*Light) Equals added in v0.0.4

func (m *Light) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.hardware.lights.Light.equals.

func (*Light) GetId added in v0.0.4

func (m *Light) GetId() (int32, error)

GetId calls android.hardware.lights.Light.getId.

func (*Light) GetName added in v0.0.4

func (m *Light) GetName() (string, error)

GetName calls android.hardware.lights.Light.getName.

func (*Light) GetOrdinal added in v0.0.4

func (m *Light) GetOrdinal() (int32, error)

GetOrdinal calls android.hardware.lights.Light.getOrdinal.

func (*Light) GetType added in v0.0.4

func (m *Light) GetType() (int32, error)

GetType calls android.hardware.lights.Light.getType.

func (*Light) HasBrightnessControl added in v0.0.4

func (m *Light) HasBrightnessControl() (bool, error)

HasBrightnessControl calls android.hardware.lights.Light.hasBrightnessControl.

func (*Light) HasRgbControl added in v0.0.4

func (m *Light) HasRgbControl() (bool, error)

HasRgbControl calls android.hardware.lights.Light.hasRgbControl.

func (*Light) HashCode added in v0.0.4

func (m *Light) HashCode() (int32, error)

HashCode calls android.hardware.lights.Light.hashCode.

func (*Light) ToString added in v0.0.4

func (m *Light) ToString() (string, error)

ToString calls android.hardware.lights.Light.toString.

func (*Light) WriteToParcel added in v0.0.4

func (m *Light) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.hardware.lights.Light.writeToParcel.

type LightState added in v0.0.4

type LightState struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

LightState wraps android.hardware.lights.LightState.

func (*LightState) DescribeContents added in v0.0.4

func (m *LightState) DescribeContents() (int32, error)

DescribeContents calls android.hardware.lights.LightState.describeContents.

func (*LightState) GetColor added in v0.0.4

func (m *LightState) GetColor() (int32, error)

GetColor calls android.hardware.lights.LightState.getColor.

func (*LightState) GetPlayerId added in v0.0.4

func (m *LightState) GetPlayerId() (int32, error)

GetPlayerId calls android.hardware.lights.LightState.getPlayerId.

func (*LightState) ToString added in v0.0.4

func (m *LightState) ToString() (string, error)

ToString calls android.hardware.lights.LightState.toString.

func (*LightState) WriteToParcel added in v0.0.4

func (m *LightState) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.hardware.lights.LightState.writeToParcel.

type LightStateBuilder added in v0.0.4

type LightStateBuilder struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

LightStateBuilder wraps android.hardware.lights.LightState$Builder.

func (*LightStateBuilder) Build added in v0.0.4

func (m *LightStateBuilder) Build() (*jni.Object, error)

Build calls android.hardware.lights.LightState$Builder.build.

func (*LightStateBuilder) SetColor added in v0.0.4

func (m *LightStateBuilder) SetColor(arg0 int32) (*jni.Object, error)

SetColor calls android.hardware.lights.LightState$Builder.setColor.

func (*LightStateBuilder) SetPlayerId added in v0.0.4

func (m *LightStateBuilder) SetPlayerId(arg0 int32) (*jni.Object, error)

SetPlayerId calls android.hardware.lights.LightState$Builder.setPlayerId.

type Manager added in v0.0.4

type Manager struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Manager wraps android.hardware.lights.LightsManager.

func (*Manager) GetLightState added in v0.0.4

func (m *Manager) GetLightState(arg0 *jni.Object) (*jni.Object, error)

GetLightState calls android.hardware.lights.LightsManager.getLightState.

func (*Manager) GetLights added in v0.0.4

func (m *Manager) GetLights() (*jni.Object, error)

GetLights calls android.hardware.lights.LightsManager.getLights.

func (*Manager) OpenSession added in v0.0.4

func (m *Manager) OpenSession() (*jni.Object, error)

OpenSession calls android.hardware.lights.LightsManager.openSession.

type ManagerLightsSession added in v0.0.4

type ManagerLightsSession struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ManagerLightsSession wraps android.hardware.lights.LightsManager$LightsSession.

func (*ManagerLightsSession) Close added in v0.0.4

func (m *ManagerLightsSession) Close() error

Close calls android.hardware.lights.LightsManager$LightsSession.close.

func (*ManagerLightsSession) RequestLights added in v0.0.4

func (m *ManagerLightsSession) RequestLights(arg0 *jni.Object) error

RequestLights calls android.hardware.lights.LightsManager$LightsSession.requestLights.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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