WallpaperManager.GetCropAndSetWallpaperIntent(Uri) Method

Definition

Gets an Intent that will launch an activity that crops the given image and sets the device's wallpaper.

[Android.Runtime.Register("getCropAndSetWallpaperIntent", "(Landroid/net/Uri;)Landroid/content/Intent;", "GetGetCropAndSetWallpaperIntent_Landroid_net_Uri_Handler")]
public virtual Android.Content.Intent? GetCropAndSetWallpaperIntent (Android.Net.Uri? imageUri);
[<Android.Runtime.Register("getCropAndSetWallpaperIntent", "(Landroid/net/Uri;)Landroid/content/Intent;", "GetGetCropAndSetWallpaperIntent_Landroid_net_Uri_Handler")>]
abstract member GetCropAndSetWallpaperIntent : Android.Net.Uri -> Android.Content.Intent
override this.GetCropAndSetWallpaperIntent : Android.Net.Uri -> Android.Content.Intent

Parameters

imageUri
Uri

The image URI that will be set in the intent. The must be a content URI and its provider must resolve its type to "image/*"

Returns

Attributes

Exceptions

if the URI is not a content URI or its MIME type is not "image/*"

Remarks

Gets an Intent that will launch an activity that crops the given image and sets the device's wallpaper. If there is a default HOME activity that supports cropping wallpapers, it will be preferred as the default. Use this method instead of directly creating a #ACTION_CROP_AND_SET_WALLPAPER intent.

Java documentation for android.app.WallpaperManager.getCropAndSetWallpaperIntent(android.net.Uri).

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