LcpLicense mixin Null safety
- Implemented types
- Mixin Applications
Properties
- license → LicenseDocument
-
License Document information.
https://readium.org/lcp-specs/releases/lcp/latest.html
read-only
- status → StatusDocument?
-
License Status Document information.
https://readium.org/lcp-specs/releases/lsd/latest.html
read-only
- charactersToCopyLeft → int?
-
Number of remaining characters allowed to be copied by the user. If null, there's no limit.
read-only
- pagesToPrintLeft → int?
-
Number of pages allowed to be printed by the user. If null, there's no limit.
read-only
- canRenewLoan → bool
-
Can the user renew the loaned publication?
read-only
- maxRenewDate → DateTime?
-
The maximum potential date to renew to.
If null, then the renew date might not be customizable.
read-only
- canReturnPublication → bool
-
Can the user return the loaned publication?
read-only
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- canCopy → bool
-
Returns whether the user is currently allowed to copy content to the pasteboard.
read-onlyinherited
- canPrint → bool
-
Returns whether the user is currently allowed to print the content.
read-onlyinherited
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 non-existent 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