DrmSessionManager.DrmSessionReference


public interface DrmSessionManager.DrmSessionReference


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

Summary

Constants

default static final DrmSessionManager.DrmSessionReference

A reference that is never populated with an underlying DrmSession.

Public methods

abstract void

Releases the underlying session at most once.

Constants

EMPTY

default static final DrmSessionManager.DrmSessionReference EMPTY

A reference that is never populated with an underlying DrmSession.

Public methods

release

abstract void release()

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.