Klasse 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).
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final intBLE scan is running on foreground, background and screen off but paused after every scan duration.static final intBLE scan is continuously running on foreground, background and screen off.static final intBLE scan is continuously running on foreground only.static final intBLE scan is always off. -
Methodenübersicht
-
Felddetails
-
OFF
public static final int OFFBLE scan is always off.- Siehe auch:
-
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.
- Siehe auch:
-
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.
- Siehe auch:
-
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.
- Siehe auch:
-