Skip to content

Function: injectPointer()

@roomful/angular


@roomful/angular / injectPointer

injectPointer<TPresence>(options?): InjectPointerResult

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

Subscribes to remote pointer beams and returns mounting and control 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 InjectPointerResult.mount.

TPresence extends PresenceData = PresenceData

The room presence shape.

PointerOptions

Optional pointer tracking configuration.

InjectPointerResult

The remote beams signal plus mounting and activate/deactivate/render controls.