Chat SDK for React Native 1.14.0
    Preparing search index...

    Class ChatImageMessageBody

    The image message body class.

    Hierarchy

    • _ChatFileMessageBody
      • ChatImageMessageBody
    Index

    Constructors

    • Parameters

      • params: {
            displayName: string;
            fileSize?: number;
            fileStatus?: number;
            height?: number;
            isGif?: boolean;
            lastModifyOperatorId?: string;
            lastModifyTime?: number;
            localPath: string;
            modifyCount?: number;
            remotePath?: string;
            secret?: string;
            sendOriginalImage?: boolean;
            thumbnailLocalPath?: string;
            thumbnailRemotePath?: string;
            thumbnailSecret?: string;
            thumbnailStatus?: number;
            width?: number;
        }

      Returns ChatImageMessageBody

    Properties

    displayName: string

    文件名称。

    fileSize: number

    文件大小,单位为字节。

    fileStatus: ChatDownloadStatus

    文件下载状态,详见 ChatDownloadStatus

    height: number

    图片高度,单位为像素。

    isGif?: boolean

    是否是 GIF 图片。

    • true: 是 GIF 图片。
    • (默认)false: 不是 GIF 图片。
    lastModifyOperatorId?: string

    消息最后修改人。

    lastModifyTime?: number

    最后修改时间戳。

    localPath: string = ''

    文件本地路径。

    modifyCount?: number

    修改次数。

    remotePath: string

    文件在服务器的路径。

    secret: string

    下载附件的 token。

    sendOriginalImage: boolean

    发送图片时是否发送原图。

    • true: 发送原图和缩略图。
    • (默认)false: 若图片小于 100 KB,发送原图和缩略图;若图片大于等于 100 KB, 发送压缩后的图片和压缩后图片的缩略图。
    thumbnailLocalPath: string

    缩略图的本地路径。

    thumbnailRemotePath: string

    缩略图在服务器的地址。

    thumbnailSecret: string

    下载缩略图需要的 token。

    thumbnailStatus: ChatDownloadStatus

    缩略图下载状态,详见 ChatDownloadStatus

    消息类型,详见 ChatMessageType

    width: number

    图片宽度,单位为像素。