Documentation
¶
Overview ¶
Package wallpaper provides Go bindings for android.service.wallpaper.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type Service
- type ServiceEngine
- func (m *ServiceEngine) GetDesiredMinimumHeight() (int32, error)
- func (m *ServiceEngine) GetDesiredMinimumWidth() (int32, error)
- func (m *ServiceEngine) GetDisplayContext() (*jni.Object, error)
- func (m *ServiceEngine) GetSurfaceHolder() (*jni.Object, error)
- func (m *ServiceEngine) GetWallpaperFlags() (int32, error)
- func (m *ServiceEngine) IsPreview() (bool, error)
- func (m *ServiceEngine) IsVisible() (bool, error)
- func (m *ServiceEngine) NotifyColorsChanged() error
- func (m *ServiceEngine) OnApplyWallpaper(arg0 int32) (*jni.Object, error)
- func (m *ServiceEngine) OnApplyWindowInsets(arg0 *jni.Object) error
- func (m *ServiceEngine) OnCommand(arg0 string, arg1 int32, arg2 int32, arg3 int32, arg4 *jni.Object, arg5 bool) (*jni.Object, error)
- func (m *ServiceEngine) OnComputeColors() (*jni.Object, error)
- func (m *ServiceEngine) OnCreate(arg0 *jni.Object) error
- func (m *ServiceEngine) OnDesiredSizeChanged(arg0 int32, arg1 int32) error
- func (m *ServiceEngine) OnDestroy() error
- func (m *ServiceEngine) OnOffsetsChanged(arg0 float32, arg1 float32, arg2 float32, arg3 float32, arg4 int32, arg5 int32) error
- func (m *ServiceEngine) OnSurfaceChanged(arg0 *jni.Object, arg1 int32, arg2 int32, arg3 int32) error
- func (m *ServiceEngine) OnSurfaceCreated(arg0 *jni.Object) error
- func (m *ServiceEngine) OnSurfaceDestroyed(arg0 *jni.Object) error
- func (m *ServiceEngine) OnSurfaceRedrawNeeded(arg0 *jni.Object) error
- func (m *ServiceEngine) OnTouchEvent(arg0 *jni.Object) error
- func (m *ServiceEngine) OnVisibilityChanged(arg0 bool) error
- func (m *ServiceEngine) OnWallpaperFlagsChanged(arg0 int32) error
- func (m *ServiceEngine) OnZoomChanged(arg0 float32) error
- func (m *ServiceEngine) SetOffsetNotificationsEnabled(arg0 bool) error
- func (m *ServiceEngine) SetTouchEventsEnabled(arg0 bool) error
Constants ¶
const ( ServiceInterface = consts.ServiceInterface ServiceMetaData = consts.ServiceMetaData )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
Service wraps android.service.wallpaper.WallpaperService.
func (*Service) OnCreateEngine0 ¶
OnCreateEngine0 calls android.service.wallpaper.WallpaperService.onCreateEngine.
func (*Service) OnCreateEngine1_1 ¶
OnCreateEngine1_1 calls android.service.wallpaper.WallpaperService.onCreateEngine.
type ServiceEngine ¶
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.