Package leakcanary
Types
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.
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.
Link copied to clipboard
class FragmentAndViewModelWatcher(application: Application, reachabilityWatcher: ReachabilityWatcher) : InstallableWatcher
Content copied to clipboard
Expects:
Link copied to clipboard
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.
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.