onBeforeContextMenu

open fun onBeforeContextMenu(browser: CefBrowser, frame: CefFrame, params: CefContextMenuParams, model: CefMenuModel)

Called before a context menu is displayed.

Parameters

browser

The browser generating the event.

frame

The frame generating the event. Instance only valid within the scope of this method.

params

Provides information about the context menu state. Instance only valid within the scope of this method.

model

Can be cleared to show no context menu or modified to show a custom menu. Instance only valid within the scope of this method.