//leakcanary-repo/shark/ObjectReporter/whenInstanceOf
whenInstanceOf¶
[jvm]\ fun whenInstanceOf(expectedClass: KClass<out Any>, block: ObjectReporter.(HeapObject.HeapInstance) -> Unit)
Runs block if ObjectReporter.heapObject is an instance of expectedClass.
[jvm]\ fun whenInstanceOf(expectedClassName: String, block: ObjectReporter.(HeapObject.HeapInstance) -> Unit)
Runs block if ObjectReporter.heapObject is an instance of expectedClassName.