Package com.banuba.sdk.recognizer
Class UtilityManager.CppProxy
java.lang.Object
com.banuba.sdk.recognizer.UtilityManager.CppProxy
- All Implemented Interfaces:
UtilityManager
- Enclosing interface:
- UtilityManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.banuba.sdk.recognizer.UtilityManager
UtilityManager.CppProxy -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic voidaddResourcePath(String resourcePath) Add resources search pathstatic voidaddUrlSchemeHandler(String scheme) static booleanChecks if the current version of resources is equal to Banuba SDK expected resources versionstatic booleanChecks if Banuba SDK treats as valid the version of external resourcesstatic StringcpuEnv()Get information about CPU capabilities.static voidDiagnostic crash.static voidenableDiagnostics(String outputFolder) Turns on SDK feature - analytics collectionstatic voidTurns on SDK feature - telemetry collectionprotected voidfinalize()static intReturns version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000static StringThe Banuba SDK supports external resources archives.static StringThe Banuba SDK tracks the resource version it built for.static intReturns SDK version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000static StringReturns SDK version as stringstatic HardwareClassCheck device SoC class.static voidinitialize(ArrayList<String> resourcePaths, String clientToken) static voidload GL functions, for dynamic libraries only should be called with active GL contextstatic voidrelease()static voidremoveResourcePath(String resourcePath) Remove resources search pathstatic voidremoveUrlSchemeHandler(String scheme) static voidsetLogLevel(SeverityLevel level) static voidSet callback to recieve log events from Banuba SDK.static voiduseResourcesCache(boolean enabled)
-
Method Details
-
_djinni_private_destroy
public void _djinni_private_destroy() -
finalize
-
initialize
-
release
public static void release() -
addResourcePath
Description copied from interface:UtilityManagerAdd resources search path -
removeResourcePath
Description copied from interface:UtilityManagerRemove resources search path -
diagnosticCrash
public static void diagnosticCrash()Description copied from interface:UtilityManagerDiagnostic crash. Use this to check you crash analytics systems. -
cpuEnv
Description copied from interface:UtilityManagerGet information about CPU capabilities. Mainly for usage on Android- Returns:
- JSON-string describing CPU capabilties
-
getHardwareClass
Description copied from interface:UtilityManagerCheck device SoC class. On Android first call may require presence of OpenGL context to get info about GPU.- Returns:
- hardware class of device
-
setLogLevel
-
enableDiagnostics
Description copied from interface:UtilityManagerTurns 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:UtilityManagerTurns on SDK feature - telemetry collection -
setLogRecordCallback
Description copied from interface:UtilityManagerSet callback to recieve log events from Banuba SDK.- Parameters:
cb- Callbacklvl- recieve logs with specified and higher levels
-
getBanubaSdkVersionString
Description copied from interface:UtilityManagerReturns SDK version as string -
getBanubaSdkVersion
public static int getBanubaSdkVersion()Description copied from interface:UtilityManagerReturns SDK version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000 -
getBanubaSdkResourcesVersionString
Description copied from interface:UtilityManagerThe 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:UtilityManagerReturns version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000 -
getBanubaSdkResourcesVersionArchiveString
Description copied from interface:UtilityManagerThe 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:UtilityManagerChecks if the current version of resources is equal to Banuba SDK expected resources version -
checkBanubaSdkResourcesVersionIgnorePatch
public static boolean checkBanubaSdkResourcesVersionIgnorePatch()Description copied from interface:UtilityManagerChecks if Banuba SDK treats as valid the version of external resources -
loadGlFunctions
public static void loadGlFunctions()Description copied from interface:UtilityManagerload GL functions, for dynamic libraries only should be called with active GL context -
removeUrlSchemeHandler
-
addUrlSchemeHandler
-
useResourcesCache
public static void useResourcesCache(boolean enabled)
-