Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ImgMsgSetParameters

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

Session type.

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.

from?: string

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

group?: string

Whether it's group chat.

height?: number

The image height.

isChatThread?: boolean

Whether the message is a thread message.

msgConfig?: { allowGroupAck: boolean }

Whether read receipts are required during a group session.

Type declaration

  • allowGroupAck: boolean
roomType?: boolean
deprecated

Whether the session type is chat room.

to: string

The recipient.

url?: string

The file URL. If the file is uploaded, you can directly use the URL.

width?: number

The image width.

Methods

  • fail(): void
  • The callback for a message sending failure.

    Returns void

  • 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