WallpaperManager.SetDisplayPadding(Rect) Method

Definition

Specify extra padding that the wallpaper should have outside of the display.

[Android.Runtime.Register("setDisplayPadding", "(Landroid/graphics/Rect;)V", "GetSetDisplayPadding_Landroid_graphics_Rect_Handler", ApiSince=28)]
[Android.Runtime.RequiresPermission("android.permission.SET_WALLPAPER_HINTS")]
public virtual void SetDisplayPadding (Android.Graphics.Rect? padding);
[<Android.Runtime.Register("setDisplayPadding", "(Landroid/graphics/Rect;)V", "GetSetDisplayPadding_Landroid_graphics_Rect_Handler", ApiSince=28)>]
[<Android.Runtime.RequiresPermission("android.permission.SET_WALLPAPER_HINTS")>]
abstract member SetDisplayPadding : Android.Graphics.Rect -> unit
override this.SetDisplayPadding : Android.Graphics.Rect -> unit

Parameters

padding
Rect

The number of pixels the wallpaper should extend beyond the display, on its left, top, right, and bottom sides.

Attributes

Remarks

Specify extra padding that the wallpaper should have outside of the display. That is, the given padding supplies additional pixels the wallpaper should extend outside of the display itself.

This method requires the caller to hold the permission android.Manifest.permission#SET_WALLPAPER_HINTS.

Java documentation for android.app.WallpaperManager.setDisplayPadding(android.graphics.Rect).

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