Dil

ScanCallbackType Enum

Definition

Enumerates values returned by the AllMatches, and CallbackType members and taken as a parameter of the F:Android.Bluetooth.LE.ScanCallback.OnScanResult member.

public enum ScanCallbackType
type ScanCallbackType = 
Inheritance
ScanCallbackType

Fields

Name Value Description
AllMatches 1

Trigger a callback for every Bluetooth advertisement found that matches the filter criteria. If no filter is active, all advertisement packets are reported.

Android reference for android.bluetooth.le.ScanSettings.CALLBACK_TYPE_ALL_MATCHES.

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.

FirstMatch 2

A result callback is only triggered for the first advertisement packet received that matches the filter criteria.

Android reference for android.bluetooth.le.ScanSettings.CALLBACK_TYPE_FIRST_MATCH.

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.

MatchLost 4

Receive a callback when advertisements are no longer received from a device that has been previously reported by a first match callback.

Android reference for android.bluetooth.le.ScanSettings.CALLBACK_TYPE_MATCH_LOST.

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.

AllMatchesAutoBatch 8

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.

Android reference 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.

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.

Applies to