vr

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 vr provides Go bindings for android.service.vr.

Index

Constants

View Source
const (
	ServiceInterface = consts.ServiceInterface
)

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 ListenerService

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

ListenerService wraps android.service.vr.VrListenerService.

func (*ListenerService) IsVrModePackageEnabled

func (m *ListenerService) IsVrModePackageEnabled(arg0 *jni.Object, arg1 *jni.Object) (bool, error)

IsVrModePackageEnabled calls android.service.vr.VrListenerService.isVrModePackageEnabled.

func (*ListenerService) OnBind

func (m *ListenerService) OnBind(arg0 *jni.Object) (*jni.Object, error)

OnBind calls android.service.vr.VrListenerService.onBind.

func (*ListenerService) OnCurrentVrActivityChanged

func (m *ListenerService) OnCurrentVrActivityChanged(arg0 *jni.Object) error

OnCurrentVrActivityChanged calls android.service.vr.VrListenerService.onCurrentVrActivityChanged.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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