Builder

class Builder(licenseUrl: String?, uuid: UUID?, httpHeaders: MutableMap<String?, String?>?)

Constructors

Builder
Link copied to clipboard
fun Builder()

Properties

httpHeaders
Link copied to clipboard
var httpHeaders: MutableMap<String?, String?>? = null
licenseUrl
Link copied to clipboard
var licenseUrl: String? = null
uuid
Link copied to clipboard
var uuid: UUID? = null

Functions

build
Link copied to clipboard
fun build(): WidevineConfig
Builds a DrmConfig with the values set on this Builder.
httpHeaders
Link copied to clipboard
fun httpHeaders(httpHeaders: HashMap<String?, String?>): DrmConfig.Builder
Sets the HTTP headers map that will be used when building the DrmConfig.
licenseUrl
Link copied to clipboard
fun licenseUrl(licenseUrl: String): DrmConfig.Builder
Sets the licenseUrl that will be used when building the DrmConfig.
putHttpHeader
Link copied to clipboard
fun putHttpHeader(key: String?, value: String?): DrmConfig.Builder
Adds a HTTP header to the HTTP headers map that will be used when building the DrmConfig.
uuid
Link copied to clipboard
fun uuid(uuid: UUID?): DrmConfig.Builder
Sets the UUID that will be used when building the DrmConfig.