GcTrigger

fun interface GcTrigger

GcTrigger is used to try triggering garbage collection and enqueuing KeyedWeakReference into the associated java.lang.ref.ReferenceQueue. The default implementation Default comes from AOSP.

Types

Default
Link copied to clipboard
object Default : GcTrigger

Default implementation of GcTrigger.

Functions

runGc
Link copied to clipboard
abstract fun runGc()

Attempts to run garbage collection.

Inheritors

Default
Link copied to clipboard