Class DownloadDelegate

java.lang.Object
com.cbe.delegate.DownloadDelegate

public class DownloadDelegate extends Object
Delegate class for the asynchronous version of method:

  • cbe::Object::download(const std::string&, DownloadDelegatePtr)
  • cbe::Object::downloadStream(const std::string&,cbe::Stream,DownloadDelegatePtr)
  • Constructor Details

    • DownloadDelegate

      public DownloadDelegate(long cPtr, boolean cMemoryOwn)
    • DownloadDelegate

      public DownloadDelegate()
  • Method Details

    • getCPtr

      public static long getCPtr(DownloadDelegate obj)
    • swigSetCMemOwn

      public void swigSetCMemOwn(boolean own)
    • finalize

      public void finalize()
      Overrides:
      finalize in class Object
    • delete

      public void delete()
    • swigDirectorDisconnect

      public void swigDirectorDisconnect()
    • swigReleaseOwnership

      public void swigReleaseOwnership()
    • swigTakeOwnership

      public void swigTakeOwnership()
    • onDownloadSuccess

      public void onDownloadSuccess(Object object, String path)
      Called upon successful Download.
      Parameters:
      object - Instance of object that is being Downloaded.
      path - Path of object to be downloaded.
    • onDownloadError

      public void onDownloadError(TransferError transferError, Context context)
      Called if an error is encountered.
    • onChunkReceived

      public void onChunkReceived(Object object, long received, long total)
      Called when a chunk of data has been received.
      Parameters:
      object - Object associated with current
      download.
      received - Size, in number of bytes, of the received chunk.
      total - Total number of bytes received so far.