Skip to content
🤔 Documentation issue? Report it

//leakcanary/leakcanary/AppWatcher/appDefaultWatchers

appDefaultWatchers

fun appDefaultWatchers(application: Application, reachabilityWatcher: ReachabilityWatcher = objectWatcher): List<InstallableWatcher>

Creates a new list of default app InstallableWatcher, created with the passed in reachabilityWatcher (which defaults to objectWatcher). Once installed, these watchers will pass in to reachabilityWatcher objects that they expect to become weakly reachable.

The passed in reachabilityWatcher should probably delegate to objectWatcher but can be used to filter out specific instances.