Sdílet prostřednictvím


BluetoothAdapter.StopLeScan(BluetoothAdapter+ILeScanCallback) Method

Definition

Caution

deprecated

Stops an ongoing Bluetooth LE device scan.

[Android.Runtime.Register("stopLeScan", "(Landroid/bluetooth/BluetoothAdapter$LeScanCallback;)V", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_SCAN")]
[System.Obsolete("deprecated")]
public void StopLeScan (Android.Bluetooth.BluetoothAdapter.ILeScanCallback? callback);
[<Android.Runtime.Register("stopLeScan", "(Landroid/bluetooth/BluetoothAdapter$LeScanCallback;)V", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_SCAN")>]
[<System.Obsolete("deprecated")>]
member this.StopLeScan : Android.Bluetooth.BluetoothAdapter.ILeScanCallback -> unit

Parameters

callback
BluetoothAdapter.ILeScanCallback

used to identify which scan to stop must be the same handle used to start the scan

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothAdapter.stopLeScan(android.bluetooth.LeScanCallback).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to