# HlsMediaPlaylist.ClientDefinedAttribute

# HlsMediaPlaylist.ClientDefinedAttribute

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute "View this page in Java")

<br />

```
class HlsMediaPlaylist.ClientDefinedAttribute
```

<br />

*** ** * ** ***

A client defined attribute. See RFC 8216bis, section 4.4.5.1.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                     ### Nested types                                                                                                                                                                                                                                                                                                                                                                                                                                     |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `@`[Retention](https://developer.android.com/reference/java/lang/annotation/Retention.html)`(value = `[RetentionPolicy.SOURCE](https://developer.android.com/reference/java/lang/annotation/RetentionPolicy.html#SOURCE)`)` `@`[IntDef](https://developer.android.com/reference/kotlin/androidx/annotation/IntDef)`(value = )` `@`[Documented](https://developer.android.com/reference/java/lang/annotation/Documented.html) `@`[Target](https://developer.android.com/reference/java/lang/annotation/Target.html)`(value = `[ElementType.TYPE_USE](https://developer.android.com/reference/java/lang/annotation/ElementType.html#TYPE_USE)`)` `annotation `[HlsMediaPlaylist.ClientDefinedAttribute.Type](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute.Type) The type of the client defined attribute. |

|                                    ### Constants                                    |
|-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_DOUBLE](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute#TYPE_DOUBLE())` = 2` Type double.       |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_HEX_TEXT](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute#TYPE_HEX_TEXT())` = 1` Type hex text. |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_TEXT](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute#TYPE_TEXT())` = 0` Type text.             |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ClientDefinedAttribute](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute#ClientDefinedAttribute(java.lang.String,double))`(name: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!, value: `[Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)`)` Creates an instance of type[TYPE_DOUBLE](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute#TYPE_DOUBLE()).                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [ClientDefinedAttribute](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute#ClientDefinedAttribute(java.lang.String,java.lang.String,int))`(` ` name: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!,` ` value: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!,` ` @`[HlsMediaPlaylist.ClientDefinedAttribute.Type](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute.Type)` type: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) `)` Creates an instance of type[TYPE_TEXT](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute#TYPE_TEXT())or[TYPE_HEX_TEXT](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute#TYPE_HEX_TEXT()). |

|                                ### Public functions                                 |
|-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute#equals(java.lang.Object))`(o: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | [hashCode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute#hashCode())`()`                                                                                              |

|                                ### Public properties                                 |
|--------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)    | [doubleValue](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute#doubleValue())                             |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!` | [name](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute#name()) The name of the client defined attribute. |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?` | [textValue](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute#textValue())                                 |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)          | [type](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute#type()) The type of the client defined attribute. |

## Constants

### TYPE_DOUBLE

```
const val TYPE_DOUBLE = 2: Int
```

Type double. See RFC 8216bis, section 4.2, decimal-floating-point.  

### TYPE_HEX_TEXT

```
const val TYPE_HEX_TEXT = 1: Int
```

Type hex text. See RFC 8216bis, section 4.2, hexadecimal-sequence.  

### TYPE_TEXT

```
const val TYPE_TEXT = 0: Int
```

Type text. See RFC 8216bis, section 4.2, quoted-string.  

## Public constructors

### ClientDefinedAttribute

```
ClientDefinedAttribute(name: String!, value: Double)
```

Creates an instance of type[TYPE_DOUBLE](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute#TYPE_DOUBLE()).  

### ClientDefinedAttribute

```
ClientDefinedAttribute(
    name: String!,
    value: String!,
    @HlsMediaPlaylist.ClientDefinedAttribute.Type type: Int
)
```

Creates an instance of type[TYPE_TEXT](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute#TYPE_TEXT())or[TYPE_HEX_TEXT](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute#TYPE_HEX_TEXT()).  

## Public functions

### equals

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

### hashCode

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

## Public properties

### doubleValue

```
val doubleValue: Double
```  

### name

```
val name: String!
```

The name of the client defined attribute.  

### textValue

```
val textValue: String?
```  

### type

```
val type: Int
```

The type of the client defined attribute.