/ SDKs / Android
SDKs
Chat SDKs Android v4
Chat SDKs Android
Chat SDKs
Android
Version 4

Retrieve a scheduled message

Copy link

You can retrieve a specific scheduled message by passing ScheduledMessageRetrievalParams as an argument to the getScheduledMessage() method.

KotlinKTX
val params = ScheduledMessageRetrievalParams(
    channelUrl = CHANNEL_URL,
    scheduledMessageId = scheduledMessageId
)

// Retrieves a scheduled message.
BaseMessage.getScheduledMessage(params) { scheduledMessage, e ->
    if (e != null) {
        // Handle error.
    }

    // The scheduled message has been successfully retrieved.
}

ScheduledMessageRetrievalParams

Copy link
Parameter nameTypeDescription

channelUrl

string

Specifies the URL of the channel.

scheduledMessageId

long

Specifies the ID of the scheduled message.