Share via


WallpaperService.Engine.OnTouchEvent(MotionEvent) Method

Definition

Called as the user performs touch-screen interaction with the window that is currently showing this wallpaper.

[Android.Runtime.Register("onTouchEvent", "(Landroid/view/MotionEvent;)V", "GetOnTouchEvent_Landroid_view_MotionEvent_Handler")]
public virtual void OnTouchEvent (Android.Views.MotionEvent? e);
[<Android.Runtime.Register("onTouchEvent", "(Landroid/view/MotionEvent;)V", "GetOnTouchEvent_Landroid_view_MotionEvent_Handler")>]
abstract member OnTouchEvent : Android.Views.MotionEvent -> unit
override this.OnTouchEvent : Android.Views.MotionEvent -> unit

Parameters

Attributes

Remarks

Called as the user performs touch-screen interaction with the window that is currently showing this wallpaper. Note that the events you receive here are driven by the actual application the user is interacting with, so if it is slow you will get fewer move events.

Java documentation for android.service.wallpaper.WallpaperService.Engine.onTouchEvent(android.view.MotionEvent).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to