Function: injectPointer()
@roomful/angular / injectPointer
Function: injectPointer()
Section titled “Function: 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.
Type Parameters
Section titled “Type Parameters”TPresence
Section titled “TPresence”TPresence extends PresenceData = PresenceData
The room presence shape.
Parameters
Section titled “Parameters”options?
Section titled “options?”PointerOptions
Optional pointer tracking configuration.
Returns
Section titled “Returns”The remote beams signal plus mounting and activate/deactivate/render controls.