Skip to content

Function: injectLockState()

@roomful/angular


@roomful/angular / injectLockState

injectLockState<TPresence>(key): Signal<LockState | null>

Defined in: angular/src/index.ts:1340

Subscribes to the resolved state of a single lock key (the lock-on-focus pattern: read holder to decide whether the local peer owns the key).

Must be called in an injection context.

TPresence extends PresenceData = PresenceData

The room presence shape.

string

The lock key to observe.

Signal<LockState | null>

The current lock state signal, resolving to null when free.