Interface MediaTransferHandler

Interface for managing the upload or download of a file or image.

Hierarchy

  • MediaTransferHandler

Properties

cancelSignal?: AbortSignal

Whether the upload or download task is cancelled.

onOperationProgress?: ((event: MediaOperationProgress) => void)

Type declaration

    • (event: MediaOperationProgress): void
    • Reports the progress of the upload or download task once every second. This callback is triggered when the createMediaMessageByUploading method or the downloadMedia method is called. The triggering frequency is once every second. If the upload or download task pauses, this callback also pauses until the task continues. When the upload or download task is complete, the SDK does not save the callback value, so you need to save the value yourself.

      Parameters

      Returns void

Generated using TypeDoc