FragmentAndViewModelWatcher

class FragmentAndViewModelWatcher(application: Application, reachabilityWatcher: ReachabilityWatcher) : 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.

Constructors

Link copied to clipboard
fun FragmentAndViewModelWatcher(application: Application, reachabilityWatcher: ReachabilityWatcher)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun install()
Link copied to clipboard
open override fun uninstall()