Banuba SDK
|
#import <BNBUtilityManager.h>
Class Methods | |
(void) | + initialize:clientToken: |
(void) | + release |
(void) | + addResourcePath: |
Add resources search path. More... | |
(void) | + removeResourcePath: |
Remove resources search path. More... | |
(void) | + diagnosticCrash |
Diagnostic crash. More... | |
(nonnull NSString *) | + cpuEnv |
Get information about CPU capabilities. More... | |
(BNBHardwareClass) | + getHardwareClass |
Check device SoC class. More... | |
(void) | + setLogLevel: |
(void) | + setLogRecordCallback:lvl: |
Set callback to recieve log events from Banuba SDK. More... | |
(nonnull NSString *) | + getBanubaSdkVersionString |
Returns SDK version as string. More... | |
(int32_t) | + getBanubaSdkVersion |
Returns SDK version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000. More... | |
(nonnull NSString *) | + getBanubaSdkNnVersionString |
The Banuba SDK tracks the resource version of Neural Networks (NN) resources it built for. More... | |
(int32_t) | + getBanubaSdkNnVersion |
Returns NN version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000. More... | |
(nonnull NSString *) | + getBanubaSdkNnVersionArchiveString |
The Banuba SDK supports external NN resources archives. More... | |
(BOOL) | + checkBanubaSdkNnVersion |
Checks if the current version of NN resources is equal to Banuba SDK expected NN resources version. More... | |
(BOOL) | + checkBanubaSdkNnVersionIgnorePatch |
Checks if Banuba SDK treats as valid the version of external NN resources. More... | |
(void) | + loadGlFunctions |
load GL functions, for dynamic libraries only should be called with active GL context More... | |
Definition at line 10 of file BNBUtilityManager.h.
+ (void) addResourcePath: | (nonnull NSString *) | resourcePath |
Add resources search path.
+ (BOOL) checkBanubaSdkNnVersion |
Checks if the current version of NN resources is equal to Banuba SDK expected NN resources version.
+ (BOOL) checkBanubaSdkNnVersionIgnorePatch |
Checks if Banuba SDK treats as valid the version of external NN resources.
+ (nonnull NSString *) cpuEnv |
Get information about CPU capabilities.
Mainly for usage on Android
+ (void) diagnosticCrash |
Diagnostic crash.
Use this to check you crash analytics systems.
+ (int32_t) getBanubaSdkNnVersion |
Returns NN version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000.
+ (nonnull NSString *) getBanubaSdkNnVersionArchiveString |
The Banuba SDK supports external NN resources archives.
After the initialization of the Banuba SDK, API provides the capability to request the version of the archive. Returns version of NN resources archive as string, represented in the following format “Major.Minor.Patch”. Such a version coincides with the Banuba SDK NN resources version if no external NN resources are used.
+ (nonnull NSString *) getBanubaSdkNnVersionString |
The Banuba SDK tracks the resource version of Neural Networks (NN) resources it built for.
Returns version of NN resources as string, represented in the following format “Major.Minor.Patch”.
+ (int32_t) getBanubaSdkVersion |
Returns SDK version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000.
+ (nonnull NSString *) getBanubaSdkVersionString |
Returns SDK version as string.
+ (BNBHardwareClass) getHardwareClass |
Check device SoC class.
On Android first call may require presence of OpenGL context to get info about GPU.
+ (void) initialize: | (nonnull NSArray< NSString * > *) | resourcePaths | |
clientToken: | (nonnull NSString *) | clientToken | |
+ (void) loadGlFunctions |
load GL functions, for dynamic libraries only should be called with active GL context
+ (void) release |
+ (void) removeResourcePath: | (nonnull NSString *) | resourcePath |
Remove resources search path.
+ (void) setLogLevel: | (BNBSeverityLevel) | level |
+ (void) setLogRecordCallback: | (nullable id< BNBLogRecordCallback >) | cb | |
lvl: | (BNBSeverityLevel) | lvl | |
Set callback to recieve log events from Banuba SDK.
cb | Callback |
lvl | recieve logs with specified and higher levels |