@not3/sdk
    Preparing search index...

    Class FileDownload

    The FileDownload class is a helper to download and decrypt files from the server.

    Index

    Constructors

    Methods

    • Get the total amount of chunks in the file.

      Returns number

      The total amount of chunks

    • Prepare the download process.

      Returns Promise<void>

      A promise that resolves when the download is prepared

    • Start the download process.

      Parameters

      • setBytes: SetBytesFn

        The function to get bytes from the file

      Returns Promise<void>

      A promise that resolves when the download is complete