App Update Handler
The App Update Handler is designed to centralize and streamline the process of integrating app updates into any feature.
Parameters and Callbacks
The App Update Handler requires specific parameters and callbacks to function properly.
fragmentActivity
: Required – The base FragmentActivity used to manage the app update flow.appUpdateReadyMessageBaseView
: Required callback – A function that retrieves the base view where the AppUpdateReadyToInstallEventHandler will display the update-ready message to the user.
How To Use
To use the App Update Handler, it must first be injected into an Activity
, Fragment
, or View
. Once injected, it should be called as follows:
private val appUpdateHandler: AppUpdateHandler = get<AppUpdateHandler>()
override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) appUpdateHandlerinitialize(fragmentActivity, lazy { rootView })}
You can find an example of its usage in this feature: