Interface DownloadMediaMessageHandler

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit onSuccess(Message message) Called when the download succeeds.
      abstract Unit onProgress(Message message, Integer progress) Called to report download progress.
      abstract Unit onError(Message message, NCError error) Called when the download fails.
      abstract Unit onCanceled(Message message) Called when the download is cancelled.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onSuccess

         abstract Unit onSuccess(Message message)

        Called when the download succeeds.

        Parameters:
        message - The message object after download completion
      • onProgress

         abstract Unit onProgress(Message message, Integer progress)

        Called to report download progress.

        Parameters:
        message - The message being downloaded
        progress - Download progress (0-100)
      • onError

         abstract Unit onError(Message message, NCError error)

        Called when the download fails.

        Parameters:
        message - The message that failed to download
        error - Error info
      • onCanceled

         abstract Unit onCanceled(Message message)

        Called when the download is cancelled.

        Parameters:
        message - The message whose download was cancelled