Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CreateAudioMsgParameters

Index

Properties

body?: { filename: string; type: string; url: string }

The message body.

Type declaration

  • filename: string

    The file name.

  • type: string

    The file type.

  • url: string

    The file URL.

chatType: ChatType

The session type.

deliverOnlineOnly?: boolean

Whether the message is delivered only when the recipient(s) is/are online:

  • true: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is discarded.
  • (Default) false: The message is delivered when the recipient(s) is/are online. If the recipient(s) is/are offline, the message will not be delivered to them until they get online.
ext?: {}

The message extension.

Type declaration

  • [key: string]: any
file: FileObj

The file object.

fileInputId?: string

The input ID of the file to be uploaded.

file_length?: number

The audio file length.

filename: string

The file name.

from?: string

The sender, which can only be the current user and can not be changed.

isChatThread?: boolean

Whether the message is a thread message.

length?: number

The audio duration.

msgConfig?: { allowGroupAck: boolean }

Whether read receipts are required during a group session.

Type declaration

  • allowGroupAck: boolean
priority?: MessagePriority

Message priority.

receiverList?: string[]

The list of message recipients.

to: string

The recipient.

type: "audio"

The message type.

Methods

  • onFileUploadComplete(data: any): void
  • The callback of file upload completion.

    Parameters

    • data: any

    Returns void

  • onFileUploadError(error: any): void
  • The callback of a file upload error.

    Parameters

    • error: any

    Returns void

  • onFileUploadProgress(data: any): void
  • The callback of the file upload progress.

    Parameters

    • data: any

    Returns void

Generated using TypeDoc