Udostępnij za pośrednictwem


WindowManagerLayoutParams.SetWallpaperTouchEventsEnabled(Boolean) Method

Definition

Set whether sending touch events to the system wallpaper (which can be provided by a third-party application) should be enabled for windows that show wallpaper in background.

[Android.Runtime.Register("setWallpaperTouchEventsEnabled", "(Z)V", "GetSetWallpaperTouchEventsEnabled_ZHandler", ApiSince=34)]
public virtual void SetWallpaperTouchEventsEnabled (bool enable);
[<Android.Runtime.Register("setWallpaperTouchEventsEnabled", "(Z)V", "GetSetWallpaperTouchEventsEnabled_ZHandler", ApiSince=34)>]
abstract member SetWallpaperTouchEventsEnabled : bool -> unit
override this.SetWallpaperTouchEventsEnabled : bool -> unit

Parameters

enable
Boolean

whether to enable sending touch events to the system wallpaper.

Attributes

Remarks

Set whether sending touch events to the system wallpaper (which can be provided by a third-party application) should be enabled for windows that show wallpaper in background. By default, this is set to true. Check android.view.WindowManager.LayoutParams#FLAG_SHOW_WALLPAPER for more information on showing system wallpaper behind the window.

Java documentation for android.view.WindowManager.LayoutParams.setWallpaperTouchEventsEnabled(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