# DrmInitData.SchemeInitData

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# SchemeInitData

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/media/DrmInitData.SchemeInitData "View this page in Java")  

```
class SchemeInitData
```

|---|--------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                       ||
| ↳ | [android.media.DrmInitData.SchemeInitData](https://developer.android.com/reference/kotlin/android/media/DrmInitData.SchemeInitData#) |

Scheme initialization data.

## Summary

|                                                                                                                                                                                                                                                    Public constructors                                                                                                                                                                                                                                                     ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [SchemeInitData](https://developer.android.com/reference/kotlin/android/media/DrmInitData.SchemeInitData#SchemeInitData(java.util.UUID,%20kotlin.String,%20kotlin.ByteArray))`(`uuid:` `[UUID](https://developer.android.com/reference/kotlin/java/util/UUID.html#)`, `mimeType:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `data:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`)` Creates a new instance with the given values. |

|                                                                                                                                              Public methods                                                                                                                                               ||
|------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/android/media/DrmInitData.SchemeInitData#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` <br /> |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)         | [hashCode](https://developer.android.com/reference/kotlin/android/media/DrmInitData.SchemeInitData#hashCode())`()` <br />                                                                                             |

|                                                                                                                                                                         Properties                                                                                                                                                                         ||
|------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[UUID](https://developer.android.com/reference/kotlin/java/util/UUID.html#)        | [UUID_NIL](https://developer.android.com/reference/kotlin/android/media/DrmInitData.SchemeInitData#UUID_NIL:java.util.UUID) The Nil UUID, as defined in RFC 4122, section 4.                                                                                     |
| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)! | [data](https://developer.android.com/reference/kotlin/android/media/DrmInitData.SchemeInitData#data:kotlin.ByteArray) The initialization data.                                                                                                                   |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!        | [mimeType](https://developer.android.com/reference/kotlin/android/media/DrmInitData.SchemeInitData#mimeType:kotlin.String) The mimeType of[data](https://developer.android.com/reference/kotlin/android/media/DrmInitData.SchemeInitData#data:kotlin.ByteArray). |
| [UUID](https://developer.android.com/reference/kotlin/java/util/UUID.html#)              | [uuid](https://developer.android.com/reference/kotlin/android/media/DrmInitData.SchemeInitData#uuid:java.util.UUID) The UUID associated with this scheme initialization data.                                                                                    |

## Public constructors

### SchemeInitData

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
SchemeInitData(
    uuid: UUID, 
    mimeType: String, 
    data: ByteArray)
```

Creates a new instance with the given values.

|                                                                                  Parameters                                                                                   ||
|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `uuid`     | [UUID](https://developer.android.com/reference/kotlin/java/util/UUID.html#):The UUID associated with this scheme initialization data. This value cannot be`null`. |
| `mimeType` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html):The mimeType of the initialization data. This value cannot be`null`.             |
| `data`     | [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html):The initialization data. This value cannot be`null`.                      |

## Public methods

### equals

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

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

|                     Parameters                     ||
|-------|---------------------------------------------|
| `obj` | the reference object with which to compare. |

|                                                                           Return                                                                           ||
|------------------------------------------------------------------------------------|------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `true`if this object is the same as the obj argument;`false`otherwise. |

### hashCode

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

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

|                                                     Return                                                     ||
|----------------------------------------------------------------------------|------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value for this object. |

## Properties

### UUID_NIL

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val UUID_NIL: UUID
```

The Nil UUID, as defined in RFC 4122, section 4.1.7.  

### data

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
val data: ByteArray!
```

The initialization data.  

### mimeType

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
val mimeType: String!
```

The mimeType of[data](https://developer.android.com/reference/kotlin/android/media/DrmInitData.SchemeInitData#data:kotlin.ByteArray).  

### uuid

Added in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
val uuid: UUID
```

The UUID associated with this scheme initialization data. May be[UUID_NIL](https://developer.android.com/reference/kotlin/android/media/DrmInitData.SchemeInitData#UUID_NIL:java.util.UUID)if unknown or not applicable.