window

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

Index

Constants

View Source
const (
	Creator                          = consts.Creator
	PriorityDefault                  = consts.PriorityDefault
	PriorityOverlay                  = consts.PriorityOverlay
	PrioritySystemNavigationObserver = consts.PrioritySystemNavigationObserver
	SplashScreenStyleIcon            = consts.SplashScreenStyleIcon
	SplashScreenStyleSolidColor      = consts.SplashScreenStyleSolidColor
	EdgeLeft                         = consts.EdgeLeft
	EdgeNone                         = consts.EdgeNone
	EdgeRight                        = consts.EdgeRight
)

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 BackEvent

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

BackEvent wraps android.window.BackEvent.

func NewBackEvent

func NewBackEvent(vm *jni.VM, arg0 float32, arg1 float32, arg2 float32, arg3 int32) (*BackEvent, error)

NewBackEvent creates a new android.window.BackEvent instance.

func (*BackEvent) Equals

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

Equals calls android.window.BackEvent.equals.

func (*BackEvent) GetFrameTimeMillis

func (m *BackEvent) GetFrameTimeMillis() (int64, error)

GetFrameTimeMillis calls android.window.BackEvent.getFrameTimeMillis.

func (*BackEvent) GetProgress

func (m *BackEvent) GetProgress() (float32, error)

GetProgress calls android.window.BackEvent.getProgress.

func (*BackEvent) GetSwipeEdge

func (m *BackEvent) GetSwipeEdge() (int32, error)

GetSwipeEdge calls android.window.BackEvent.getSwipeEdge.

func (*BackEvent) GetTouchX

func (m *BackEvent) GetTouchX() (float32, error)

GetTouchX calls android.window.BackEvent.getTouchX.

func (*BackEvent) GetTouchY

func (m *BackEvent) GetTouchY() (float32, error)

GetTouchY calls android.window.BackEvent.getTouchY.

func (*BackEvent) ToString

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

ToString calls android.window.BackEvent.toString.

type InputTransferToken

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

InputTransferToken wraps android.window.InputTransferToken.

func (*InputTransferToken) DescribeContents

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

DescribeContents calls android.window.InputTransferToken.describeContents.

func (*InputTransferToken) Equals

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

Equals calls android.window.InputTransferToken.equals.

func (*InputTransferToken) HashCode

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

HashCode calls android.window.InputTransferToken.hashCode.

func (*InputTransferToken) WriteToParcel

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

WriteToParcel calls android.window.InputTransferToken.writeToParcel.

type OnBackInvokedCallback

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

OnBackInvokedCallback wraps android.window.OnBackInvokedCallback.

func (*OnBackInvokedCallback) OnBackInvoked

func (m *OnBackInvokedCallback) OnBackInvoked() error

OnBackInvoked calls android.window.OnBackInvokedCallback.onBackInvoked.

type OnBackInvokedDispatcher

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

OnBackInvokedDispatcher wraps android.window.OnBackInvokedDispatcher.

func (*OnBackInvokedDispatcher) RegisterOnBackInvokedCallback

func (m *OnBackInvokedDispatcher) RegisterOnBackInvokedCallback(arg0 int32, arg1 *jni.Object) error

RegisterOnBackInvokedCallback calls android.window.OnBackInvokedDispatcher.registerOnBackInvokedCallback.

func (*OnBackInvokedDispatcher) UnregisterOnBackInvokedCallback

func (m *OnBackInvokedDispatcher) UnregisterOnBackInvokedCallback(arg0 *jni.Object) error

UnregisterOnBackInvokedCallback calls android.window.OnBackInvokedDispatcher.unregisterOnBackInvokedCallback.

type SplashScreen

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

SplashScreen wraps android.window.SplashScreen.

func (*SplashScreen) ClearOnExitAnimationListener

func (m *SplashScreen) ClearOnExitAnimationListener() error

ClearOnExitAnimationListener calls android.window.SplashScreen.clearOnExitAnimationListener.

func (*SplashScreen) SetOnExitAnimationListener

func (m *SplashScreen) SetOnExitAnimationListener(arg0 *jni.Object) error

SetOnExitAnimationListener calls android.window.SplashScreen.setOnExitAnimationListener.

func (*SplashScreen) SetSplashScreenTheme

func (m *SplashScreen) SetSplashScreenTheme(arg0 int32) error

SetSplashScreenTheme calls android.window.SplashScreen.setSplashScreenTheme.

type SplashScreenOnExitAnimationListener

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

SplashScreenOnExitAnimationListener wraps android.window.SplashScreen$OnExitAnimationListener.

func (*SplashScreenOnExitAnimationListener) OnSplashScreenExit

func (m *SplashScreenOnExitAnimationListener) OnSplashScreenExit(arg0 *jni.Object) error

OnSplashScreenExit calls android.window.SplashScreen$OnExitAnimationListener.onSplashScreenExit.

type SplashScreenView

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

SplashScreenView wraps android.window.SplashScreenView.

