# AssetLocation

Summary:[Ctors](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetLocation#pubctors)\|[Methods](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetLocation#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetLocation#inhmethods)  

# AssetLocation

`
public


abstract
class
AssetLocation
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object.html)`


``


`

|---|-------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||
| ↳ | com.google.android.play.core.assetpacks.AssetLocation |

<br />

*** ** * ** ***

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

If the AssetPackStorageMethod for the pack is[AssetPackStorageMethod.APK_ASSETS](https://developer.android.com/reference/com/google/android/play/core/assetpacks/model/AssetPackStorageMethod.html#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](https://developer.android.com/reference/com/google/android/play/core/assetpacks/model/AssetPackStorageMethod.html#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](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetLocation.html#AssetLocation())`() ` |

|                                                                                                                              ### Public methods                                                                                                                              ||
|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract long`                                                                    | ` `[offset](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetLocation.html#offset())`() ` Returns the file offset where the asset starts, in bytes. |
| ` abstract `[String](https://developer.android.com/reference/java/lang/String.html) | ` `[path](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetLocation.html#path())`() ` Returns the path to the file containing the asset.            |
| ` abstract long`                                                                    | ` `[size](https://developer.android.com/reference/com/google/android/play/core/assetpacks/AssetLocation.html#size())`() ` Returns the size of the asset, in bytes.                      |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)` ` |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` boolean`                                                                          | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                             | | ` int`                                                                              | ` hashCode() `                                                                             | | ` final void`                                                                       | ` notify() `                                                                               | | ` final void`                                                                       | ` notifyAll() `                                                                            | | ` `[String](https://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                             | | ` final void`                                                                       | ` wait(long arg0, int arg1) `                                                              | | ` final void`                                                                       | ` wait(long arg0) `                                                                        | | ` final void`                                                                       | ` wait() `                                                                                 | ||

## Public constructors

### AssetLocation

```
public AssetLocation ()
```

<br />

<br />

## Public methods

### offset

```
public abstract long offset ()
```

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

<br />

|    Returns     ||
|--------|--------|
| `long` | <br /> |

### path

```
public abstract String path ()
```

Returns the path to the file containing the asset.

<br />

|                                     Returns                                     ||
|-------------------------------------------------------------------------|--------|
| [String](https://developer.android.com/reference/java/lang/String.html) | <br /> |

### size

```
public abstract long size ()
```

Returns the size of the asset, in bytes.

<br />

|    Returns     ||
|--------|--------|
| `long` | <br /> |