Skip to content
🤔 Documentation issue? Report it

//leakcanary-repo/leakcanary/JobContext

JobContext

[androidJvm]\ class JobContext(val starter: Class<*>? = null)

In memory store that can be used to store objects in a given HeapAnalysisJob instance. This is a simple MutableMap of String to Any, but with unsafe generics access.

By convention, starter should be the class that triggered the start of the job.

Constructors

JobContext [androidJvm]
constructor(starter: KClass<>)constructor(starter: Class<>? = null)

Functions

Name Summary
contains [androidJvm]
operator fun contains(key: String): Boolean
get [androidJvm]
operator fun <T> get(key: String): T?
getOrPut [androidJvm]
fun <T> getOrPut(key: String, defaultValue: () -> T): T
minusAssign [androidJvm]
operator fun minusAssign(key: String)
set [androidJvm]
operator fun <T> set(key: String, value: T)

Properties

Name Summary
starter [androidJvm]
val starter: Class<*>? = null