Banuba SDK
BNBUtilityManager.h
Go to the documentation of this file.
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from recognizer.djinni
3 
4 #import "BNBHardwareClass.h"
6 #import "BNBSeverityLevel.h"
7 #import <Foundation/Foundation.h>
8 
9 
10 @interface BNBUtilityManager : NSObject
11 
12 + (void)initialize:(nonnull NSArray<NSString *> *)resourcePaths
13  clientToken:(nonnull NSString *)clientToken;
14 
15 + (void)release;
16 
17 /** Add resources search path */
18 + (void)addResourcePath:(nonnull NSString *)resourcePath;
19 
20 /** Remove resources search path */
21 + (void)removeResourcePath:(nonnull NSString *)resourcePath;
22 
23 /** Diagnostic crash. Use this to check you crash analytics systems. */
24 + (void)diagnosticCrash;
25 
26 /**
27  * Get information about CPU capabilities. Mainly for usage on Android
28  * @return JSON-string describing CPU capabilties
29  */
30 + (nonnull NSString *)cpuEnv;
31 
32 /**
33  * Check device SoC class.
34  * On Android first call may require presence of OpenGL context to
35  * get info about GPU.
36  * @return hardware class of device
37  */
38 + (BNBHardwareClass)getHardwareClass;
39 
40 + (void)setLogLevel:(BNBSeverityLevel)level;
41 
42 /**
43  * Set callback to recieve log events from Banuba SDK.
44  * @param cb Callback
45  * @param lvl recieve logs with specified and higher levels
46  */
47 + (void)setLogRecordCallback:(nullable id<BNBLogRecordCallback>)cb
48  lvl:(BNBSeverityLevel)lvl;
49 
50 /** Returns SDK version as string */
51 + (nonnull NSString *)getBanubaSdkVersionString;
52 
53 /**
54  * Returns SDK version as number
55  * major = version / 10000000
56  * minor = (version - major * 10000000) / 100000
57  * patch = (version - major * 10000000 - minor * 100000) / 1000
58  * revision = version % 1000
59  */
60 + (int32_t)getBanubaSdkVersion;
61 
62 /**
63  * The Banuba SDK tracks the resource version of Neural Networks (NN) resources it built for.
64  * Returns version of NN resources as string, represented in the following format
65  * “Major.Minor.Patch”.
66  */
67 + (nonnull NSString *)getBanubaSdkNnVersionString;
68 
69 /**
70  * Returns NN version as number
71  * major = version / 10000000
72  * minor = (version - major * 10000000) / 100000
73  * patch = (version - major * 10000000 - minor * 100000) / 1000
74  * revision = version % 1000
75  */
76 + (int32_t)getBanubaSdkNnVersion;
77 
78 /**
79  * The Banuba SDK supports external NN resources archives.
80  * After the initialization of the Banuba SDK,
81  * API provides the capability to request the version of the archive.
82  * Returns version of NN resources archive as string,
83  * represented in the following format “Major.Minor.Patch”.
84  * Such a version coincides with the Banuba SDK NN resources version
85  * if no external NN resources are used.
86  */
87 + (nonnull NSString *)getBanubaSdkNnVersionArchiveString;
88 
89 /**
90  * Checks if the current version of NN resources
91  * is equal to Banuba SDK expected NN resources version
92  */
94 
95 /** Checks if Banuba SDK treats as valid the version of external NN resources */
97 
98 /**
99  * load GL functions, for dynamic libraries only
100  * should be called with active GL context
101  */
102 + (void)loadGlFunctions;
103 
104 @end
+[BNBUtilityManager getBanubaSdkVersionString]
nonnull NSString * getBanubaSdkVersionString()
Returns SDK version as string.
BNBHardwareClass.h
+[BNBUtilityManager getBanubaSdkNnVersion]
int32_t getBanubaSdkNnVersion()
Returns NN version as number major = version / 10000000 minor = (version - major * 10000000) / 100000...
+[BNBUtilityManager getHardwareClass]
BNBHardwareClass getHardwareClass()
Check device SoC class.
+[BNBUtilityManager getBanubaSdkNnVersionArchiveString]
nonnull NSString * getBanubaSdkNnVersionArchiveString()
The Banuba SDK supports external NN resources archives.
+[BNBUtilityManager checkBanubaSdkNnVersionIgnorePatch]
BOOL checkBanubaSdkNnVersionIgnorePatch()
Checks if Banuba SDK treats as valid the version of external NN resources.
BNBSeverityLevel.h
+[BNBUtilityManager release]
void release()
+[BNBUtilityManager checkBanubaSdkNnVersion]
BOOL checkBanubaSdkNnVersion()
Checks if the current version of NN resources is equal to Banuba SDK expected NN resources version.
+[BNBUtilityManager cpuEnv]
nonnull NSString * cpuEnv()
Get information about CPU capabilities.
+[BNBUtilityManager getBanubaSdkVersion]
int32_t getBanubaSdkVersion()
Returns SDK version as number major = version / 10000000 minor = (version - major * 10000000) / 10000...
BNBLogRecordCallback-p
Definition: BNBLogRecordCallback.h:8
+[BNBUtilityManager diagnosticCrash]
void diagnosticCrash()
Diagnostic crash.
BNBUtilityManager
Definition: BNBUtilityManager.h:11
+[BNBUtilityManager getBanubaSdkNnVersionString]
nonnull NSString * getBanubaSdkNnVersionString()
The Banuba SDK tracks the resource version of Neural Networks (NN) resources it built for.
+[BNBUtilityManager loadGlFunctions]
void loadGlFunctions()
load GL functions, for dynamic libraries only should be called with active GL context
BNBLogRecordCallback.h