sh_start method
Start monitoring text selections.
Initializes platform-specific hooks and begins monitoring. A callback must have been registered via sh_set_selection_callback before calling this function.
On macOS, this will call AXIsProcessTrustedWithOptions with prompt before any AXAPI calls. The user must grant accessibility permissions.
@param hook Valid SelectionHook instance. @return SH_OK (0) on success, negative error code on failure. @thread_safety Safe from any thread. The callback will be invoked from native threads.
Implementation
int sh_start(ffi.Pointer<SelectionHook> hook) {
return _sh_start(hook);
}