Class DiscoveryProfile

java.lang.Object
com.blukii.sdk.discovery.DiscoveryProfile

public final class DiscoveryProfile extends Object
Definition of the discovery profile.

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

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • OFF

      public static final int OFF
      BLE scan is always off.
      See Also:
    • BLUKII_INFO

      public static final int BLUKII_INFO
      BLE 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 ALTERNATE
      BLE 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 CONTINUOUS
      BLE 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 FOREGROUND
      BLE scan is continuously running on foreground only.

      It will automatically started and stopped if your app is changing the foreground state.

      See Also: