DrmSessionManager.DrmSessionReference


interface DrmSessionManager.DrmSessionReference


Represents a single reference count of a DrmSession, while deliberately not giving access to the underlying session.

Summary

Constants

const DrmSessionManager.DrmSessionReference!

A reference that is never populated with an underlying DrmSession.

Public functions

Unit

Releases the underlying session at most once.

Constants

EMPTY

const val EMPTYDrmSessionManager.DrmSessionReference!

A reference that is never populated with an underlying DrmSession.

Public functions

release

fun release(): Unit

Releases the underlying session at most once.

Can be called from any thread. Calling this method more than once will only release the underlying session once.