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

    Interface ChatGroupFileStatusCallback

    群组共享文件状态变化监听器。

    interface ChatGroupFileStatusCallback {
        onError(groupId: string, filePath: string, error: ChatError): void;
        onProgress?(groupId: string, filePath: string, progress: number): void;
        onSuccess(groupId: string, filePath: string): void;
    }
    Index

    Methods

    • 共享文件上传或下载错误回调。

      Parameters

      • groupId: string

        群组 ID。

      • filePath: string

        群组共享文件路径。

      • error: ChatError

        如果有方法调用的异常会在这里抛出,可以看到具体错误原因。参见 ChatError

      Returns void

    • 共享文件的上传或下载进度。

      Parameters

      • groupId: string

        群组 ID。

      • filePath: string

        文件路径。

      • progress: number

        进度值,取值范围为 0-100。

      Returns void

    • 消息发送成功回调。

      Parameters

      • groupId: string

        群组 ID。

      • filePath: string

        群组共享文件路径。

      Returns void