BluetoothAdapter.GetRemoteLeDevice(String, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取给定蓝牙硬件地址和 addressType 的 BluetoothDevice 对象。
[Android.Runtime.Register("getRemoteLeDevice", "(Ljava/lang/String;I)Landroid/bluetooth/BluetoothDevice;", "", ApiSince=33)]
public Android.Bluetooth.BluetoothDevice GetRemoteLeDevice(string address, int addressType);
[<Android.Runtime.Register("getRemoteLeDevice", "(Ljava/lang/String;I)Landroid/bluetooth/BluetoothDevice;", "", ApiSince=33)>]
member this.GetRemoteLeDevice : string * int -> Android.Bluetooth.BluetoothDevice
参数
- address
- String
有效的蓝牙 MAC 地址。 此值不能为 null。
- addressType
- Int32
蓝牙地址类型。 值为下列值之一:BluetoothDevice.ADDRESS_TYPE_PUBLIC;BluetoothDevice.ADDRESS_TYPE_RANDOM;BluetoothDevice.ADDRESS_TYPE_ANONYMOUS;BluetoothDevice.ADDRESS_TYPE_UNKNOWN
返回
- 特性
注解
获取给定蓝牙硬件地址和 addressType 的 BluetoothDevice 对象。
Android 参考。android.bluetooth.BluetoothAdapter.getRemoteLeDevice
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。