-
- All Implemented Interfaces:
-
leakcanary.InstallableWatcher
public final class FragmentAndViewModelWatcher implements InstallableWatcher
Expects:
Fragments (Support Library, Android X and AOSP) to become weakly reachable soon after they receive the Fragment#onDestroy() callback.
Fragment views (Support Library, Android X and AOSP) to become weakly reachable soon after fragments receive the Fragment#onDestroyView() callback.
Android X view models (both activity and fragment view models) to become weakly reachable soon after they received the ViewModel#onCleared() callback.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classFragmentAndViewModelWatcher.Companion
-
Constructor Summary
Constructors Constructor Description FragmentAndViewModelWatcher(Application application, DeletableObjectReporter deletableObjectReporter)
-
Method Summary
-
-
Constructor Detail
-
FragmentAndViewModelWatcher
FragmentAndViewModelWatcher(Application application, DeletableObjectReporter deletableObjectReporter)
-
-
-
-