WallpaperService.Engine.OnVisibilityChanged(Boolean) Method

Definition

Called to inform you of the wallpaper becoming visible or hidden.

[Android.Runtime.Register("onVisibilityChanged", "(Z)V", "GetOnVisibilityChanged_ZHandler")]
public virtual void OnVisibilityChanged (bool visible);
[<Android.Runtime.Register("onVisibilityChanged", "(Z)V", "GetOnVisibilityChanged_ZHandler")>]
abstract member OnVisibilityChanged : bool -> unit
override this.OnVisibilityChanged : bool -> unit

Parameters

visible
Boolean
Attributes

Remarks

Called to inform you of the wallpaper becoming visible or hidden. <em>It is very important that a wallpaper only use CPU while it is visible.</em>.

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