Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ChatGroupFileStatusCallback

export class type

Hierarchy

  • ChatGroupFileStatusCallback

Index

Methods

  • onError(groupId: string, filePath: string, error: ChatError): void
  • Occurs when there is an error during the upload or download of a shared file.

    Parameters

    • groupId: string

      The group ID.

    • filePath: string

      The path of the shared file.

    • error: ChatError

      A description of the error. See ChatError.

    Returns void

  • onProgress(groupId: string, filePath: string, progress: number): void
  • Occurs when a shared file is being uploaded or downloaded.

    Parameters

    • groupId: string

      The group ID.

    • filePath: string

      The path of the shared file.

    • progress: number

      The value of the download or upload progress. The value range is 0-100 in percentage.

    Returns void

  • onSuccess(groupId: string, filePath: string): void
  • Occurs when the message is sent.

    Parameters

    • groupId: string

      The group ID.

    • filePath: string

      The path of the shared file.

    Returns void

Generated using TypeDoc