BluetoothAdapter.GetRemoteLeDevice(String, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得一個 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 位址。 這個值不可能為零值。
- addressType
- Int32
藍牙地址類型。 價值屬於以下之一:BluetoothDevice.ADDRESS_TYPE_PUBLIC;BluetoothDevice.ADDRESS_TYPE_RANDOM;BluetoothDevice.ADDRESS_TYPE_ANONYMOUS;BluetoothDevice.ADDRESS_TYPE_UNKNOWN
傳回
- 屬性
備註
取得一個 BluetoothDevice 物件,針對指定的藍牙硬體位址和地址類型。
Android 參考資料。android.bluetooth.BluetoothAdapter.getRemoteLeDevice
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。