WallpaperManager.PeekDrawable 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
PeekDrawable() |
<strong> Important Note: </strong><ul><li>Up to version S, this method requires the |
PeekDrawable(WallpaperManagerFlags) |
<strong> Important Note: </strong><ul><li>Up to version S, this method requires the |
PeekDrawable()
<strong> Important Note: </strong><ul><li>Up to version S, this method requires the android.Manifest.permission#READ_EXTERNAL_STORAGE
permission.
[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
返回
所请求壁纸的可绘制对象。
- 属性
注解
<strong> Important Note: </strong><ul><li>Up to version S, this method requires the android.Manifest.permission#READ_EXTERNAL_STORAGE
permission.</li li>><Starting in T, directly access the wallpaper is not possible anymore, instead the default system wallpaper is returned (某些版本的 T 可能抛出)。<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> Important Note: </strong><ul><li>Up to version S, this method requires the android.Manifest.permission#READ_EXTERNAL_STORAGE
permission.
[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。
返回
所请求壁纸的可绘制对象。
- 属性
注解
<strong> Important Note: </strong><ul><li>Up to version S, this method requires the android.Manifest.permission#READ_EXTERNAL_STORAGE
permission.</li li>><Starting in T, directly access the wallpaper is not possible anymore, instead the default system wallpaper is returned (某些版本的 T 可能抛出)。<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 属性许可证中所述的术语使用。