Langue

ScanCallback.OnScanResult(ScanCallbackType, ScanResult) Méthode

Définition

Rappel lorsqu’une publicité BLE a été trouvée.

[Android.Runtime.Register("onScanResult", "(ILandroid/bluetooth/le/ScanResult;)V", "GetOnScanResult_ILandroid_bluetooth_le_ScanResult_Handler")]
public virtual void OnScanResult(Android.Bluetooth.LE.ScanCallbackType callbackType, Android.Bluetooth.LE.ScanResult? result);
[<Android.Runtime.Register("onScanResult", "(ILandroid/bluetooth/le/ScanResult;)V", "GetOnScanResult_ILandroid_bluetooth_le_ScanResult_Handler")>]
abstract member OnScanResult : Android.Bluetooth.LE.ScanCallbackType * Android.Bluetooth.LE.ScanResult -> unit
override this.OnScanResult : Android.Bluetooth.LE.ScanCallbackType * Android.Bluetooth.LE.ScanResult -> unit

Paramètres

callbackType
ScanCallbackType

Détermine la façon dont ce rappel a été déclenché. Peut être l’un des ScanSettings#CALLBACK_TYPE_ALL_MATCHES, ScanSettings#CALLBACK_TYPE_FIRST_MATCH ou ScanSettings#CALLBACK_TYPE_MATCH_LOST

result
ScanResult

Résultat de l’analyse Bluetooth LE.

Attributs

Remarques

Rappel lorsqu’une publicité BLE a été trouvée.

Java documentation pour android.bluetooth.le.ScanCallback.onScanResult(int, android.bluetooth.le.ScanResult).

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 à