sh_stop method
Stop monitoring text selections.
Unregisters platform hooks and blocks until no callback is in-flight. After sh_stop returns, it is safe to sh_destroy and/or close the NativeCallable.
@param hook Valid SelectionHook instance. @return SH_OK (0) on success, SH_ERR_NOT_RUNNING if not started. @thread_safety Safe from any thread. Blocks until in-flight callbacks complete.
Implementation
int sh_stop(ffi.Pointer<SelectionHook> hook) {
return _sh_stop(hook);
}