語言

BluetoothDeviceFilter.Builder.SetAddress(String) 方法

定義

設定裝置必須精確匹配的 MAC 位址。

[Android.Runtime.Register("setAddress", "(Ljava/lang/String;)Landroid/companion/BluetoothDeviceFilter$Builder;", "", ApiSince=26)]
public Android.Companion.BluetoothDeviceFilter.Builder SetAddress(string? address);
[<Android.Runtime.Register("setAddress", "(Ljava/lang/String;)Landroid/companion/BluetoothDeviceFilter$Builder;", "", ApiSince=26)>]
member this.SetAddress : string -> Android.Companion.BluetoothDeviceFilter.Builder

參數

address
String

若設定為 MAC 位址,只有與該 MAC 位址完全相符的裝置才能通過篩選。 這個值可能是 Null。

傳回

這位建築商,並標示了地址。

屬性

備註

Android 參考資料。android.companion.BluetoothDeviceFilter.Builder.setAddress

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於