Skip to content
🤔 Documentation issue? Report it

ObjectWatcher Android

leakcanary-object-watcher-android / leakcanary

Package leakcanary

Types

Name Summary
ActivityWatcher class ActivityWatcher :InstallableWatcher
Expects activities to become weakly reachable soon after they receive the Activity.onDestroy callback.
AppWatcher object AppWatcher
The entry point API for using ObjectWatcher in an Android app. AppWatcher.objectWatcher is in charge of detecting retained objects, and AppWatcher is auto configured on app start to pass it activity and fragment instances. Call ObjectWatcher.watch on objectWatcher to watch any other object that you expect to be unreachable.
FragmentAndViewModelWatcher class FragmentAndViewModelWatcher :InstallableWatcher
Expects:
InstallableWatcher interface InstallableWatcher
RootViewWatcher class RootViewWatcher :InstallableWatcher
Expects root views to become weakly reachable soon after they are removed from the window manager.
ServiceWatcher class ServiceWatcher :InstallableWatcher
Expects services to become weakly reachable soon after they receive the Service.onDestroy callback.