Android.App.WallpaperManager.GetCropAndSetWallpaperIntent Method
Gets an Intent that will launch an activity that crops the given image and sets the device's wallpaper.

Syntax

[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)

Parameters

imageUri
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

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif 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 WallpaperManager.ActionCropAndSetWallpaper intent.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5