Package com.flir.thermalsdk.androidsdk
Class ThermalSdkAndroid
java.lang.Object
com.flir.thermalsdk.androidsdk.ThermalSdkAndroid
The Android SDK entry point for Android platform.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Gets commit hash of the FLIR Atlas Android SDK.static String
Gets version of the FLIR Atlas Android SDK.static void
init
(android.content.Context uiContext)
Initialization of Android SDK.static void
init
(android.content.Context uiContext, ThermalLog.LogLevel level)
Initialization of Android SDK.static void
init
(android.content.Context uiContext, ThermalLog.LogLevel level, @Nullable Boolean enableOpenGlFlag, @Nullable Boolean enableOpenClFlag)
Initialization of Android SDK.
-
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
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 - deviceslevel
- 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 - deviceslevel
- Android SDK logging levelenableOpenGlFlag
- explicitly request to use OpenGL - pass null to use default valueenableOpenClFlag
- 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
Gets version of the FLIR Atlas Android SDK.- Returns:
- Returns the version of the FLIR Atlas Android SDK as String.
-
getCommitHash
Gets commit hash of the FLIR Atlas Android SDK.- Returns:
- Returns commit hash of the FLIR Atlas Android SDK as String.
-