FetchMessagesCallback

Defines a callback for fetching messages.

Defines a callback for fetching messages with the result containing a list of messages, a boolean indicating if there are more messages to load, and an optional exception if an error occurred.

Syntax:typealias FetchMessagesCallback = (messages: List<InAppMessage>, hasMoreData: Boolean, exception: WebexConnectException?) -> Unit

Parameters

ParametersTypeDescription
messagesListThe list of fetched in-app messages.
hasMoreDataBooleanFlag indicating whether there are more messages to be fetched beyond the limit.
exceptionWebexConnectExceptionOptional exception returned in case of error.