MaterialRenewListener class

A default implementation of the RenewListener using Chrome Custom Tabs for presenting web pages and a Material Date Picker for choosing the renew date.

MaterialRenewListener must be initialized before its parent component is in a RESUMED state, because it needs to register an ActivityResultLauncher.

@param license LCP license which will be renewed. @param context BuildContext used to present the date picker.

Implemented types

Constructors

MaterialRenewListener(LcpLicense license, BuildContext context)

Properties

context BuildContext
final
hashCode int
The hash code for this object.
no setterinherited
license LcpLicense
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openWebPage(Uri url) Future<bool>
Called when the renew interaction uses an HTML web page.
override
preferredEndDate(DateTime? maximumDate) Future<DateTime>
Called when the renew interaction allows to customize the end date programmatically. You can prompt the user for the number of days to renew, for example.
override
toString() String
A string representation of this object.
inherited

Operators

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