onEvent callback on <LayerProvider>’s eventCallbacks prop to power analytics, custom logging, or to react to user activity in your own application.
onEvent callback fires when users interact with embedded Layer components. Each event includes a type, version, event-specific payload, and metadata.
Event Structure
LayerEventType value, LayerEventComponent value, and LayerEvent type are exported from @layerfi/components for TypeScript users. LayerEvent is a discriminated union, so checking event.type narrows event.payload to the payload for that event.
Supported Events
All events listed below currently useversion: 1.
Tasks Events
Tasks Events
Transactions Events
Transactions Events
Reports Events
Reports Events