Class DiscoveryProfile
Use the public fields of this class to define the Android situation depending behavior of the BLE discovery.
The field documentation shows how the discovery is started and stopped for defined Android state changes (foreground, background, screen off).
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
BLE scan is running on foreground, background and screen off but paused after every scan duration.static final int
BLE scan is optimized for using blukii info in your app.static final int
BLE scan is continuously running on foreground, background and screen off.static final int
BLE scan is continuously running on foreground only.static final int
BLE scan is always off. -
Method Summary
-
Field Details
-
OFF
public static final int OFFBLE scan is always off.- See Also:
-
BLUKII_INFO
public static final int BLUKII_INFOBLE scan is optimized for using blukii info in your app.It is a combination of 2 modes:
- BLE scan is running continuously if your is on foreground.
- If blukii Beacons are nearby BLE scan is running for one scan duration when the Android device is leaving screen off state (display is switched on).
- See Also:
-
ALTERNATE
public static final int ALTERNATEBLE scan is running on foreground, background and screen off but paused after every scan duration.The pause duration is defined by setting
DiscoverySettings.setScanWaitDuration(int)
.Note: Android may kill your app process on background and screen off because of energy efficiency. Therefore please check manufacture and version defined Android settings for allowing your app running continuously in background and screen off.
- See Also:
-
CONTINUOUS
public static final int CONTINUOUSBLE scan is continuously running on foreground, background and screen off.Note: Android may kill your app process on background and screen off because of energy efficiency. Therefore please check manufacture and version defined Android settings for allowing your app running continuously in background and screen off.
- See Also:
-
FOREGROUND
public static final int FOREGROUNDBLE scan is continuously running on foreground only.It will automatically started and stopped if your app is changing the foreground state.
- See Also:
-