Realm~App.Sync.AsyncOpenTask

cancel()

Cancels any current running download. If multiple AsyncOpenTasks are all in the progress for the same Realm, then canceling one of them will cancel all of them.

progress(callback)

Register to receive progress notifications while the download is in progress.

Parameters:
  • callback
    • Type: callback(transferred, transferable)
    • called with the following arguments:

      • transferred - the current number of bytes already transferred
      • transferable - the total number of transferable bytes (the number of bytes already transferred plus the number of bytes pending transfer)