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

In-App Chat Callbacks

Register a callback that fires whenever your Android app receives a new chat message, so you can show your own UI. Includes a memory leak warning.

Avoiding Memory Leaks

New Received Message

This block is executed each time a new message is received. This can be used to show your own UI when a new message is received.

Replies.setOnNewReplyReceivedCallback(new Runnable() {
  @Override
  public void run() {
    // Show an alert to notify users about a new message.
  }
});
Replies.setOnNewReplyReceivedCallback {
    // Show an alert to notify users about a new message.
}

Last updated