Skip to content
🤔 Documentation issue? Report it

//leakcanary-repo/shark/AndroidObjectInspectors

AndroidObjectInspectors

[jvm]\ enum AndroidObjectInspectors : Enum<AndroidObjectInspectors> , ObjectInspector

A set of default ObjectInspectors that knows about common AOSP and library classes.

These are heuristics based on our experience and knowledge of AOSP and various library internals. We only make a decision if we’re reasonably sure the state of an object is unlikely to be the result of a programmer mistake.

For example, no matter how many mistakes we make in our code, the value of Activity.mDestroy will not be influenced by those mistakes.

Most developers should use the entire set of default ObjectInspector by calling appDefaults, unless there’s a bug and you temporarily want to remove an inspector.

Entries

Types

Name Summary
Companion [jvm]
object Companion

Functions

Name Summary
inspect [jvm]
abstract fun inspect(reporter: ObjectReporter)
valueOf [jvm]
fun valueOf(value: String): AndroidObjectInspectors
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
values [jvm]
fun values(): Array<AndroidObjectInspectors>
Returns an array containing the constants of this enum type, in the order they’re declared.

Properties

Name Summary
name [jvm]
val name: String
ordinal [jvm]
val ordinal: Int