Skip to content

Latest commit

 

History

History
74 lines (62 loc) · 1.53 KB

introduction.mdx

File metadata and controls

74 lines (62 loc) · 1.53 KB
title description sidebar_position tags
Introduction
Learn the basics of integrating Dyte's chat functionality into your Android application – a step towards immersive real-time communication.
1
android-core
chat

Introducing chat

The meeting chat object is stored in meeting.chat, which has methods for sending and receiving messages. There are 3 types of messages that can be sent in chat - text messages, images, and files.

The meeting.chat.messages array contains all the messages that have been sent in the chat. This is an array of objects, where each object is of type DyteChatMessage.

We support three types of chat messages, they are as follows

  • Text Message
class DyteTextMessage(
  userId: String,
  displayName: String,
  read: Boolean,
  pluginId: String?,
  val message: String,
  time: String,
  createdAtMillis: Long,
  targetUserIds: List<String>?,
)
  • Image Message
class DyteImageMessage(
  userId: String,
  displayName: String,
  read: Boolean,
  pluginId: String?,
  val link: String,
  time: String,
  createdAtMillis: Long,
  targetUserIds: List<String>?,
)
  • File Message
class DyteFileMessage(
  userId: String,
  displayName: String,
  read: Boolean,
  pluginId: String?,
  val name: String,
  time: String,
  createdAtMillis: Long,
  val link: String,
  val size: Long,
  targetUserIds: List<String>?,
)

All above objects are of type DyteChatMessage along with their own class variables.

<title>Android Core Introducing chat</title>