Class ThermalSdkAndroid

java.lang.Object
com.flir.thermalsdk.androidsdk.ThermalSdkAndroid

public class ThermalSdkAndroid extends Object
The Android SDK entry point for Android platform.
  • Method Details

    • init

      public static void init(android.content.Context uiContext)

      Initialization of Android SDK.
      This must be called before any other interaction with Android SDK classes.

      Initialization must be done from UI code eg Activity / Fragment / View, otherwise intermittent errors might occur during scanning for devices.

      Example Usage:
      ThermalSdkAndroid.init( MainActivity.this.getApplicationContext() )

      Parameters:
      uiContext - Android context *MUST* be a UI context otherwise errors can intermittently occur during scanning for / connecting to - devices
    • init

      public static void init(android.content.Context uiContext, ThermalLog.LogLevel level)

      Initialization of Android SDK.
      This must be called before any other interaction with Android SDK classes.

      Initialization must be done from UI code eg Activity / Fragment / View, otherwise intermittent errors might occur during scanning for devices.

      Example Usage:
      ThermalSdkAndroid.init( MainActivity.this, ThermalLog.LogLevel.DEBUG )

      Parameters:
      uiContext - Android context *MUST* be a UI context otherwise errors can intermittently occur during scanning for / connecting to - devices
      level - Android SDK logging level
      Throws:
      IllegalStateException - if trying to re-initialize the SDK with a different log levels
    • init

      public static void init(android.content.Context uiContext, ThermalLog.LogLevel level, @Nullable @Nullable Boolean enableOpenGlFlag, @Nullable @Nullable Boolean enableOpenClFlag)

      Initialization of Android SDK.
      This must be called before any other interaction with Android SDK classes.

      Initialization must be done from UI code eg Activity / Fragment / View, otherwise intermittent errors might occur during scanning for devices.

      Example Usage:
      ThermalSdkAndroid.init( MainActivity.this, ThermalLog.LogLevel.DEBUG )

      Parameters:
      uiContext - Android context *MUST* be a UI context otherwise errors can intermittently occur during scanning for / connecting to - devices
      level - Android SDK logging level
      enableOpenGlFlag - explicitly request to use OpenGL - pass null to use default value
      enableOpenClFlag - explicitly request to use OpenCL - pass null to use default value
      Throws:
      IllegalStateException - if trying to re-initialize the SDK with a different log levels
    • getVersion

      public static String getVersion()
      Gets version of the FLIR Atlas Android SDK.
      Returns:
      Returns the version of the FLIR Atlas Android SDK as String.
    • getCommitHash

      public static String getCommitHash()
      Gets commit hash of the FLIR Atlas Android SDK.
      Returns:
      Returns commit hash of the FLIR Atlas Android SDK as String.