input

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

View Source
const (
	ActionQueryKeyboardLayouts = consts.ActionQueryKeyboardLayouts
	MetaDataKeyboardLayouts    = consts.MetaDataKeyboardLayouts
)
View Source
const (
	Creator = consts.Creator
)

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 HostUsiVersion

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

HostUsiVersion wraps android.hardware.input.HostUsiVersion.

func (*HostUsiVersion) DescribeContents

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

DescribeContents calls android.hardware.input.HostUsiVersion.describeContents.

func (*HostUsiVersion) Equals

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

Equals calls android.hardware.input.HostUsiVersion.equals.

func (*HostUsiVersion) GetMajorVersion

func (m *HostUsiVersion) GetMajorVersion() (int32, error)

GetMajorVersion calls android.hardware.input.HostUsiVersion.getMajorVersion.

func (*HostUsiVersion) GetMinorVersion

func (m *HostUsiVersion) GetMinorVersion() (int32, error)

GetMinorVersion calls android.hardware.input.HostUsiVersion.getMinorVersion.

func (*HostUsiVersion) HashCode

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

HashCode calls android.hardware.input.HostUsiVersion.hashCode.

func (*HostUsiVersion) ToString

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

ToString calls android.hardware.input.HostUsiVersion.toString.

func (*HostUsiVersion) WriteToParcel

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

WriteToParcel calls android.hardware.input.HostUsiVersion.writeToParcel.

type Manager

type Manager struct {
	VM  *jni.VM
	Ctx *app.Context
	Obj *jni.GlobalRef
}

Manager wraps android.hardware.input.InputManager.

func NewManager

func NewManager(ctx *app.Context) (*Manager, error)

NewManager obtains android.hardware.input.InputManager from the Android system service manager.

func (*Manager) Close

func (m *Manager) Close()

Close releases the global reference to the underlying Java object. After Close, the Manager must not be used.

func (*Manager) GetHostUsiVersion

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

GetHostUsiVersion calls android.hardware.input.InputManager.getHostUsiVersion.

func (*Manager) GetInputDevice

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

GetInputDevice calls android.hardware.input.InputManager.getInputDevice.

func (*Manager) GetInputDeviceIds

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

GetInputDeviceIds calls android.hardware.input.InputManager.getInputDeviceIds.

func (*Manager) GetInputDeviceViewBehavior

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

GetInputDeviceViewBehavior calls android.hardware.input.InputManager.getInputDeviceViewBehavior.

func (*Manager) GetMaximumObscuringOpacityForTouch

func (m *Manager) GetMaximumObscuringOpacityForTouch() (float32, error)

GetMaximumObscuringOpacityForTouch calls android.hardware.input.InputManager.getMaximumObscuringOpacityForTouch.

func (*Manager) IsStylusPointerIconEnabled

func (m *Manager) IsStylusPointerIconEnabled() (bool, error)

IsStylusPointerIconEnabled calls android.hardware.input.InputManager.isStylusPointerIconEnabled.

func (*Manager) UnregisterInputDeviceListener

func (m *Manager) UnregisterInputDeviceListener(arg0 *jni.Object) error

UnregisterInputDeviceListener calls android.hardware.input.InputManager.unregisterInputDeviceListener.

func (*Manager) VerifyInputEvent

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

VerifyInputEvent calls android.hardware.input.InputManager.verifyInputEvent.

type ManagerInputDeviceListener

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

ManagerInputDeviceListener wraps android.hardware.input.InputManager$InputDeviceListener.

func (*ManagerInputDeviceListener) OnInputDeviceAdded

func (m *ManagerInputDeviceListener) OnInputDeviceAdded(arg0 int32) error

OnInputDeviceAdded calls android.hardware.input.InputManager$InputDeviceListener.onInputDeviceAdded.

func (*ManagerInputDeviceListener) OnInputDeviceChanged

func (m *ManagerInputDeviceListener) OnInputDeviceChanged(arg0 int32) error

OnInputDeviceChanged calls android.hardware.input.InputManager$InputDeviceListener.onInputDeviceChanged.

func (*ManagerInputDeviceListener) OnInputDeviceRemoved

func (m *ManagerInputDeviceListener) OnInputDeviceRemoved(arg0 int32) error

OnInputDeviceRemoved calls android.hardware.input.InputManager$InputDeviceListener.onInputDeviceRemoved.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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