Skip to content

Function: injectCursors()

@roomful/angular


@roomful/angular / injectCursors

injectCursors<TCursor, TPresence>(options?): InjectCursorsResult<TCursor>

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

Subscribes to cursor snapshots and returns mounting helpers.

Must be called in an injection context. Angular has no React-style callback ref, so mount the engine on an element from afterNextRender or ngAfterViewInit by calling InjectCursorsResult.mount.

TCursor extends CursorData = CursorData

The custom cursor payload shape.

TPresence extends PresenceData = PresenceData

The room presence shape.

CursorOptions

Optional cursor tracking configuration.

InjectCursorsResult<TCursor>

The cursor snapshot signal and mounting helpers.