Skip to content

spatial-monorepo


spatial-monorepo / core/src / useRTLSWorker

Function: useRTLSWorker()

useRTLSWorker(adapterSource, opts?): UseRTLSResult

Defined in: packages/core/src/hooks/useRTLSWorker.ts:166

Worker-aware RTLS hook.

Parameters

adapterSource

RTLSAdapterSource

A pre-constructed RTLSAdapter instance, or a zero-arg factory (() => RTLSAdapter) that produces one. Only resolved for the active (main-thread) path — never in Worker mode. Prefer the factory form whenever Worker mode may be enabled.

opts?

UseRTLSWorkerOptions

Options. Include opts.workerConfig for Worker mode (rtls=true).

Returns

UseRTLSResult

Released under commercial licensing.