다음을 통해 공유


MemoryFile.IsPurgingAllowed Property

Definition

Is memory file purging enabled?

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

Property Value

true if the file may be purged.

Attributes

Remarks

Is memory file purging enabled?

This member is deprecated. Purgable is considered generally fragile and hard to use safely. Applications are recommend to instead use android.content.ComponentCallbacks2#onTrimMemory(int) to react to memory events and release shared memory regions as appropriate.

Java documentation for android.os.MemoryFile.isPurgingAllowed().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to