共用方式為


WallpaperManager.PeekDrawable 方法

定義

多載

PeekDrawable()

<strong> 重要注意事項: </strong><ul><li>最高版本 S,此方法需要 android.Manifest.permission#READ_EXTERNAL_STORAGE 許可權。

PeekDrawable(WallpaperManagerFlags)

<strong> 重要注意事項: </strong><ul><li>最高版本 S,此方法需要 android.Manifest.permission#READ_EXTERNAL_STORAGE 許可權。

PeekDrawable()

<strong> 重要注意事項: </strong><ul><li>最高版本 S,此方法需要 android.Manifest.permission#READ_EXTERNAL_STORAGE 許可權。

[Android.Runtime.Register("peekDrawable", "()Landroid/graphics/drawable/Drawable;", "GetPeekDrawableHandler")]
public virtual Android.Graphics.Drawables.Drawable? PeekDrawable ();
[<Android.Runtime.Register("peekDrawable", "()Landroid/graphics/drawable/Drawable;", "GetPeekDrawableHandler")>]
abstract member PeekDrawable : unit -> Android.Graphics.Drawables.Drawable
override this.PeekDrawable : unit -> Android.Graphics.Drawables.Drawable

傳回

所要求桌布的 Drawable 物件。

屬性

備註

<strong> 重要注意事項:</strong><ul><li>最高版本 S,此方法需要android.Manifest.permission#READ_EXTERNAL_STORAGE許可權。</li li>><Starting in T, directly access the wallpaper is not anypossible, instead the default system wallpaper is returned - some versions of T may throw a.<SecurityException/li li><>From version U, this method not be used and will always throw a

android.app.WallpaperManager.peekDrawable()Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

PeekDrawable(WallpaperManagerFlags)

<strong> 重要注意事項: </strong><ul><li>最高版本 S,此方法需要 android.Manifest.permission#READ_EXTERNAL_STORAGE 許可權。

[Android.Runtime.Register("peekDrawable", "(I)Landroid/graphics/drawable/Drawable;", "GetPeekDrawable_IHandler", ApiSince=34)]
public virtual Android.Graphics.Drawables.Drawable? PeekDrawable (Android.App.WallpaperManagerFlags which);
[<Android.Runtime.Register("peekDrawable", "(I)Landroid/graphics/drawable/Drawable;", "GetPeekDrawable_IHandler", ApiSince=34)>]
abstract member PeekDrawable : Android.App.WallpaperManagerFlags -> Android.Graphics.Drawables.Drawable
override this.PeekDrawable : Android.App.WallpaperManagerFlags -> Android.Graphics.Drawables.Drawable

參數

which
WallpaperManagerFlags

FLAG_*有效桌布類型的標識碼。 如果要求無效的桌布,則會擲回 IllegalArgumentException。

傳回

所要求桌布的 Drawable 物件。

屬性

備註

<strong> 重要注意事項:</strong><ul><li>最高版本 S,此方法需要android.Manifest.permission#READ_EXTERNAL_STORAGE許可權。</li li>><Starting in T, directly access the wallpaper is not anypossible, instead the default system wallpaper is returned - some versions of T may throw a.<SecurityException/li li><>From version U, this method not be used and will always throw a

android.app.WallpaperManager.peekDrawable(int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於