语言

WallpaperManager.ForgetLoadedWallpaper 方法

定义

删除对上次加载的壁纸的所有内部引用。

[Android.Runtime.Register("forgetLoadedWallpaper", "()V", "GetForgetLoadedWallpaperHandler")]
public virtual void ForgetLoadedWallpaper();
[<Android.Runtime.Register("forgetLoadedWallpaper", "()V", "GetForgetLoadedWallpaperHandler")>]
abstract member ForgetLoadedWallpaper : unit -> unit
override this.ForgetLoadedWallpaper : unit -> unit
特性

注解

删除对上次加载的壁纸的所有内部引用。 对于希望减少内存使用量的应用,当它们只需要暂时拥有壁纸时,这些应用非常有用。 调用后,对壁纸的下一个请求将需要再次从磁盘重新加载。

Android 参考。android.app.WallpaperManager.forgetLoadedWallpaper

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于