Klasse 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).

  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    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 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.
  • Methodenübersicht

    Von Klasse geerbte Methoden java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • OFF

      public static final int OFF
      BLE scan is always off.
      Siehe auch:
    • 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.

      Siehe auch:
    • 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.

      Siehe auch:
    • 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.

      Siehe auch: