Common Methods
This section contains some most commonly used methods of Android UI SDK.
Launch 1-to-1 Conversation
Allows launching 1-to-1 conversation with a user.
User user = new User();
user.setDisplayName(displayName); // Displays the target user's name.
user.setId(userId); // The unique ID of the target user.
user.setProfileColor();
user.setProfileImageUrl(profileImage); // The URL of user's profile image.
ConversationUtils.openOneToOneConversation(context, user);
Process Push notification
Allows showcasing the push notification for the messages received.
ChannelizeUI channelizeUI = ChannelizeUI.getInstance();
channelizeUI.processPushNotification(remoteMessage); // RemoteMessage received in Firebase Service.
Clear Push notification
Allows clearing the push notifications.
ChannelizeUI channelizeUI = ChannelizeUI.getInstance();
channelizeUI.clearPushNotification();
Update Push notification
Allows updating the status of push notifications when a message is read by the user.
ChannelizeUI channelizeUI = ChannelizeUI.getInstance();
channelizeUI.onConversationOpen(context, conversationId); // The unique ID of the conversation in which the message is received.