unbindDevice(params: Object)

Requires:
OutdoorKit≥1.0.1@ray-js/ray≥1.4.40
Platforms:
iOSAndroid
import { outdoor } from '@ray-js/ray';

const { unbindDevice } = outdoor;

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

Description

Remove sub-device

Parameters

PropertyTypeRequiredDescription
devIdstringYesSub-device ID
complete() => voidNoCompletion callback (executed on both success and failure)
NoCallback on successful API call
fail(params: Object) => voidNoFailure callback
fail callback parameters
PropertyTypeDescription
errorMsgstringError message
errorCodestring | numberError code
Error extension

Return Value

None

Examples

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

outdoor.unbindDevice({
  devId: "xx",
  success: data => {
    console.log(data);
  },
  fail: error => {
    console.error(error);
  },
});