Share via


WallpaperService.Engine.SetTouchEventsEnabled(Boolean) Method

Definition

Control whether this wallpaper will receive raw touch events from the window manager as the user interacts with the window that is currently displaying the wallpaper.

[Android.Runtime.Register("setTouchEventsEnabled", "(Z)V", "GetSetTouchEventsEnabled_ZHandler")]
public virtual void SetTouchEventsEnabled (bool enabled);
[<Android.Runtime.Register("setTouchEventsEnabled", "(Z)V", "GetSetTouchEventsEnabled_ZHandler")>]
abstract member SetTouchEventsEnabled : bool -> unit
override this.SetTouchEventsEnabled : bool -> unit

Parameters

enabled
Boolean
Attributes

Remarks

Control whether this wallpaper will receive raw touch events from the window manager as the user interacts with the window that is currently displaying the wallpaper. By default they are turned off. If enabled, the events will be received in #onTouchEvent(MotionEvent).

Java documentation for android.service.wallpaper.WallpaperService.Engine.setTouchEventsEnabled(boolean).

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