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.

Use our GleapDelegate to get notified on certain state changes of the Gleap widget. This enables you to create an even deeper integration with Gleap.
Gleap.getInstance().setNotificationUnreadCountUpdatedCallback(new NotificationUnreadCountUpdatedCallback() {
    @Override
    public void invoke(int count) {
        // Notification count updated.
    }
});

Gleap.getInstance().setWidgetOpenedCallback(new WidgetOpenedCallback() {
    @Override
    public void invoke() {
      // called when the widget is opened
    }
});

Gleap.getInstance().setWidgetClosedCallback(new WidgetClosedCallback() {
    @Override
    public void invoke() {
       // called when the widget is closed
    }
});

Gleap.getInstance().setInitializedCallback(new InitializedCallback() {
    @Override
    public void initialized() {
        // called when Gleap is successfully initialized
    }
});

Gleap.getInstance().setConfigLoadedCallback(new ConfigLoadedCallback() {
    @Override
    public void configLoaded(JSONObject jsonObject) {
        // called when the config is loaded from the server successfully
    }
});

Gleap.getInstance().setFeedbackSentCallback(new FeedbackSentCallback() {
    @Override
    public void invoke(String message) {
        // called when the feedback is sent successfully
    }
});

Gleap.getInstance().setFeedbackSendingFailedCallback(new FeedbackSendingFailedCallback() {
    @Override
    public void invoke(String message) {
      // called when the sending of the feedback failed
    }
});

Gleap.getInstance().registerCustomAction(new CustomActionCallback() {
    @Override
    public void invoke(String message) {
      // called when a custom action from the widget is issued
    }
});

Gleap.getInstance().setFeedbackFlowStartedCallback(new FeedbackFlowStartedCallback() {
    @Override
    public void invoke(String message) {
       // called when the form is started, not only the widget is opened
    }
});

Gleap.getInstance().InitializationDoneCallback(new InitializationDoneCallback() {
    @Override
    public void invoke() {
       // called when the sdk is initialize
});