Skip to content
🤔 Documentation issue? Report it

//leakcanary-repo/leakcanary/AppWatcher/appDefaultWatchers

appDefaultWatchers

[androidJvm]\ fun appDefaultWatchers(application: Application, deletableObjectReporter: DeletableObjectReporter = objectWatcher.asDeletableObjectReporter()): List<InstallableWatcher>

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

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