SelectionHookFlutterBindings class
Bindings for src/bridge/c_api.h.
Regenerate bindings with dart run ffigen --config ffigen.yaml.
Constructors
- SelectionHookFlutterBindings(DynamicLibrary dynamicLibrary)
-
The symbols are looked up in
dynamicLibrary. -
SelectionHookFlutterBindings.fromLookup(Pointer<
T> lookup<T extends NativeType>(String symbolName) ) -
The symbols are looked up with
lookup.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sh_create(
) → Pointer< SelectionHook> - Create a new SelectionHook instance.
-
sh_destroy(
Pointer< SelectionHook> hook) → void - Destroy a SelectionHook instance.
-
sh_disable_mouse_move(
Pointer< SelectionHook> hook) → int - Disable mouse-move events.
-
sh_enable_mouse_move(
Pointer< SelectionHook> hook) → int - Enable mouse-move events.
-
sh_free_selection_data(
Pointer< SelectionHook> hook, Pointer<SHSelectionData> data) → void - Free a SHSelectionData previously returned by sh_get_current_selection.
-
sh_get_current_selection(
Pointer< SelectionHook> hook) → Pointer<SHSelectionData> - Get the current text selection synchronously.
-
sh_is_running(
Pointer< SelectionHook> hook) → int - Check if the hook is currently running.
-
sh_last_error(
Pointer< SelectionHook> hook) → Pointer<Char> - Get the last error description for this hook instance.
-
sh_last_global_error(
) → Pointer< Char> - Get the last global error description (for constructor failures).
-
sh_mac_is_process_trusted(
Pointer< SelectionHook> hook) → int - Check if process is trusted for accessibility (macOS only).
-
sh_mac_request_process_trust(
Pointer< SelectionHook> hook) → int - Try to request accessibility permissions (macOS only, may show dialog).
-
sh_read_clipboard(
Pointer< SelectionHook> hook) → Pointer<Char> - Read text from the system clipboard.
-
sh_set_config(
Pointer< SelectionHook> hook, Pointer<SHSelectionConfig> config) → int - Apply a full configuration to the hook.
-
sh_set_keyboard_callback(
Pointer< SelectionHook> hook, SHKeyboardCallback callback) → int - Register a callback for keyboard events.
-
sh_set_mouse_callback(
Pointer< SelectionHook> hook, SHMouseCallback callback) → int - Register a callback for mouse/wheel events.
-
sh_set_passive_mode(
Pointer< SelectionHook> hook, int passive) → int - Enable or disable passive mode.
-
sh_set_selection_callback(
Pointer< SelectionHook> hook, SHSelectionCallback callback) → int - Register the text selection callback.
-
sh_start(
Pointer< SelectionHook> hook) → int - Start monitoring text selections.
-
sh_stop(
Pointer< SelectionHook> hook) → int - Stop monitoring text selections.
-
sh_write_clipboard(
Pointer< SelectionHook> hook, Pointer<Char> text) → int - Write text to the system clipboard.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited