Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.gleap.io/llms.txt

Use this file to discover all available pages before exploring further.

Set callbacks to different actions to get notified on certain state changes of the Gleap widget. This enables you to create an even deeper integration with Gleap.
Gleap.registerListener(
    actionName: 'feedbackFlowStarted',
    callbackHandler: (dynamic flow) {
        // Do something with the flow
    },
);
Gleap.registerListener(
    actionName: 'initialized',
    callbackHandler: (_) {
        // Do something when Gleap is initialized
    },
);
Gleap.registerListener(
    actionName: 'notificationCountUpdated',
    callbackHandler: (dynamic count) {
        // Do something with the count
    },
);
Gleap.registerListener(
    actionName: 'feedbackSent',
    callbackHandler: (_) {
        // Do something
    },
);
Gleap.registerListener(
    actionName: 'feedbackSendingFailed',
    callbackHandler: (_) {
        // Do something
    },
);
Gleap.registerListener(
    actionName: 'widgetOpened',
    callbackHandler: (_) {
        // Do something
    },
);
Gleap.registerListener(
    actionName: 'widgetClosed',
    callbackHandler: (_) {
        // Do something
    },
);