P2PSDKInit
Requires:
P2PKit≥0.0.1@ray-js/ray≥1.3.15
Platforms:
iOSAndroid
Method signature
P2PSDKInit(params: )Minimum SDK versions
- iOS
ThingSmartP2PKitBizBundle - ≥ 5.2.0
- Android
com.thingclips.smart:thingsmart-bizbundle-p2pkit - ≥ 5.2.0
Description
P2P SDK init
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
userId | string | No | user id | — |
complete | () => void | No | Completion callback (executed on both success and failure) | — |
success | () => void | No | Callback on successful API call | — |
fail | (params: Object) => void | No | Failure callback | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None