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。

属性

注解

适用于 . 的 android.bluetooth.le.BluetoothLeScanner.stopScan(android.app.PendingIntent)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

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

回拨

属性

注解

适用于 . 的 android.bluetooth.le.BluetoothLeScanner.stopScan(android.bluetooth.le.ScanCallback)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于