DefaultSelectionAction enum
System-provided text selection actions that can be shown or hidden.
Pass a set of these to ReadiumReaderWidget.allowedDefaultActions to control
which system actions appear alongside your custom SelectionActions.
If null is passed (the default), all system defaults are shown.
If an empty set is passed, only your custom actions appear.
Android limitation: providing custom SelectionActions replaces the
WebView's default ActionMode.Callback entirely, so system items (Copy,
Share, Select All) are not shown regardless of this setting.
allowedDefaultActions has no effect on Android.
Values
- copy → const DefaultSelectionAction
-
Copy selected text to clipboard.
-
Share selected text via system share sheet.
- lookup → const DefaultSelectionAction
-
Look up selected text in dictionary.
On iOS 16+, enabling this also shows a "Search Web" button — both items are bundled in the same system menu group and cannot be separated.
Not available on Android.
- translate → const DefaultSelectionAction
-
Translate selected text. iOS 15+ only, not available on Android.
- selectAll → const DefaultSelectionAction
-
Select all content in the current view. Android only, no effect on iOS.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serialized → String
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromString(
String value) → DefaultSelectionAction?
Constants
-
values
→ const List<
DefaultSelectionAction> - A constant List of the values in this enum, in order of their declaration.