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

Link copied to clipboard
object Default : GcTrigger

Default implementation of GcTrigger.

Functions

Link copied to clipboard
abstract fun runGc()

Attempts to run garbage collection.

Inheritors

Link copied to clipboard