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