AbstractProgressFragment
abstract class AbstractProgressFragment : Fragment
kotlin.Any | ||
↳ | androidx.fragment.app.Fragment | |
↳ | androidx.navigation.dynamicfeatures.fragment.ui.AbstractProgressFragment |
The base class for Fragments that handle dynamic feature installation.
When extending from this class, you are responsible for forwarding installation state changes to your UI via the provided hooks in onCancelled, onFailed, onProgress.
The installation process itself is handled within the AbstractProgressFragment itself. Navigation to the target destination will occur once the installation is completed.
Summary
Public constructors | |
---|---|
<init>() |
|
Public methods | |
---|---|
open Unit |
onActivityResult(: Int, : Int, : Intent?) |
open Unit | |
open Unit | |
open Unit |
onViewCreated(: View, : Bundle?) |
Protected methods | |
---|---|
Unit |
navigate() Navigates to an installed dynamic feature module or kicks off installation. |
abstract Unit |
Called when the user decided to cancel installation. |
abstract Unit |
Called when the installation has failed due to non-user issues. |
open Unit |
Called when requested module has been successfully installed, just before the NavController navigates to the final destination. |
abstract Unit |
onProgress(: Int, : Long, : Long) Called when there was a progress update for an active module download. |
Inherited functions | |
---|---|