Stay organized with collections
Save and categorize content based on your preferences.
SchemeInitData
class SchemeInitData
Scheme initialization data.
Summary
Public constructors |
Creates a new instance with the given values.
|
Properties |
static UUID |
The Nil UUID, as defined in RFC 4122, section 4.
|
ByteArray! |
The initialization data.
|
String! |
The mimeType of data .
|
UUID |
The UUID associated with this scheme initialization data.
|
Public constructors
SchemeInitData
SchemeInitData(
uuid: UUID,
mimeType: String,
data: ByteArray)
Creates a new instance with the given values.
Parameters |
uuid |
UUID: The UUID associated with this scheme initialization data. This value cannot be null . |
mimeType |
String: The mimeType of the initialization data. This value cannot be null . |
data |
ByteArray: The initialization data. This value cannot be null . |
Public methods
equals
fun equals(other: Any?): Boolean
Parameters |
obj |
the reference object with which to compare. |
Return |
Boolean |
true if this object is the same as the obj argument; false otherwise. |
hashCode
fun hashCode(): Int
Return |
Int |
a hash code value for this object. |
Properties
UUID_NIL
static val UUID_NIL: UUID
The Nil UUID, as defined in RFC 4122, section 4.1.7.
data
val data: ByteArray!
The initialization data.
mimeType
val mimeType: String!
The mimeType of data
.
uuid
val uuid: UUID
The UUID associated with this scheme initialization data. May be UUID_NIL
if unknown or not applicable.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# DrmInitData.SchemeInitData\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSchemeInitData\n==============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/DrmInitData.SchemeInitData \"View this page in Java\") \n\n```\nclass SchemeInitData\n```\n\n|---|-----------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.media.DrmInitData.SchemeInitData](#) |\n\nScheme initialization data.\n\nSummary\n-------\n\n| Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [SchemeInitData](#SchemeInitData(java.util.UUID,%20kotlin.String,%20kotlin.ByteArray))`(`uuid:` `[UUID](../../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. |\n\n| Public methods ||\n|------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [equals](#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` \u003cbr /\u003e |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [hashCode](#hashCode())`()` \u003cbr /\u003e |\n\n| Properties ||\n|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|\n| static [UUID](../../java/util/UUID.html#) | [UUID_NIL](#UUID_NIL:java.util.UUID) The Nil UUID, as defined in RFC 4122, section 4. |\n| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)! | [data](#data:kotlin.ByteArray) The initialization data. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [mimeType](#mimeType:kotlin.String) The mimeType of [data](#data:kotlin.ByteArray). |\n| [UUID](../../java/util/UUID.html#) | [uuid](#uuid:java.util.UUID) The UUID associated with this scheme initialization data. |\n\nPublic constructors\n-------------------\n\n### SchemeInitData\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nSchemeInitData(\n uuid: UUID, \n mimeType: String, \n data: ByteArray)\n```\n\nCreates a new instance with the given values.\n\n| Parameters ||\n|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `uuid` | [UUID](../../java/util/UUID.html#): The UUID associated with this scheme initialization data. This value cannot be `null`. |\n| `mimeType` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): The mimeType of the initialization data. This value cannot be `null`. |\n| `data` | [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html): The initialization data. This value cannot be `null`. |\n\nPublic methods\n--------------\n\n### equals\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun equals(other: Any?): Boolean\n```\n\n| Parameters ||\n|-------|---------------------------------------------|\n| `obj` | the reference object with which to compare. |\n\n| Return ||\n|------------------------------------------------------------------------------------|---------------------------------------------------------------------------|\n| [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. |\n\n### hashCode\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun hashCode(): Int\n```\n\n| Return ||\n|----------------------------------------------------------------------------|------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value for this object. |\n\nProperties\n----------\n\n### UUID_NIL\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val UUID_NIL: UUID\n```\n\nThe Nil UUID, as defined in RFC 4122, section 4.1.7. \n\n### data\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nval data: ByteArray!\n```\n\nThe initialization data. \n\n### mimeType\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nval mimeType: String!\n```\n\nThe mimeType of [data](#data:kotlin.ByteArray). \n\n### uuid\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nval uuid: UUID\n```\n\nThe UUID associated with this scheme initialization data. May be [UUID_NIL](#UUID_NIL:java.util.UUID) if unknown or not applicable."]]