Partager via


WallpaperManager.DesiredMinimumWidth Property

Definition

Returns the desired minimum width for the wallpaper.

public virtual int DesiredMinimumWidth { [Android.Runtime.Register("getDesiredMinimumWidth", "()I", "GetGetDesiredMinimumWidthHandler")] get; }
[<get: Android.Runtime.Register("getDesiredMinimumWidth", "()I", "GetGetDesiredMinimumWidthHandler")>]
member this.DesiredMinimumWidth : int

Property Value

The desired minimum width for the wallpaper. This value should be honored by applications that set the wallpaper but it is not mandatory.

Attributes

Remarks

Returns the desired minimum width for the wallpaper. Callers of #setBitmap(android.graphics.Bitmap) or #setStream(java.io.InputStream) should check this value beforehand to make sure the supplied wallpaper respects the desired minimum width.

If the returned value is <= 0, the caller should use the width of the default display instead.

Java documentation for android.app.WallpaperManager.getDesiredMinimumWidth().

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