resetFactory(params: Object)
Requires:
DeviceKit≥1.3.0@ray-js/ray≥0.6.23
Platforms:
iOSAndroid
Description
Reset the device to factory settings. Device data will be cleared and it will enter an awaiting provisioning state.
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
deviceId | string | Yes | deviceId device ID Supports fetching other devices’ information across panels; the current panel can pass the current device’s ID to retrieve it |
| No | dps | ||
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