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) | + enableDiagnostics: |
Turns on SDK feature - analytics collection. More... | |
(void) | + enableTelemetry |
Turns on SDK feature - telemetry collection. More... | |
(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 *) | + getBanubaSdkResourcesVersionString |
The Banuba SDK tracks the resource version it built for. More... | |
(int32_t) | + getBanubaSdkResourcesVersion |
Returns version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000. More... | |
(nonnull NSString *) | + getBanubaSdkResourcesVersionArchiveString |
The Banuba SDK supports external resources archives. More... | |
(BOOL) | + checkBanubaSdkResourcesVersion |
Checks if the current version of resources is equal to Banuba SDK expected resources version. More... | |
(BOOL) | + checkBanubaSdkResourcesVersionIgnorePatch |
Checks if Banuba SDK treats as valid the version of external resources. More... | |
(void) | + loadGlFunctions |
load GL functions, for dynamic libraries only should be called with active GL context More... | |
Definition at line 16 of file BNBUtilityManager.h.
+ (void) addResourcePath: | (nonnull NSString *) | resourcePath |
Add resources search path.
+ (BOOL) checkBanubaSdkResourcesVersion |
Checks if the current version of resources is equal to Banuba SDK expected resources version.
+ (BOOL) checkBanubaSdkResourcesVersionIgnorePatch |
Checks if Banuba SDK treats as valid the version of external 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.
+ (void) enableDiagnostics: | (nonnull NSString *) | outputFolder |
Turns on SDK feature - analytics collection.
outputFolder | here log files would be written could be documents directory for mobile apps |
+ (void) enableTelemetry |
Turns on SDK feature - telemetry collection.
+ (int32_t) getBanubaSdkResourcesVersion |
Returns version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000.
+ (nonnull NSString *) getBanubaSdkResourcesVersionArchiveString |
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.
+ (nonnull NSString *) getBanubaSdkResourcesVersionString |
The Banuba SDK tracks the resource version it built for.
Returns version of 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 |