leakcanary-android-core / leakcanary / OnHeapAnalyzedListener

OnHeapAnalyzedListener

interface OnHeapAnalyzedListener

Functions

NameSummary
onHeapAnalyzedabstract fun onHeapAnalyzed(heapAnalysis: HeapAnalysis): Unit

Companion Object Functions

NameSummary
invokeoperator fun invoke(block: (HeapAnalysis) -> Unit): OnHeapAnalyzedListener
Utility function to create a OnHeapAnalyzedListener from the passed in [block](invoke.md#leakcanary.OnHeapAnalyzedListener.Companion$invoke(kotlin.Function1((shark.HeapAnalysis, kotlin.Unit)))/block) lambda instead of using the anonymous object : OnHeapAnalyzedListener syntax.

Inheritors

NameSummary
DefaultOnHeapAnalyzedListenerclass DefaultOnHeapAnalyzedListener : OnHeapAnalyzedListener
Default OnHeapAnalyzedListener implementation, which will store the analysis to disk and show a notification summarizing the result.