WallpaperManager.GetCropAndSetWallpaperIntent(Uri) メソッド

定義

特定のイメージをトリミングし、デバイスの壁紙を設定するアクティビティを起動する意図を取得します。

[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

パラメーター

imageUri
Uri

意図で設定されるイメージ URI。 はコンテンツ URI である必要があり、プロバイダーはその型を "image/*" に解決する必要があります

戻り値

属性

例外

URI がコンテンツ URI ではない場合、またはその MIME の種類が "image/*" でない場合

注釈

特定のイメージをトリミングし、デバイスの壁紙を設定するアクティビティを起動する意図を取得します。 トリミングの壁紙をサポートする既定の HOME アクティビティがある場合は、既定として推奨されます。 意図を直接作成する代わりに、このメソッドを #ACTION_CROP_AND_SET_WALLPAPER 使用します。

の Java ドキュメント android.app.WallpaperManager.getCropAndSetWallpaperIntent(android.net.Uri)

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象