语言

BluetoothLeScanner.StopScan 方法

定义

重载

名称 说明
StopScan(PendingIntent)

停止使用 PendingIntent 启动正在进行的蓝牙 LE 扫描。

StopScan(ScanCallback)

停止正在进行的蓝牙 LE 扫描。

StopScan(PendingIntent)

停止使用 PendingIntent 启动正在进行的蓝牙 LE 扫描。

[Android.Runtime.Register("stopScan", "(Landroid/app/PendingIntent;)V", "", ApiSince=26)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_SCAN")]
public void StopScan(Android.App.PendingIntent? callbackIntent);
[<Android.Runtime.Register("stopScan", "(Landroid/app/PendingIntent;)V", "", ApiSince=26)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_SCAN")>]
member this.StopScan : Android.App.PendingIntent -> unit

参数

callbackIntent
PendingIntent

用于启动扫描的 PendingIntent。

特性

注解

停止使用 PendingIntent 启动正在进行的蓝牙 LE 扫描。 创建 PendingIntent 参数时,请不要使用FLAG_CANCEL_CURRENT标志。 否则,停止扫描可能不起作用。

Java文档android.bluetooth.le.BluetoothLeScanner.stopScan(android.app.PendingIntent)。

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

适用于

StopScan(ScanCallback)

停止正在进行的蓝牙 LE 扫描。

[Android.Runtime.Register("stopScan", "(Landroid/bluetooth/le/ScanCallback;)V", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_SCAN")]
public void StopScan(Android.Bluetooth.LE.ScanCallback? callback);
[<Android.Runtime.Register("stopScan", "(Landroid/bluetooth/le/ScanCallback;)V", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_SCAN")>]
member this.StopScan : Android.Bluetooth.LE.ScanCallback -> unit

参数

callback
ScanCallback

回叫

特性

注解

停止正在进行的蓝牙 LE 扫描。

Java文档android.bluetooth.le.BluetoothLeScanner.stopScan(android.bluetooth.le.ScanCallback)。

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

适用于