語言

MemoryFile.IsPurgingAllowed 屬性

定義

記憶體檔案清除有啟用嗎?

public virtual bool IsPurgingAllowed { [Android.Runtime.Register("isPurgingAllowed", "()Z", "GetIsPurgingAllowedHandler")] get; }
[<get: Android.Runtime.Register("isPurgingAllowed", "()Z", "GetIsPurgingAllowedHandler")>]
member this.IsPurgingAllowed : bool

屬性值

如果檔案可以被清除,那就成立。

屬性

備註

記憶體檔案清除有啟用嗎?

此會員已被棄用。 可清除劑通常被認為脆弱且難以安全使用。 建議應用程式改 android.content.ComponentCallbacks2#onTrimMemory(int) 用來回應記憶體事件,並適當地釋放共享記憶體區域。

Java 文件 android.os.MemoryFile.isPurgingAllowed()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於