次の方法で共有


ScanCallback.OnScanResult(ScanCallbackType, ScanResult) メソッド

定義

BLE アドバタイズが見つかった場合のコールバック。

[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

パラメーター

callbackType
ScanCallbackType

このコールバックがトリガーされた方法を決定します。 は、次のいずれかScanSettings#CALLBACK_TYPE_ALL_MATCHESScanSettings#CALLBACK_TYPE_FIRST_MATCHです。ScanSettings#CALLBACK_TYPE_MATCH_LOST

result
ScanResult

Bluetooth LE スキャンの結果。

属性

注釈

の Java ドキュメントandroid.bluetooth.le.ScanCallback.onScanResult(int, android.bluetooth.le.ScanResult)

このページの一部は、Android オープンソース プロジェクトによって作成および共有され、クリエイティブ コモンズ 2.5 属性ライセンスに記載されている条件に従って使用される作業に基づく変更です。

適用対象