Skip to content
🤔 Documentation issue? Report it

//leakcanary/shark/ObjectInspector

ObjectInspector

fun interface ObjectInspector

Provides LeakCanary with insights about objects (classes, instances and arrays) found in the heap. inspect will be called for each object that LeakCanary wants to know more about. The implementation can then use the provided ObjectReporter to provide insights for that object.

This is a functional interface with which you can create a ObjectInspector from a lambda.

Types

Name Summary
Companion object Companion

Functions

Name Summary
inspect abstract fun inspect(reporter: ObjectReporter)

Inheritors

Name
AppSingletonInspector
ObjectInspectors
AndroidObjectInspectors