# 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
public final class Location
```

<br />

*** ** * ** ***

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

## Summary

| ### Public fields |
|---|---|
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Location#serviceLocation()` The service location. |
| `final https://developer.android.com/reference/android/net/Uri.html` | `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Location#url()` The URL. |

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

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Location#equals(java.lang.Object)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Object.html o)` |
| `int` | `https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/Location#hashCode()()` |

## Public fields

### serviceLocation

```
public final String serviceLocation
```

The service location.

### url

```
public final Uri url
```

The URL.

## Public constructors

### Location

```
public Location(Uri url)
```

Creates an instance using the URL as the service location.

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

### Location

```
public Location(Uri url, String serviceLocation)
```

Creates an instance.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/net/Uri.html url` | The `https://developer.android.com/reference/android/net/Uri.html`. |
| `https://developer.android.com/reference/java/lang/String.html serviceLocation` | The service location. |

## Public methods

### equals

```
public boolean equals(@Nullable Object o)
```

### hashCode

```
public int hashCode()
```