For the complete documentation index, see llms.txt. This page is also available as Markdown.

moduleLoaded

The widget has finished loading.

Details

It is emitted when the internal engine has finished its Initialization and the widget is ready.

Event: moduleLoaded

Type: FacephiSelphiWidgetCustomEvent<WidgetLoadedEvent> | CustomEvent<WidgetLoadedEvent>

Syntax

selphi.addEventListener('moduleLoaded', onModuleLoaded);

Received object

The payload is of type SelphiWidgetLoadedDetail and is in event.detail.detail:

  • eventType (string): Type of emitted event.

  • camerasDeviceInfo (MediaTrackSettings[] | string): Information about the device's cameras.

  • deviceType (string): Type of device running.

  • resolutionHeight (number): Initial height resolution.

  • resolutionWidth (number): Initial width resolution.

  • widgetConfiguration (object): Effective configuration applied to the engine (e.g. Stabilization, Antispoof, CameraWidth).

  • widgetVersion (string): Version of the engine component.

Description

Allows hiding external loading screens or running logic when the widget is ready to interact.

Considerations

The payload is in event.detail.detail (see event format). widgetConfiguration reflects the final values after applying defaults and the wrapper props.


Example

Last updated