ReadiumReaderChannel constructor
ReadiumReaderChannel(
- String name, {
- required void onPageChanged(),
- void onExternalLinkActivated()?,
- void onTextSelected()?,
- void onSelectionAction()?,
- void onDecorationInteraction()?,
Creates a channel bound to name. onPageChanged is called when the
native navigator reports a page change. onExternalLinkActivated is
called when an external (non-publication) link is tapped.
Implementation
ReadiumReaderChannel(
super.name, {
required this.onPageChanged,
this.onExternalLinkActivated,
this.onTextSelected,
this.onSelectionAction,
this.onDecorationInteraction,
}) {
setMethodCallHandler(onMethodCall);
}