語言

ScanSettings.CallbackTypeAllMatchesAutoBatch 欄位

定義

警告

This constant will be removed in the future version. Use Android.Bluetooth.LE.ScanCallbackType enum directly instead of this field.

每一個符合過濾條件的藍牙廣告,只有在螢幕開啟時才會觸發回撥結果。

[Android.Runtime.Register("CALLBACK_TYPE_ALL_MATCHES_AUTO_BATCH", ApiSince=34)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Bluetooth.LE.ScanCallbackType enum directly instead of this field.", true)]
public const Android.Bluetooth.LE.ScanCallbackType CallbackTypeAllMatchesAutoBatch = 8;
[<Android.Runtime.Register("CALLBACK_TYPE_ALL_MATCHES_AUTO_BATCH", ApiSince=34)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Bluetooth.LE.ScanCallbackType enum directly instead of this field.", true)>]
val mutable CallbackTypeAllMatchesAutoBatch : Android.Bluetooth.LE.ScanCallbackType

欄位值

Value = 8

實作

屬性

備註

每一個符合過濾條件的藍牙廣告,只有在螢幕開啟時才會觸發回撥結果。 當螢幕關閉時,廣告會被批次處理,且每次報告延遲都會觸發批次結果回撥。 當啟動此回調類型的批次掃描時,啟動螢幕或停用掃描時,批次結果回調也會被觸發。 此回撥類型必須以報告延遲 或 ScanSettings#AUTO_BATCH_MIN_REPORT_DELAY_MILLIS 更大。

Java 文件 android.bluetooth.le.ScanSettings.CALLBACK_TYPE_ALL_MATCHES_AUTO_BATCH。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於