语言

BluetoothAdapter.GetRemoteLeDevice(String, Int32) 方法

定义

获取给定蓝牙硬件地址和 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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于