AbstractProgressFragment

public abstract class AbstractProgressFragment extends Fragment implements LifecycleOwner, ViewModelStoreOwner, HasDefaultViewModelProviderFactory, LifecycleOwner, SavedStateRegistryOwner, ActivityResultCaller

Object
   ↳ Fragment
     ↳ AbstractProgressFragment
Known direct subclasses
DefaultProgressFragment

The default androidx.fragment.app.Fragment to display during installation progress.


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 fields

final boolean
final @NonNull Fragment.AnimationInfo
final @NonNull Bundle
final int
final boolean
final @NonNull FragmentManager
final @NonNull ViewGroup
final int
final @NonNull ViewModelProvider.Factory
final boolean
final boolean
final int
final @NonNull FragmentManager
final boolean
final boolean
final boolean
final boolean
final @NonNull FragmentHostCallback<@NonNull ?>
final boolean
final boolean
final @NonNull LayoutInflater
final @NonNull LifecycleRegistry
final @NonNull Lifecycle.State
final boolean
final @NonNull Fragment
final boolean
final @NonNull Runnable
final @RestrictTo(value = RestrictTo.Scope.LIBRARY) @Nullable String
final boolean
final boolean
final boolean
final boolean
final @NonNull Bundle
final @NonNull SavedStateRegistryController
final @Nullable Boolean
final @NonNull Bundle
final @NonNull SparseArray<@NonNull Parcelable>
final int
final @NonNull String
final @NonNull Fragment
final int
final @NonNull String
final boolean
final @NonNull View
final @Nullable FragmentViewLifecycleOwner
final @NonNull MutableLiveData<@NonNull LifecycleOwner>
final @NonNull String

Public constructors

AbstractProgressFragment(int contentLayoutId)

Public methods

void
onCreate(@Nullable Bundle savedInstanceState)

Called to do initial creation of a fragment.

void

Called to ask the fragment to save its current dynamic state, so it can later be reconstructed in a new instance if its process is restarted.

void
onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState)

Called immediately after onCreateView has returned, but before any saved state has been restored in to the view.

Inherited methods

From class Fragment
void
callStartTransitionListener(boolean calledDirectly)
@NonNull FragmentContainer
void
dump(
    @NonNull String prefix,
    @Nullable FileDescriptor fd,
    @NonNull PrintWriter writer,
    @Nullable Array<@NonNull String> args
)
final @Override boolean
@Nullable Fragment
@NonNull String
final @Nullable FragmentActivity
boolean
boolean
@NonNull View
final @Nullable Bundle
final @NonNull FragmentManager
@Nullable Context
@NonNull @Override ViewModelProvider.Factory

Returns the default androidx.lifecycle.ViewModelProvider.Factory that should be used when no custom {@code Factory} is provided to the androidx.lifecycle.ViewModelProvider constructors.

int
@Nullable Object
@NonNull SharedElementCallback
int
@Nullable Object
@NonNull SharedElementCallback
@NonNull View
final @Nullable FragmentManager

This method is deprecated. Deprecated in Java

final @Nullable Object
final int
final @NonNull LayoutInflater
@NonNull @RestrictTo(value = RestrictTo.Scope.LIBRARY_GROUP_PREFIX) LayoutInflater
getLayoutInflater(@Nullable Bundle savedFragmentState)

This method is deprecated. Deprecated in Java

@Override @NonNull Lifecycle

Returns the Lifecycle of the provider.

@NonNull LoaderManager

This method is deprecated. Deprecated in Java

int
final @Nullable Fragment
final @NonNull FragmentManager
boolean
int
int
float
@Nullable Object
final @NonNull Resources
final boolean

This method is deprecated. Deprecated in Java

@Nullable Object
final @NonNull @Override SavedStateRegistry

Returns owned SavedStateRegistry

@Nullable Object
@Nullable Object
@NonNull ArrayList<@NonNull String>
@NonNull ArrayList<@NonNull String>
final @NonNull String
getString(@StringRes int resId)
final @NonNull String
getString(@StringRes int resId, @Nullable Object formatArgs)
final @Nullable String
final @Nullable Fragment

This method is deprecated. Deprecated in Java

final int

This method is deprecated. Deprecated in Java

final @NonNull CharSequence
getText(@StringRes int resId)
boolean

This method is deprecated. Deprecated in Java

@Nullable View
@MainThread @NonNull LifecycleOwner
@NonNull LiveData<@NonNull LifecycleOwner>
@NonNull @Override ViewModelStore

Returns owned ViewModelStore

final @RestrictTo(value = RestrictTo.Scope.LIBRARY_GROUP_PREFIX) boolean
final @