leakcanary-object-watcher-android / leakcanary / AppWatcher / Config / watchViewModels

watchViewModels

val watchViewModels: Boolean

Whether AppWatcher should automatically watch cleared androidx.lifecycle.ViewModel instances.

Defaults to true.