LcpLicense mixin

Mixin Applications

Properties

canCopy bool
Returns whether the user is currently allowed to copy content to the pasteboard.
no setterinherited
canPrint bool
Returns whether the user is currently allowed to print the content.
no setterinherited
canRenewLoan bool
Can the user renew the loaned publication?
no setter
canReturnPublication bool
Can the user return the loaned publication?
no setter
charactersToCopyLeft int?
Number of remaining characters allowed to be copied by the user. If null, there's no limit.
no setter
hashCode int
The hash code for this object.
no setterinherited
license LicenseDocument
License Document information. https://readium.org/lcp-specs/releases/lcp/latest.html
no setter
maxRenewDate DateTime?
The maximum potential date to renew to. If null, then the renew date might not be customizable.
no setter
pagesToPrintLeft int?
Number of pages allowed to be printed by the user. If null, there's no limit.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status StatusDocument?
License Status Document information. https://readium.org/lcp-specs/releases/lsd/latest.html
no setter

Methods

canCopyText(String text) bool
Returns whether the user is allowed to copy the given text to the pasteboard.
inherited
canPrintPageCount(int pageCount) bool
Returns whether the user is allowed to print the given amount of pages.
inherited
copy(String text) bool
Consumes the given text with the copy right.
inherited
decrypt(ByteData data) Future<Try<ByteData, LcpException>>
Decrypts the given data encrypted with the license's content key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
print(int pageCount) bool
Consumes the given amount of pages with the print right.
inherited
renewLoan(RenewListener listener, {bool prefersWebPage = false}) Future<Try<DateTime, LcpException>>
Renews the loan by starting a renew LSD interaction.
returnPublication() Future<Try<bool, LcpException>>
Returns the publication to its provider.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited