onDownloadProgressUpdate

Requires:
P2PKit≥1.0.0@ray-js/ray≥1.3.15
Platforms:
iOSAndroid
import { p2p } from '@ray-js/ray';

const { onDownloadProgressUpdate } = p2p;

// Promise usage
try {
  const res = await onDownloadProgressUpdate({ ...params });
  console.log(res);
} catch (err) {
  console.log(err.errorMsg);
}

Method signature
onDownloadProgressUpdate(listener: )
Minimum SDK versions
iOSThingSmartP2PKitBizBundle
≥ 5.2.0
Androidcom.thingclips.smart:thingsmart-bizbundle-p2pkit
≥ 5.2.0

Description

Single-file download progress event

Parameters

ParameterTypeRequiredDescription
(params: ) => voidYes

Return Value

None

Examples

import { p2p } from '@ray-js/ray'

p2p.onDownloadProgressUpdate(e => {
  console.log(e);
});