다음을 통해 공유


ScanSettings.CallbackTypeAllMatchesAutoBatch Field

Definition

Caution

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

A result callback for every Bluetooth advertisement found that matches the filter criteria is only triggered when screen is turned on.

[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

Field Value

Value = 8

Implements

Attributes

Remarks

A result callback for every Bluetooth advertisement found that matches the filter criteria is only triggered when screen is turned on. While the screen is turned off, the advertisements are batched and the batched result callbacks are triggered every report delay. When the batch scan with this callback type is activated, the batched result callbacks are also triggered while turning on screen or disabling the scan. This callback type must be used with a report delay of ScanSettings#AUTO_BATCH_MIN_REPORT_DELAY_MILLIS or greater.

Java documentation for android.bluetooth.le.ScanSettings.CALLBACK_TYPE_ALL_MATCHES_AUTO_BATCH.

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