BluetoothLeScanner.StopScan メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Name | 説明 |
|---|---|
| StopScan(PendingIntent) |
PendingIntent を使用して LE スキャンを開始Bluetooth進行中を停止します。 |
| StopScan(ScanCallback) |
進行中のBluetooth LE スキャンを停止します。 |
StopScan(PendingIntent)
PendingIntent を使用して LE スキャンを開始Bluetooth進行中を停止します。
[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
パラメーター
- callbackIntent
- PendingIntent
スキャンの開始に使用された PendingIntent。
- 属性
注釈
PendingIntent を使用して LE スキャンを開始Bluetooth進行中を停止します。 PendingIntent パラメーターを作成するときは、FLAG_CANCEL_CURRENT フラグを使用しないでください。 それ以外の場合、スキャンを停止しても効果がない可能性があります。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
StopScan(ScanCallback)
進行中のBluetooth LE スキャンを停止します。
[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
パラメーター
- callback
- ScanCallback
コールバック
- 属性
注釈
進行中のBluetooth LE スキャンを停止します。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。