//leakcanary-repo/leakcanary/ConditionalInterceptor
ConditionalInterceptor¶
[androidJvm]\ class ConditionalInterceptor(delegate: HeapAnalysisInterceptor, evaluateCondition: (HeapAnalysisJob) -> Boolean) : HeapAnalysisInterceptor
An interceptor that runs only when evaluateCondition returns true.
Constructors¶
ConditionalInterceptor | [androidJvm] constructor(delegate: HeapAnalysisInterceptor, evaluateCondition: (HeapAnalysisJob) -> Boolean) |
Functions¶
Name | Summary |
---|---|
intercept | [androidJvm] open override fun intercept(chain: HeapAnalysisInterceptor.Chain): HeapAnalysisJob.Result |