Package leakcanary
Types
Activity Watcher
Link copied to clipboard
class ActivityWatcher(application: Application, reachabilityWatcher: ReachabilityWatcher) : InstallableWatcher
Content copied to clipboard
Expects activities to become weakly reachable soon after they receive the Activity.onDestroy callback.
App Watcher
Link copied to clipboard
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.
Fragment And View Model Watcher
Link copied to clipboard
class FragmentAndViewModelWatcher(application: Application, reachabilityWatcher: ReachabilityWatcher) : InstallableWatcher
Content copied to clipboard
Expects:
Installable Watcher
Link copied to clipboard
Root View Watcher
Link copied to clipboard
class RootViewWatcher(reachabilityWatcher: ReachabilityWatcher) : InstallableWatcher
Content copied to clipboard
Expects root views to become weakly reachable soon after they are removed from the window manager.
Service Watcher
Link copied to clipboard
class ServiceWatcher(reachabilityWatcher: ReachabilityWatcher) : InstallableWatcher
Content copied to clipboard
Expects services to become weakly reachable soon after they receive the Service.onDestroy callback.