Skip to content
🤔 Documentation issue? Report it

//leakcanary-repo/leakcanary/RootViewWatcher

RootViewWatcher

[androidJvm]\ class RootViewWatcher(deletableObjectReporter: DeletableObjectReporter, rootViewFilter: RootViewWatcher.Filter = WindowTypeFilter(watchDismissedDialogs = false)) : InstallableWatcher

Expects root views to become weakly reachable soon after they are removed from the window manager.

Constructors

RootViewWatcher [androidJvm]
constructor(reachabilityWatcher: ReachabilityWatcher)constructor(deletableObjectReporter: DeletableObjectReporter, rootViewFilter: RootViewWatcher.Filter = WindowTypeFilter(watchDismissedDialogs = false))

Types

Name Summary
Filter [androidJvm]
fun interface Filter
WindowTypeFilter [androidJvm]
class WindowTypeFilter(watchDismissedDialogs: Boolean) : RootViewWatcher.Filter

Functions

Name Summary
install [androidJvm]
open override fun install()
uninstall [androidJvm]
open override fun uninstall()