Package leakcanary

Types

Link copied to clipboard
class ActivityWatcher(application: Application, reachabilityWatcher: ReachabilityWatcher) : InstallableWatcher

Expects activities to become weakly reachable soon after they receive the Activity.onDestroy callback.

Link copied to clipboard
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.

Link copied to clipboard
class FragmentAndViewModelWatcher(application: Application, reachabilityWatcher: ReachabilityWatcher) : InstallableWatcher

Expects:

Link copied to clipboard
interface InstallableWatcher
Link copied to clipboard
class RootViewWatcher(reachabilityWatcher: ReachabilityWatcher) : InstallableWatcher

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

Expects services to become weakly reachable soon after they receive the Service.onDestroy callback.