offDownloadTotalProgressUpdate

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

const { offDownloadTotalProgressUpdate } = p2p;

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

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

Description

Total download progress event

Parameters

ParameterTypeRequiredDescription
(params: ) => voidYes

Return Value

None

Examples

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

const listener = function (res) { console.log(res) }
p2p.onDownloadTotalProgressUpdate(listener)
p2p.offDownloadTotalProgressUpdate(listener)