Android 12 Developer Preview is here! Try it out, and give us your feedback!

AssetPackStates

public abstract class AssetPackStates
extends Object

java.lang.Object
   ↳ com.google.android.play.core.assetpacks.AssetPackStates


Contains the state for all requested packs.

Summary

Public constructors

AssetPackStates()

Public methods

abstract Map<String, AssetPackState> packStates()

Returns a map from a pack's name to its state.

abstract long totalBytes()

Returns total size of all requested packs in bytes.

Inherited methods

Public constructors

AssetPackStates

public AssetPackStates ()

Public methods

packStates

public abstract Map<String, AssetPackState> packStates ()

Returns a map from a pack's name to its state.

Returns
Map<String, AssetPackState>

totalBytes

public abstract long totalBytes ()

Returns total size of all requested packs in bytes.

Returns
long