Interface AssetLoadingFragment

All Superinterfaces:
Fragment
All Known Implementing Classes:
PlayerManagerComponent

public interface AssetLoadingFragment extends Fragment
A fragment that loads assets using the provided AssetManager. This is like the AsyncAssetLoadingFragment but it is called from the main thread. It is easier to use than the AsyncAssetLoadingFragment for simple asset loading tasks but risks blocking the main thread if the asset loading takes too long.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    loadAssets(AssetManager assetManager)
    Load assets using the provided AssetManager.
  • Method Details

    • loadAssets

      default void loadAssets(AssetManager assetManager)
      Load assets using the provided AssetManager. The reference to the AssetManager can be stored and used later in the component logic.
      Parameters:
      assetManager - the AssetManager instance