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

Overview

Sendbird Chat SDK for Android provides expansive messaging features to enhance users' chat experience. Basic and foundational messaging features such as sending, copying, updating, and deleting a message make up the essential chat experience. You can also load as well as receive messages through channel event handlers. Features related to marking messages as read, counting the number of unread messages, adding extra data to a message, reporting a message, and local caching are available to support a wide range of user needs.


Message types

There are three types of messages in Sendbird Chat.

  • Text message: A text message sent by a user in a channel.

  • File message: A file message sent by a user in a channel.

  • Admin message: A message sent only by an admin through the Chat API or the Sendbird Dashboard.


Functionalities by topic

Users can interact with other users in a channel by sending, receiving, replying to messages, and more. The following is a list of functionalities that our Chat SDK provides.

Sending a message

FunctionalityDescriptionOpen channelGroup channel

Send a message

Sends a text or file message to a channel.

Send a critical alert message to iOS device users

Sends a critical alert notification to iOS devices even when Mute or Do Not Disturb feature is on.

Send an admin message

Sends a message from an admin to a channel on the Sendbird Dashboard or using the Chat Platform API.

Track file upload progress using a handler

Tracks the progress of a file upload.

Cancel an in-progress file upload

Cancels a file upload that hasn't been completed yet.

Share an encrypted file

Encrypts files and thumbnail images for secure access to users in a channel.

Spam flood protection

Customizes the number of messages a user can send to a channel per second.

Smart throttling

Customizes the number of messages displayed in a channel per second.

Receiving messages through event handler

FunctionalityDescriptionOpen channelGroup channel

Receive messages in a channel

Receives messages sent by other users in a channel through the channel event handler.

Using message threading

FunctionalityDescriptionOpen channelGroup channel

Create a message thread

Sends a reply to a specific message in a channel. This can create a message thread.

List replies in a message thread

Retrieves replies to a parent message.

Retrieving a message

FunctionalityDescriptionOpen channelGroup channel

Retrieve a message

Retrieves a specific message in a channel.

Retrieve the last message of a channel

Retrieves the last message in a channel.

Searching messages

FunctionalityDescriptionOpen channelGroup channel

Search messages by a keyword

Retrieves a list of messages that contain a search query or a specified keyword.

Managing a message

FunctionalityDescriptionOpen channelGroup channel

Copy a message

Copies a message in a channel and sends it to the same channel or another channel.

Update a message

Updates a text or file message in a channel. Users can only update their own messages. Operators can update any messages in the channel.

Delete a message

Deletes a text or file message in a channel. Users can only delete their own messages. Operators can delete any messages in the channel.

React to a message

Adds an emoji to a message.

Clear the chat history in a channel

Clears the chat history from the channel view of the current user. Messages aren't deleted from the Sendbird system's database and other users in the channel can still view all the messages in their own channel view.

Send typing indicators to other users

Indicates to other users in the channel that a user is typing up a message to the channel.

Display Open Graph tags in a message

Displays a URL link preview when a message contains a web page URL.

Generate thumbnails of a file message

Creates a thunmbnail of an image file.

Loading messages

FunctionalityDescriptionOpen channelGroup channel

Load previous messages

Retrieves a set number of previous messages in a channel.

Load messages by timestamp or message ID

Retrieves a set number of messages sent to the channel before or after a specified timestamp or message ID.

Listing changelogs

FunctionalityDescriptionOpen channelGroup channel

List changelogs of messages

Retrieves message changelogs by timestamp or token.

Marking messages as read

FunctionalityDescriptionOpen channelGroup channel

Mark messages as read

Marks messages in a channel as read when a user enters the channel or brings the opened channel view to the foreground.

Marking messages as delivered

FunctionalityDescriptionOpen channelGroup channel

Mark messages as delivered

Marks messages as delivered when a user who is online receives messages from the Sendbird server.

Mentioning other users in a message

FunctionalityDescriptionOpen channelGroup channel

Mention other users in a message

Includes other users in the channel in a message.

Retrieving unread count

FunctionalityDescriptionOpen channelGroup channel

Retrieve number of unread messages in a channel

Retrieves the number of messages in a channel a user hasn't read.

Retrieve number of unread messages in all channels

Retrieves the number of messages a user hasn't read in all channels they are in.

Retrieve number of channels with unread messages

Retrieves the number of channels where a user hasn't read one or more messages.

Retrieve number of members who haven’t received a message

Retrieves the number of users in a channel who have yet to receive a specific message.

Retrieve number of members who haven’t read a message

Retrieves the number of users in a channel who haven't read a specific message.

Retrieve number of unread items

Retrieves the number of messages a user hasn't read, unread messages a user is mentioned in, and invitations to group and Supergroup channels a user has received.

Categorizing messages

FunctionalityDescriptionOpen channelGroup channel

Categorize messages by custom type

Specifies a custom message type to search or filter messages by.

Adding extra data to a message

FunctionalityDescriptionOpen channelGroup channel

Add extra data to a message

Adds one or more key-value items to a message to add extra information.

Translating messages

FunctionalityDescriptionOpen channelGroup channel

Auto-translate messages

Translates messages into specified languages and sends to channel.

Translate messages on-demand

Translates messages according to user needs.

Translation engine

Sendbird’s message auto-translation and on-demand features are powered by Google Cloud Translation API's recognition engine. The recognition engine supports a wide variety of languages for the Neural Machine Translation (NMT) model.