ScanCallback.OnScanResult(ScanCallbackType, ScanResult) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.