hasGetDevices static method

bool hasGetDevices()

Check to see if the getDevices call is available in the current browser.

See: getDevices.

Implementation

static bool hasGetDevices() {
  if (!isBluetoothAPISupported()) {
    return false;
  }
  final bluetooth = _JSUtil.getProperty(_getNavigator(), "bluetooth");
  return _JSUtil.hasProperty(bluetooth, "getDevices");
}