Flutter Callbacks Events for Tracking
Usage
EngineSDK(
channel: 'your_channel',
zone: 'your_zone',
experience: 'search',
bearerToken: '{your_token}',
onInitialize: (event) {
print('SDK initialized at ${event.timestamp}');
},
onCreate: (event) {
print('Lead created: ${event.leadUuid}');
},
onSubmit: (event) {
print('Lead submitted: ${event.leadUuid}');
},
onOfferClick: (event) {
print('Offer clicked: ${event.offerUuid}');
print('Lender: ${event.financialInstitutionName}');
print('APR: ${event.apr}');
},
onExit: (event) {
print('User exited at ${event.timestamp}');
// Navigate the user back or perform cleanup
},
// ...other callbacks
)Available Events & Properties
Callback
Event Type
Trigger
onInitialize
Field
Type
Description
onCreate
Field
Type
Description
onUpdate
Field
Type
Description
onNavigate
Field
Type
Description
onSubmit
Field
Type
Description
onRateTableRender
Field
Type
Description
onOfferClick
Field
Type
Description
onErrorPageView
Field
Type
Description
onErrorPageRetry
Field
Type
Description
onExit
Field
Type
Description
onEmbedError
Field
Type
Description
onEmbedErrorRetry
Field
Type
Description
Last updated
Was this helpful?