file_viewer_flutter_linux library
Linux CEF platform adapter used by File Viewer Flutter.
Most applications should depend on file_viewer_flutter and use its widget
and runtime. This library exposes the lower-level CEF controller, lifecycle
callbacks, JavaScript channels and input integration for platform adapters.
Classes
- InjectUserScripts
- Collection of scripts grouped by the native load event that executes them.
- JavascriptChannel
- A named channel for receiving messaged from JavaScript code running inside a web view.
- JavascriptMessage
- A message that was sent by JavaScript code running in a WebView.
- UserScript
- JavaScript source paired with the native load event that triggers it.
- WebView
- Displays the initialized texture and routes pointer, focus and text input.
- WebViewController
- Owns one native CEF browser and notifies when its view has initialized.
- WebviewEventsListener
- Optional callbacks for native browser navigation, loading and process events.
- WebviewManager
- Process-wide CEF manager, browser registry and native event dispatcher.
- WebViewState
- Widget state responsible for native CEF texture layout and input forwarding.
Enums
- ScriptInjectTime
- Native browser load stage at which a user script is executed.
Mixins
- WebeViewTextInput
- Connects a texture-backed browser to Flutter's delta-model text input.
Constants
- eventFlagAltDown → const int
- CEF modifier indicating Alt is pressed.
- eventFlagCapsLockOn → const int
- CEF modifier indicating Caps Lock is enabled.
- eventFlagCommandDown → const int
- CEF modifier indicating the platform Command key is pressed.
- eventFlagControlDown → const int
- CEF modifier indicating Control is pressed.
- eventFlagIsKeyPad → const int
- CEF flag identifying a numeric-keypad event.
- eventFlagIsLeft → const int
- CEF flag identifying the left variant of a modifier key.
- eventFlagIsRight → const int
- CEF flag identifying the right variant of a modifier key.
- eventFlagLeftMouseButton → const int
- CEF flag indicating the left mouse button is pressed.
- eventFlagMiddleMouseButton → const int
- CEF flag indicating the middle mouse button is pressed.
- eventFlagNone → const int
- CEF event with no modifiers or pressed mouse buttons.
- eventFlagNumLockOn → const int
- CEF modifier indicating Num Lock is enabled.
- eventFlagRightMouseButton → const int
- CEF flag indicating the right mouse button is pressed.
- eventFlagShiftDown → const int
- CEF modifier indicating Shift is pressed.
- keyEventChar → const int
- CEF character-input event type.
- keyEventKeyDown → const int
- CEF translated key-down event type.
- keyEventKeyUp → const int
- CEF key-release event type.
- keyEventRawKeyDown → const int
- CEF raw key-down event type.
Typedefs
- JavascriptMessageHandler = void Function(JavascriptMessage message)
- Callback type for handling messages sent from Javascript running in a web view.
- LoadStartCb = void Function(WebViewController controller, String url)
- Receives the controller and URL when native document loading begins.
- LoadStopCb = void Function(WebViewController controller, String url)
- Receives the controller and URL when native document loading completes.
- OnConsoleMessage = void Function(int level, String message, String source, int line)
- Receives CEF console severity, message, source and source-line number.
- TitleChangeCb = void Function(String title)
- Receives the current page title after CEF reports a title change.
- UrlChangeCb = void Function(String title)
- Receives the browser URL after navigation changes it.