Skip to main content

useRuntimeEvent

No behavioral description is attached to this declaration. The public signature, parameter and return types, and source location below document its published contract.

Kind: React hook
Package: @ovok/native

Import​

import { useRuntimeEvent } from '@ovok/native/bt-management';

TypeScript signatures​

<K extends RuntimeEvent>(event: K, callback: (value: RuntimeEventMap[K]) => void): void
ParameterTypeDetails
eventK—
callback(value: RuntimeEventMap[K]) => void—

Returns: void.

Learn the workflow​

Continue with Bluetooth for the workflow context and examples.

Source​

View the declaration in the SDK source.