Package com.banuba.sdk.recognizer
Class UtilityManager.CppProxy
- java.lang.Object
-
- com.banuba.sdk.recognizer.UtilityManager.CppProxy
-
- All Implemented Interfaces:
UtilityManager
- Enclosing interface:
- UtilityManager
public static final class UtilityManager.CppProxy extends java.lang.Object implements UtilityManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.banuba.sdk.recognizer.UtilityManager
UtilityManager.CppProxy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
_djinni_private_destroy()
static void
addResourcePath(java.lang.String resourcePath)
Add resources search pathstatic boolean
checkBanubaSdkResourcesVersion()
Checks if the current version of resources is equal to Banuba SDK expected resources versionstatic boolean
checkBanubaSdkResourcesVersionIgnorePatch()
Checks if Banuba SDK treats as valid the version of external resourcesstatic java.lang.String
cpuEnv()
Get information about CPU capabilities.static void
diagnosticCrash()
Diagnostic crash.static void
enableDiagnostics(java.lang.String outputFolder)
Turns on SDK feature - analytics collectionstatic void
enableTelemetry()
Turns on SDK feature - telemetry collectionprotected void
finalize()
static int
getBanubaSdkResourcesVersion()
Returns version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000static java.lang.String
getBanubaSdkResourcesVersionArchiveString()
The Banuba SDK supports external resources archives.static java.lang.String
getBanubaSdkResourcesVersionString()
The Banuba SDK tracks the resource version it built for.static int
getBanubaSdkVersion()
Returns SDK version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000static java.lang.String
getBanubaSdkVersionString()
Returns SDK version as stringstatic HardwareClass
getHardwareClass()
Check device SoC class.static void
initialize(java.util.ArrayList<java.lang.String> resourcePaths, java.lang.String clientToken)
static void
loadGlFunctions()
load GL functions, for dynamic libraries only should be called with active GL contextstatic void
release()
static void
removeResourcePath(java.lang.String resourcePath)
Remove resources search pathstatic void
setLogLevel(SeverityLevel level)
static void
setLogRecordCallback(LogRecordCallback cb, SeverityLevel lvl)
Set callback to recieve log events from Banuba SDK.
-
-
-
Method Detail
-
_djinni_private_destroy
public void _djinni_private_destroy()
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
initialize
public static void initialize(@NonNull java.util.ArrayList<java.lang.String> resourcePaths, @NonNull java.lang.String clientToken)
-
release
public static void release()
-
addResourcePath
public static void addResourcePath(@NonNull java.lang.String resourcePath)
Description copied from interface:UtilityManager
Add resources search path
-
removeResourcePath
public static void removeResourcePath(@NonNull java.lang.String resourcePath)
Description copied from interface:UtilityManager
Remove resources search path
-
diagnosticCrash
public static void diagnosticCrash()
Description copied from interface:UtilityManager
Diagnostic crash. Use this to check you crash analytics systems.
-
cpuEnv
@NonNull public static java.lang.String cpuEnv()
Description copied from interface:UtilityManager
Get information about CPU capabilities. Mainly for usage on Android- Returns:
- JSON-string describing CPU capabilties
-
getHardwareClass
@NonNull public static HardwareClass getHardwareClass()
Description copied from interface:UtilityManager
Check device SoC class. On Android first call may require presence of OpenGL context to get info about GPU.- Returns:
- hardware class of device
-
setLogLevel
public static void setLogLevel(@NonNull SeverityLevel level)
-
enableDiagnostics
public static void enableDiagnostics(@NonNull java.lang.String outputFolder)
Description copied from interface:UtilityManager
Turns on SDK feature - analytics collection- Parameters:
outputFolder
- here log files would be written could be documents directory for mobile apps
-
enableTelemetry
public static void enableTelemetry()
Description copied from interface:UtilityManager
Turns on SDK feature - telemetry collection
-
setLogRecordCallback
public static void setLogRecordCallback(@Nullable LogRecordCallback cb, @NonNull SeverityLevel lvl)
Description copied from interface:UtilityManager
Set callback to recieve log events from Banuba SDK.- Parameters:
cb
- Callbacklvl
- recieve logs with specified and higher levels
-
getBanubaSdkVersionString
@NonNull public static java.lang.String getBanubaSdkVersionString()
Description copied from interface:UtilityManager
Returns SDK version as string
-
getBanubaSdkVersion
public static int getBanubaSdkVersion()
Description copied from interface:UtilityManager
Returns SDK version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000
-
getBanubaSdkResourcesVersionString
@NonNull public static java.lang.String getBanubaSdkResourcesVersionString()
Description copied from interface:UtilityManager
The Banuba SDK tracks the resource version it built for. Returns version of resources as string, represented in the following format “Major.Minor.Patch”.
-
getBanubaSdkResourcesVersion
public static int getBanubaSdkResourcesVersion()
Description copied from interface:UtilityManager
Returns version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000
-
getBanubaSdkResourcesVersionArchiveString
@NonNull public static java.lang.String getBanubaSdkResourcesVersionArchiveString()
Description copied from interface:UtilityManager
The Banuba SDK supports external resources archives. After the initialization of the Banuba SDK, API provides the capability to request the version of the archive. Returns version of resources archive as string, represented in the following format “Major.Minor.Patch”. Such a version coincides with the Banuba SDK resources version if no external resources are used.
-
checkBanubaSdkResourcesVersion
public static boolean checkBanubaSdkResourcesVersion()
Description copied from interface:UtilityManager
Checks if the current version of resources is equal to Banuba SDK expected resources version
-
checkBanubaSdkResourcesVersionIgnorePatch
public static boolean checkBanubaSdkResourcesVersionIgnorePatch()
Description copied from interface:UtilityManager
Checks if Banuba SDK treats as valid the version of external resources
-
loadGlFunctions
public static void loadGlFunctions()
Description copied from interface:UtilityManager
load GL functions, for dynamic libraries only should be called with active GL context
-
-