AssetLocation

public abstract class AssetLocation
extends Object

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


Location of a single asset, belonging to an asset pack.

If the AssetPackStorageMethod for the pack is AssetPackStorageMethod.APK_ASSETS, this will be the path to the APK containing the asset, the offset of the asset inside the APK and the size of the asset. The asset file will be uncompressed, unless `bundletool` has been explicitly configured to compress the asset pack.

If the AssetPackStorageMethod for the pack is AssetPackStorageMethod.STORAGE_FILES, this will be the path to the specific asset, the offset will be 0 and the size will be the size of the asset file. The asset file will be uncompressed.

Summary

Public constructors

AssetLocation()

Public methods

abstract long offset()

Returns the file offset where the asset starts, in bytes.

abstract String path()

Returns the path to the file containing the asset.

abstract long size()

Returns the size of the asset, in bytes.

Inherited methods

Public constructors

AssetLocation

public AssetLocation ()

Public methods

offset

public abstract long offset ()

Returns the file offset where the asset starts, in bytes.

Returns
long

path

public abstract String path ()

Returns the path to the file containing the asset.

Returns
String

size

public abstract long size ()

Returns the size of the asset, in bytes.

Returns
long