Language

WallpaperManager.SuggestDesiredDimensions(Int32, Int32) Method

Definition

For use only by the current home application, to specify the size of wallpaper it would like to use.

[Android.Runtime.Register("suggestDesiredDimensions", "(II)V", "GetSuggestDesiredDimensions_IIHandler")]
public virtual void SuggestDesiredDimensions(int minimumWidth, int minimumHeight);
[<Android.Runtime.Register("suggestDesiredDimensions", "(II)V", "GetSuggestDesiredDimensions_IIHandler")>]
abstract member SuggestDesiredDimensions : int * int -> unit
override this.SuggestDesiredDimensions : int * int -> unit

Parameters

minimumWidth
Int32

int: Desired minimum width

minimumHeight
Int32

int: Desired minimum height

Attributes

Remarks

For use only by the current home application, to specify the size of wallpaper it would like to use. This allows such applications to have a virtual wallpaper that is larger than the physical screen, matching the size of their workspace. Calling this method from apps other than the active home app is not guaranteed to work properly. Other apps that supply wallpaper imagery should use getDesiredMinimumWidth() and getDesiredMinimumHeight() and construct a wallpaper that matches those dimensions. This method requires the caller to hold the permission Manifest.permission.SET_WALLPAPER_HINTS.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

Android reference for android.app.WallpaperManager.suggestDesiredDimensions.

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