Skip to content
🤔 Documentation issue? Report it

//leakcanary/shark/AndroidObjectInspectors

AndroidObjectInspectors

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

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

Types

Name Summary
Companion object Companion

Functions

Name Summary
inspect abstract fun inspect(reporter: ObjectReporter)

Properties

Name Summary
name val name: String
ordinal val ordinal: Int