ContentProtectionService

Provides information about a publication's content protection and manages user rights.

Types

Link copied to clipboard
interface UserRights

Manages consumption of user rights and permissions.

Properties

Link copied to clipboard
abstract val credentials: String?

Credentials used to unlock this Publication.

Link copied to clipboard
abstract val error: Error?

The error raised when trying to unlock the Publication, if any.

Link copied to clipboard
abstract val isRestricted: Boolean

Whether the Publication has a restricted access to its resources, and can't be rendered in a Navigator.

Link copied to clipboard
open val name: String?

User-facing name for this Content Protection, e.g. "Readium LCP". It could be used in a sentence such as "Protected by {name}"

Link copied to clipboard

Manages consumption of user rights and permissions.

Link copied to clipboard

Known technology for this type of Content Protection.

Functions

Link copied to clipboard
open override fun close()

Closes any opened file handles, removes temporary files, etc.