WallpaperService.Engine.SetOffsetNotificationsEnabled(Boolean) Method

Definition

Control whether this wallpaper will receive notifications when the wallpaper has been scrolled.

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

Parameters

enabled
Boolean

whether the wallpaper wants to receive offset notifications

Attributes

Remarks

Control whether this wallpaper will receive notifications when the wallpaper has been scrolled. By default, wallpapers will receive notifications, although the default static image wallpapers do not. It is a performance optimization to set this to false.

Java documentation for android.service.wallpaper.WallpaperService.Engine.setOffsetNotificationsEnabled(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