class ContextMenuFeature
(source)
Feature for displaying a context menu after long-pressing web content.
This feature will subscribe to the currently selected Session and display the context menu based on Session.Observer.onLongPress events. Once the context menu is closed or the user selects an item from the context menu the related HitResult will be consumed.
ContextMenuFeature(: FragmentManager, : SessionManager, : List<ContextMenuCandidate>)
Feature for displaying a context menu after long-pressing web content. |
fun start(): Unit
Start observing the selected session and when needed show a context menu. |
|
fun stop(): Unit
Stop observing the selected session and do not show any context menus anymore. |