語言

ScanSettings.Builder.SetMatchMode(BluetoothScanMatchMode) 方法

定義

設定藍牙 LE 掃描濾波器的匹配模式,硬體匹配。

[Android.Runtime.Register("setMatchMode", "(I)Landroid/bluetooth/le/ScanSettings$Builder;", "", ApiSince=23)]
public Android.Bluetooth.LE.ScanSettings.Builder? SetMatchMode(Android.Bluetooth.LE.BluetoothScanMatchMode matchMode);
[<Android.Runtime.Register("setMatchMode", "(I)Landroid/bluetooth/le/ScanSettings$Builder;", "", ApiSince=23)>]
member this.SetMatchMode : Android.Bluetooth.LE.BluetoothScanMatchMode -> Android.Bluetooth.LE.ScanSettings.Builder

參數

matchMode
BluetoothScanMatchMode

比賽模式可以是ScanSettings.MATCH_MODE_AGGRESSIVE或ScanSettings.MATCH_MODE_STICKY

傳回

屬性

備註

設定藍牙 LE 掃描濾波器的匹配模式,硬體匹配。

Android 參考資料。android.bluetooth.le.ScanSettings.Builder.setMatchMode

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

適用於