getBoundDeviceIdList(params: Object)

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

const { getBoundDeviceIdList } = outdoor;

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

Description

Get the set of bound device IDs

Parameters

PropertyTypeRequiredDescription
complete() => voidNoCompletion callback (executed on both success and failure)
success(params: Object) => voidNoCallback on successful API call
fail(params: Object) => voidNoFailure callback
success callback parameters
PropertyTypeDescription
devIdListstring[]Return the set of bound device IDs
fail callback parameters
PropertyTypeDescription
errorMsgstringError message
errorCodestring | numberError code
Error extension

Return Value

None

Examples

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

outdoor.getBoundDeviceIdList({
  success: data => {
    console.log(data);
  },
  fail: error => {
    console.error(error);
  },
});