DeviceHandle.Builder.SetBluetoothDevice(BluetoothDevice) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置与目标设备关联的 BluetoothDevice。
[Android.Runtime.Register("setBluetoothDevice", "(Landroid/bluetooth/BluetoothDevice;)Landroid/ranging/oob/DeviceHandle$Builder;", "", ApiSince=37)]
public Android.Ranging.Oob.DeviceHandle.Builder SetBluetoothDevice(Android.Bluetooth.BluetoothDevice bluetoothDevice);
[<Android.Runtime.Register("setBluetoothDevice", "(Landroid/bluetooth/BluetoothDevice;)Landroid/ranging/oob/DeviceHandle$Builder;", "", ApiSince=37)>]
member this.SetBluetoothDevice : Android.Bluetooth.BluetoothDevice -> Android.Ranging.Oob.DeviceHandle.Builder
参数
- bluetoothDevice
- BluetoothDevice
BluetoothDevice 此值不能为 null。
返回
同一 DeviceHandle.Builder 实例。 此值不能为 null。
- 属性
注解
设置与目标设备关联的 BluetoothDevice。 如果已设置,基础范围服务将使用蓝牙设备作为 BLE RSSI 和通道声音范围的目标。
Android 参考。android.ranging.oob.DeviceHandle.Builder.setBluetoothDevice
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。