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 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 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 | |
---|---|
![]()
java.lang.Object
|
Public constructors
AssetLocation
AssetLocation ()
Public methods
offset
long offset ()
Returns the file offset where the asset starts, in bytes.
Returns | |
---|---|
long |
path
String path ()
Returns the path to the file containing the asset.
Returns | |
---|---|
String |
size
long size ()
Returns the size of the asset, in bytes.
Returns | |
---|---|
long |
Interfaces
Classes
Exceptions