wallpaper

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

Index

Constants

View Source
const (
	ServiceInterface = consts.ServiceInterface
	ServiceMetaData  = consts.ServiceMetaData
)

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 Service

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

Service wraps android.service.wallpaper.WallpaperService.

func (*Service) OnBind

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

OnBind calls android.service.wallpaper.WallpaperService.onBind.

func (*Service) OnCreate

func (m *Service) OnCreate() error

OnCreate calls android.service.wallpaper.WallpaperService.onCreate.

func (*Service) OnCreateEngine0

func (m *Service) OnCreateEngine0() (*jni.Object, error)

OnCreateEngine0 calls android.service.wallpaper.WallpaperService.onCreateEngine.

func (*Service) OnCreateEngine1_1

func (m *Service) OnCreateEngine1_1(arg0 *jni.Object) (*jni.Object, error)

OnCreateEngine1_1 calls android.service.wallpaper.WallpaperService.onCreateEngine.

func (*Service) OnDestroy

func (m *Service) OnDestroy() error

OnDestroy calls android.service.wallpaper.WallpaperService.onDestroy.

type ServiceEngine

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

ServiceEngine wraps android.service.wallpaper.WallpaperService$Engine.

func (*ServiceEngine) GetDesiredMinimumHeight

func (m *ServiceEngine) GetDesiredMinimumHeight() (int32, error)

GetDesiredMinimumHeight calls android.service.wallpaper.WallpaperService$Engine.getDesiredMinimumHeight.

func (*ServiceEngine) GetDesiredMinimumWidth

func (m *ServiceEngine) GetDesiredMinimumWidth() (int32, error)

GetDesiredMinimumWidth calls android.service.wallpaper.WallpaperService$Engine.getDesiredMinimumWidth.

func (*ServiceEngine) GetDisplayContext

func (m *ServiceEngine) GetDisplayContext() (*jni.Object, error)

GetDisplayContext calls android.service.wallpaper.WallpaperService$Engine.getDisplayContext.

func (*ServiceEngine) GetSurfaceHolder

func (m *ServiceEngine) GetSurfaceHolder() (*jni.Object, error)

GetSurfaceHolder calls android.service.wallpaper.WallpaperService$Engine.getSurfaceHolder.

func (*ServiceEngine) GetWallpaperFlags

func (m *ServiceEngine) GetWallpaperFlags() (int32, error)

GetWallpaperFlags calls android.service.wallpaper.WallpaperService$Engine.getWallpaperFlags.

func (*ServiceEngine) IsPreview

func (m *ServiceEngine) IsPreview() (bool, error)

IsPreview calls android.service.wallpaper.WallpaperService$Engine.isPreview.

func (*ServiceEngine) IsVisible

func (m *ServiceEngine) IsVisible() (bool, error)

IsVisible calls android.service.wallpaper.WallpaperService$Engine.isVisible.

func (*ServiceEngine) NotifyColorsChanged

func (m *ServiceEngine) NotifyColorsChanged() error

NotifyColorsChanged calls android.service.wallpaper.WallpaperService$Engine.notifyColorsChanged.

func (*ServiceEngine) OnApplyWallpaper

func (m *ServiceEngine) OnApplyWallpaper(arg0 int32) (*jni.Object, error)

OnApplyWallpaper calls android.service.wallpaper.WallpaperService$Engine.onApplyWallpaper.

func (*ServiceEngine) OnApplyWindowInsets

func (m *ServiceEngine) OnApplyWindowInsets(arg0 *jni.Object) error

OnApplyWindowInsets calls android.service.wallpaper.WallpaperService$Engine.onApplyWindowInsets.

func (*ServiceEngine) OnCommand

func (m *ServiceEngine) OnCommand(
	arg0 string,
	arg1 int32,
	arg2 int32,
	arg3 int32,
	arg4 *jni.Object,
	arg5 bool,
) (*jni.Object, error)

OnCommand calls android.service.wallpaper.WallpaperService$Engine.onCommand.

