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

Desired minimum width

minimumHeight
Int32

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.

<p class="note">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 android.Manifest.permission#SET_WALLPAPER_HINTS.

Java documentation for android.app.WallpaperManager.suggestDesiredDimensions(int, int).

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