This callback is used by the API to notify upload or download progress.
- obj
- The receiver KiiObject.
- progress
- This is a value between zero and one; 0 means no progess, 1 means download/upload complete.
It is not guaranteed that this callback will be called from the main thread.
This callback will be called at least once.
Please refer to the remarks section of each API to know how to handle a response.
The value of progress can differ from the expected value in certain conditions.
Platform | Upload | Download |
---|---|---|
Android | progress is always 1 | OK (may depend on the device) |
iOS | OK | OK |
WebPlayer | progress is always 0 | OK |