func (*ServiceEngine) OnComputeColors

func (m *ServiceEngine) OnComputeColors() (*jni.Object, error)

OnComputeColors calls android.service.wallpaper.WallpaperService$Engine.onComputeColors.

func (*ServiceEngine) OnCreate

func (m *ServiceEngine) OnCreate(arg0 *jni.Object) error

OnCreate calls android.service.wallpaper.WallpaperService$Engine.onCreate.

func (*ServiceEngine) OnDesiredSizeChanged

func (m *ServiceEngine) OnDesiredSizeChanged(arg0 int32, arg1 int32) error

OnDesiredSizeChanged calls android.service.wallpaper.WallpaperService$Engine.onDesiredSizeChanged.

func (*ServiceEngine) OnDestroy

func (m *ServiceEngine) OnDestroy() error

OnDestroy calls android.service.wallpaper.WallpaperService$Engine.onDestroy.

func (*ServiceEngine) OnOffsetsChanged

func (m *ServiceEngine) OnOffsetsChanged(
	arg0 float32,
	arg1 float32,
	arg2 float32,
	arg3 float32,
	arg4 int32,
	arg5 int32,
) error

OnOffsetsChanged calls android.service.wallpaper.WallpaperService$Engine.onOffsetsChanged.

func (*ServiceEngine) OnSurfaceChanged

func (m *ServiceEngine) OnSurfaceChanged(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
	arg3 int32,
) error

OnSurfaceChanged calls android.service.wallpaper.WallpaperService$Engine.onSurfaceChanged.

func (*ServiceEngine) OnSurfaceCreated

func (m *ServiceEngine) OnSurfaceCreated(arg0 *jni.Object) error

OnSurfaceCreated calls android.service.wallpaper.WallpaperService$Engine.onSurfaceCreated.

func (*ServiceEngine) OnSurfaceDestroyed

func (m *ServiceEngine) OnSurfaceDestroyed(arg0 *jni.Object) error

OnSurfaceDestroyed calls android.service.wallpaper.WallpaperService$Engine.onSurfaceDestroyed.

func (*ServiceEngine) OnSurfaceRedrawNeeded

func (m *ServiceEngine) OnSurfaceRedrawNeeded(arg0 *jni.Object) error

OnSurfaceRedrawNeeded calls android.service.wallpaper.WallpaperService$Engine.onSurfaceRedrawNeeded.

func (*ServiceEngine) OnTouchEvent

func (m *ServiceEngine) OnTouchEvent(arg0 *jni.Object) error

OnTouchEvent calls android.service.wallpaper.WallpaperService$Engine.onTouchEvent.

func (*ServiceEngine) OnVisibilityChanged

func (m *ServiceEngine) OnVisibilityChanged(arg0 bool) error

OnVisibilityChanged calls android.service.wallpaper.WallpaperService$Engine.onVisibilityChanged.

func (*ServiceEngine) OnWallpaperFlagsChanged

func (m *ServiceEngine) OnWallpaperFlagsChanged(arg0 int32) error

OnWallpaperFlagsChanged calls android.service.wallpaper.WallpaperService$Engine.onWallpaperFlagsChanged.

func (*ServiceEngine) OnZoomChanged

func (m *ServiceEngine) OnZoomChanged(arg0 float32) error

OnZoomChanged calls android.service.wallpaper.WallpaperService$Engine.onZoomChanged.

func (*ServiceEngine) SetOffsetNotificationsEnabled

func (m *ServiceEngine) SetOffsetNotificationsEnabled(arg0 bool) error

SetOffsetNotificationsEnabled calls android.service.wallpaper.WallpaperService$Engine.setOffsetNotificationsEnabled.

func (*ServiceEngine) SetTouchEventsEnabled

func (m *ServiceEngine) SetTouchEventsEnabled(arg0 bool) error

SetTouchEventsEnabled calls android.service.wallpaper.WallpaperService$Engine.setTouchEventsEnabled.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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