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

Set Received-Reply Handler

API reference for the Luciq received-reply handler. Register a callback that fires when a new reply is received from your support team.

Use this handler to run specific code each time a new message is received by the SDK.

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 when default chat notifications are disabled, for example.

Replies.didReceiveReplyHandler = {
    // Notify users about new message.
}
LCQReplies.didReceiveReplyHandler = ^{
    // Notify users about new message.
};
Replies.setOnNewReplyReceivedCallback(new Runnable() {
	//Your code goes here.
});
Replies.setOnNewReplyReceivedCallback(new Runnable() {
  @Override
  public void run() {
    //Show an alert to notify users about a new message.
  }
});
Replies.setOnNewReplyReceivedHandler(function () {
    //Create custom alert
});
Replies.setOnNewReplyReceivedCallback(Function function);

Last updated