Chat / Flutter
Current version: v3
Chat Flutter v3
Chat Flutter
Chat
Flutter
Home
/
Chat
/
Flutter
/
Message

Retrieve the total number of scheduled messages

Use the getTotalScheduledMessageCount() method to retrieve the total number of scheduled messages a user has. The properties of TotalScheduledMessageCountParams are optional to set as a filter. If not set, the number of all scheduled messages that a user has will be retrieved.

// Retrieve the total number of scheduled messages.
final param = TotalScheduledMessageCountParams()

// This method is called from the SendbirdSdk class.
// Count contains the number of scheduled messages.
final totalCount = await sdk.getTotalScheduledMessageCount(params: param); 

TotalScheduledMessageCountParams

Parameter nameTypeDescription

channelUrl

String

Specifies a target channel to query the scheduled messages from. If null, it retrieves scheduled messages from all channels. (Default: null)

statuses

List

Specifies list of scheduled message status where scheduled messages with only given status are retrieved. (Default: null)

messageType

MessageTypeFilter

Specifies the message type to filter the messages with the corresponding type. Acceptable values are all, user, file, and admin. (Default: all)