KeyRequestInfo.Builder


class KeyRequestInfo.Builder


Builder for KeyRequestInfo instances.

Summary

Public constructors

Constructs an instance.

Public functions

KeyRequestInfo.Builder!

Adds info for a load associated with this key request.

KeyRequestInfo!

Builds a KeyRequestInfo instance.

KeyRequestInfo.Builder!

Sets the SchemeData instances associated with the key request.

Public constructors

Builder

Builder()

Constructs an instance.

Public functions

addLoadInfo

@CanIgnoreReturnValue
fun addLoadInfo(loadEventInfo: LoadEventInfo!): KeyRequestInfo.Builder!

Adds info for a load associated with this key request. May be called again to add info for any retry requests.

build

@SideEffectFree
fun build(): KeyRequestInfo!

Builds a KeyRequestInfo instance.

setSchemeDatas

@CanIgnoreReturnValue
fun setSchemeDatas(schemeDatas: (Mutable)List<DrmInitData.SchemeData!>!): KeyRequestInfo.Builder!

Sets the SchemeData instances associated with the key request.