BluetoothLeScanner.StopScan Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| StopScan(PendingIntent) |
Arrête une analyse Bluetooth LE en cours démarrée à l’aide d’une instance PendingIntent. |
| StopScan(ScanCallback) |
Arrête une analyse Bluetooth LE en cours. |
StopScan(PendingIntent)
Arrête une analyse Bluetooth LE en cours démarrée à l’aide d’une instance 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
Paramètres
- callbackIntent
- PendingIntent
PendingIntent utilisé pour démarrer l’analyse.
- Attributs
Remarques
Arrête une analyse Bluetooth LE en cours démarrée à l’aide d’une instance PendingIntent. Lors de la création du paramètre PendingIntent, n’utilisez pas l’indicateur FLAG_CANCEL_CURRENT. Sinon, l’analyse d’arrêt peut ne pas avoir d’effet.
Java documentation pour android.bluetooth.le.BluetoothLeScanner.stopScan(android.app.PendingIntent).
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.
S’applique à
StopScan(ScanCallback)
Arrête une analyse Bluetooth LE en cours.
[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
Paramètres
- callback
- ScanCallback
rappel
- Attributs
Remarques
Arrête une analyse Bluetooth LE en cours.
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.