Aracılığıyla paylaş


ScanCallback.OnScanResult(ScanCallbackType, ScanResult) Method

Definition

Callback when a BLE advertisement has been found.

[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

Parameters

callbackType
ScanCallbackType

Determines how this callback was triggered. Could be one of ScanSettings#CALLBACK_TYPE_ALL_MATCHES, ScanSettings#CALLBACK_TYPE_FIRST_MATCH or ScanSettings#CALLBACK_TYPE_MATCH_LOST

result
ScanResult

A Bluetooth LE scan result.

Attributes

Remarks

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

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