BluetoothLEScan.fromJSObject constructor
BluetoothLEScan.fromJSObject(
- Object _jsObject
Construct a new instance.
To get an instance use Bluetooth.requestLEScan.
Implementation
BluetoothLEScan.fromJSObject(this._jsObject) {
if (!_JSUtil.hasProperty(_jsObject, "filters")) {
throw UnsupportedError("JSObject does not have filters.");
}
if (!_JSUtil.hasProperty(_jsObject, "keepRepeatedDevices")) {
throw UnsupportedError("JSObject does not have keepRepeatedDevices.");
}
if (!_JSUtil.hasProperty(_jsObject, "acceptAllAdvertisements")) {
throw UnsupportedError("JSObject does not have acceptAllAdvertisements.");
}
if (!_JSUtil.hasProperty(_jsObject, "active")) {
throw UnsupportedError("JSObject does not have active.");
}
if (!_JSUtil.hasProperty(_jsObject, "stop")) {
throw UnsupportedError("JSObject does not have stop.");
}
}