Chat / Android
Chat Android v4
Chat Android
Chat
Android
Home
/
Chat
/
Android
/
Message
This is the new Docs for Chat SDK v4 for Android. To see the previous Docs, click here.

Cancel a scheduled message

Use the cancelScheduledMessage() method to cancel a message that a user has scheduled to send at a later time.

// Cancels a scheduled message.
groupChannel.cancelScheduledMessage(scheduledMessageId) { e ->
    if (e != null) {
        // Handle error.
    }
    // A scheduled message has been successfully canceled.
}