ContentProtection
interface ContentProtection
Bridge between a Content Protection technology and the Readium toolkit.
Its responsibilities are to:
Create a Container one can access the publication through.
Create a ContentProtectionService publication service.
Inheritors
Types
Link copied to clipboard
data class OpenResult(val asset: Asset, val onCreatePublication: Publication.Builder.() -> Unit = {})
Holds the result of opening an Asset with a ContentProtection.
Functions
Link copied to clipboard
abstract suspend fun open(asset: Asset, credentials: String?, allowUserInteraction: Boolean): Try<ContentProtection.OpenResult, ContentProtection.OpenError>
Attempts to unlock a potentially protected publication asset.