func (*SplashScreenView) GetIconAnimationDuration

func (m *SplashScreenView) GetIconAnimationDuration() (*jni.Object, error)

GetIconAnimationDuration calls android.window.SplashScreenView.getIconAnimationDuration.

func (*SplashScreenView) GetIconAnimationStart

func (m *SplashScreenView) GetIconAnimationStart() (*jni.Object, error)

GetIconAnimationStart calls android.window.SplashScreenView.getIconAnimationStart.

func (*SplashScreenView) GetIconView

func (m *SplashScreenView) GetIconView() (*jni.Object, error)

GetIconView calls android.window.SplashScreenView.getIconView.

func (*SplashScreenView) Remove

func (m *SplashScreenView) Remove() error

Remove calls android.window.SplashScreenView.remove.

func (*SplashScreenView) SetAlpha

func (m *SplashScreenView) SetAlpha(arg0 float32) error

SetAlpha calls android.window.SplashScreenView.setAlpha.

type SurfaceSyncGroup

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

SurfaceSyncGroup wraps android.window.SurfaceSyncGroup.

func NewSurfaceSyncGroup

func NewSurfaceSyncGroup(vm *jni.VM, arg0 string) (*SurfaceSyncGroup, error)

NewSurfaceSyncGroup creates a new android.window.SurfaceSyncGroup instance.

func (*SurfaceSyncGroup) Add2

func (m *SurfaceSyncGroup) Add2(arg0 *jni.Object, arg1 *jni.Object) (bool, error)

Add2 calls android.window.SurfaceSyncGroup.add.

func (*SurfaceSyncGroup) Add2_1

func (m *SurfaceSyncGroup) Add2_1(arg0 *jni.Object, arg1 *jni.Object) (bool, error)

Add2_1 calls android.window.SurfaceSyncGroup.add.

func (*SurfaceSyncGroup) AddTransaction

func (m *SurfaceSyncGroup) AddTransaction(arg0 *jni.Object) error

AddTransaction calls android.window.SurfaceSyncGroup.addTransaction.

func (*SurfaceSyncGroup) MarkSyncReady

func (m *SurfaceSyncGroup) MarkSyncReady() error

MarkSyncReady calls android.window.SurfaceSyncGroup.markSyncReady.

type SystemOnBackInvokedCallbacks

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

SystemOnBackInvokedCallbacks wraps android.window.SystemOnBackInvokedCallbacks.

func (*SystemOnBackInvokedCallbacks) FinishAndRemoveTaskCallback

func (m *SystemOnBackInvokedCallbacks) FinishAndRemoveTaskCallback(arg0 *jni.Object) (*jni.Object, error)

FinishAndRemoveTaskCallback calls android.window.SystemOnBackInvokedCallbacks.finishAndRemoveTaskCallback.

func (*SystemOnBackInvokedCallbacks) MoveTaskToBackCallback

func (m *SystemOnBackInvokedCallbacks) MoveTaskToBackCallback(arg0 *jni.Object) (*jni.Object, error)

MoveTaskToBackCallback calls android.window.SystemOnBackInvokedCallbacks.moveTaskToBackCallback.

type TrustedPresentationThresholds

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

TrustedPresentationThresholds wraps android.window.TrustedPresentationThresholds.

func NewTrustedPresentationThresholds

func NewTrustedPresentationThresholds(vm *jni.VM, arg0 float32, arg1 float32, arg2 int32) (*TrustedPresentationThresholds, error)

NewTrustedPresentationThresholds creates a new android.window.TrustedPresentationThresholds instance.

func (*TrustedPresentationThresholds) DescribeContents

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

DescribeContents calls android.window.TrustedPresentationThresholds.describeContents.

func (*TrustedPresentationThresholds) Equals

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

Equals calls android.window.TrustedPresentationThresholds.equals.

func (*TrustedPresentationThresholds) GetMinAlpha

func (m *TrustedPresentationThresholds) GetMinAlpha() (float32, error)

GetMinAlpha calls android.window.TrustedPresentationThresholds.getMinAlpha.

func (*TrustedPresentationThresholds) GetMinFractionRendered

func (m *TrustedPresentationThresholds) GetMinFractionRendered() (float32, error)

GetMinFractionRendered calls android.window.TrustedPresentationThresholds.getMinFractionRendered.

func (*TrustedPresentationThresholds) GetStabilityRequirementMillis

func (m *TrustedPresentationThresholds) GetStabilityRequirementMillis() (int32, error)

GetStabilityRequirementMillis calls android.window.TrustedPresentationThresholds.getStabilityRequirementMillis.

func (*TrustedPresentationThresholds) HashCode

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

HashCode calls android.window.TrustedPresentationThresholds.hashCode.

func (*TrustedPresentationThresholds) ToString

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

ToString calls android.window.TrustedPresentationThresholds.toString.

func (*TrustedPresentationThresholds) WriteToParcel

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

WriteToParcel calls android.window.TrustedPresentationThresholds.writeToParcel.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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