語言

BluetoothLeScanner.StopScan 方法

定義

多載

名稱 Description
StopScan(PendingIntent)

停止正在進行的藍牙 LE 掃描,並開始使用 PendingIntent。

StopScan(ScanCallback)

停止正在進行的藍牙 LE 掃描。

StopScan(PendingIntent)

停止正在進行的藍牙 LE 掃描,並開始使用 PendingIntent。

[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。

屬性

備註

停止正在進行的藍牙 LE 掃描,並開始使用 PendingIntent。 建立 PendingIntent 參數時,請勿使用 FLAG_CANCEL_CURRENT 標誌。 否則,停止掃描可能沒有效果。

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

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

適用於

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)。

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

適用於