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

VIEW [jvm]
VIEW
EDITOR [jvm]
EDITOR
ACTIVITY [jvm]
ACTIVITY
SERVICE [jvm]
SERVICE
CONTEXT_FIELD [jvm]
CONTEXT_FIELD
CONTEXT_WRAPPER [jvm]
CONTEXT_WRAPPER
APPLICATION_PACKAGE_MANAGER [jvm]
APPLICATION_PACKAGE_MANAGER
CONTEXT_IMPL [jvm]
CONTEXT_IMPL
DIALOG [jvm]
DIALOG
ACTIVITY_THREAD [jvm]
ACTIVITY_THREAD
APPLICATION [jvm]
APPLICATION
INPUT_METHOD_MANAGER [jvm]
INPUT_METHOD_MANAGER
FRAGMENT [jvm]
FRAGMENT
SUPPORT_FRAGMENT [jvm]
SUPPORT_FRAGMENT
ANDROIDX_FRAGMENT [jvm]
ANDROIDX_FRAGMENT
MESSAGE_QUEUE [jvm]
MESSAGE_QUEUE
LOADED_APK [jvm]
LOADED_APK
MORTAR_PRESENTER [jvm]
MORTAR_PRESENTER
MORTAR_SCOPE [jvm]
MORTAR_SCOPE
COORDINATOR [jvm]
COORDINATOR
MAIN_THREAD [jvm]
MAIN_THREAD
VIEW_ROOT_IMPL [jvm]
VIEW_ROOT_IMPL
WINDOW [jvm]
WINDOW
MESSAGE [jvm]
MESSAGE
TOAST [jvm]
TOAST
RECOMPOSER [jvm]
RECOMPOSER
COMPOSITION_IMPL [jvm]
COMPOSITION_IMPL
ANIMATOR [jvm]
ANIMATOR
OBJECT_ANIMATOR [jvm]
OBJECT_ANIMATOR
LIFECYCLE_REGISTRY [jvm]
LIFECYCLE_REGISTRY
STUB [jvm]
STUB

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