语言

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

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

适用于