Banuba SDK
Class Methods | List of all members
BNBUtilityManager Class Reference

#import <BNBUtilityManager.h>

Inheritance diagram for BNBUtilityManager:

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...
 

Detailed Description

Definition at line 10 of file BNBUtilityManager.h.

Method Documentation

◆ addResourcePath:

+ (void) addResourcePath: (nonnull NSString *)  resourcePath

Add resources search path.

◆ checkBanubaSdkNnVersion

+ (BOOL) checkBanubaSdkNnVersion

Checks if the current version of NN resources is equal to Banuba SDK expected NN resources version.

◆ checkBanubaSdkNnVersionIgnorePatch

+ (BOOL) checkBanubaSdkNnVersionIgnorePatch

Checks if Banuba SDK treats as valid the version of external NN resources.

◆ cpuEnv

+ (nonnull NSString *) cpuEnv

Get information about CPU capabilities.

Mainly for usage on Android

Returns
JSON-string describing CPU capabilties

◆ diagnosticCrash

+ (void) diagnosticCrash

Diagnostic crash.

Use this to check you crash analytics systems.

◆ getBanubaSdkNnVersion

+ (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.

◆ getBanubaSdkNnVersionArchiveString

+ (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.

◆ getBanubaSdkNnVersionString

+ (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”.

◆ getBanubaSdkVersion

+ (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.

◆ getBanubaSdkVersionString

+ (nonnull NSString *) getBanubaSdkVersionString

Returns SDK version as string.

◆ getHardwareClass

+ (BNBHardwareClass) getHardwareClass

Check device SoC class.

On Android first call may require presence of OpenGL context to get info about GPU.

Returns
hardware class of device

◆ initialize:clientToken:

+ (void) initialize: (nonnull NSArray< NSString * > *)  resourcePaths
clientToken: (nonnull NSString *)  clientToken 

◆ loadGlFunctions

+ (void) loadGlFunctions

load GL functions, for dynamic libraries only should be called with active GL context

◆ release

+ (void) release

◆ removeResourcePath:

+ (void) removeResourcePath: (nonnull NSString *)  resourcePath

Remove resources search path.

◆ setLogLevel:

+ (void) setLogLevel: (BNBSeverityLevel)  level

◆ setLogRecordCallback:lvl:

+ (void) setLogRecordCallback: (nullable id< BNBLogRecordCallback >)  cb
lvl: (BNBSeverityLevel)  lvl 

Set callback to recieve log events from Banuba SDK.

Parameters
cbCallback
lvlrecieve logs with specified and higher levels

The documentation for this class was generated from the following file: