Package leakcanary

Types

ActivityWatcher
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.

AppWatcher
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.

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

Expects:

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

ServiceWatcher
Link copied to clipboard
class ServiceWatcher(reachabilityWatcher: ReachabilityWatcher) : InstallableWatcher

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