# Location

Artifact: [androidx.media3:media3-exoplayer-dash](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/dash/manifest/Location.java+class:androidx.media3.exoplayer.dash.manifest.Location)

*** ** * ** ***


```
@UnstableApi
class Location
```

<br />

*** ** * ** ***

Represents a Location element, as defined by ISO 23009-1.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Location#Location(android.net.Uri)(url: https://developer.android.com/reference/android/net/Uri.html!)` Creates an instance using the URL as the service location. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Location#Location(android.net.Uri,java.lang.String)(url: https://developer.android.com/reference/android/net/Uri.html!, serviceLocation: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Creates an instance. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Location#equals(java.lang.Object)(o: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Location#hashCode()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Location#serviceLocation()` The service location. |
| `https://developer.android.com/reference/android/net/Uri.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Location#url()` The URL. |

## Public constructors

### Location

```
Location(url: Uri!)
```

Creates an instance using the URL as the service location.

| Parameters |
|---|---|
| `url: https://developer.android.com/reference/android/net/Uri.html!` | The `https://developer.android.com/reference/android/net/Uri.html`. |

### Location

```
Location(url: Uri!, serviceLocation: String!)
```

Creates an instance.

| Parameters |
|---|---|
| `url: https://developer.android.com/reference/android/net/Uri.html!` | The `https://developer.android.com/reference/android/net/Uri.html`. |
| `serviceLocation: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The service location. |

## Public functions

### equals

```
fun equals(o: Any?): Boolean
```

### hashCode

```
fun hashCode(): Int
```

## Public properties

### serviceLocation

```
val serviceLocation: String!
```

The service location.

### url

```
val url: Uri!
```

The URL.