Banuba SDK
|
Static Public Member Functions | |
static void | initialize (const std::vector< std::string > &resource_paths, const std::string &client_token) |
static void | release () |
static void | add_resource_path (const std::string &resource_path) |
Add resources search path. | |
static void | remove_resource_path (const std::string &resource_path) |
Remove resources search path. | |
static void | diagnostic_crash () |
Diagnostic crash. More... | |
static std::string | cpu_env () |
Get information about CPU capabilities. More... | |
::bnb::interfaces::hardware_class | get_hardware_class () |
Check device SoC class. More... | |
static void | set_log_level (::bnb::interfaces::severity_level level) |
static void | enable_diagnostics (const std::string &output_folder) |
Turns on SDK feature - analytics collection. More... | |
static void | enable_telemetry () |
Turns on SDK feature - telemetry collection. | |
static void | set_log_record_callback (const std::shared_ptr<::bnb::interfaces::log_record_callback > &cb, ::bnb::interfaces::severity_level lvl) |
Set callback to recieve log events from Banuba SDK. More... | |
static std::string | get_banuba_sdk_version_string () |
Returns SDK version as string. | |
static int32_t | get_banuba_sdk_version () |
Returns SDK version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000. | |
static std::string | get_banuba_sdk_resources_version_string () |
The Banuba SDK tracks the resource version it built for. More... | |
static int32_t | get_banuba_sdk_resources_version () |
Returns version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000. | |
static std::string | get_banuba_sdk_resources_version_archive_string () |
The Banuba SDK supports external resources archives. More... | |
static bool | check_banuba_sdk_resources_version () |
Checks if the current version of resources is equal to Banuba SDK expected resources version. | |
static bool | check_banuba_sdk_resources_version_ignore_patch () |
Checks if Banuba SDK treats as valid the version of external resources. | |
static void | load_gl_functions () |
load GL functions, for dynamic libraries only should be called with active GL context | |
Definition at line 21 of file utility_manager.hpp.
|
static |
Get information about CPU capabilities.
Mainly for usage on Android
|
static |
Diagnostic crash.
Use this to check you crash analytics systems.
|
static |
Turns on SDK feature - analytics collection.
output_folder | here log files would be written could be documents directory for mobile apps |
|
static |
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.
|
static |
The Banuba SDK tracks the resource version it built for.
Returns version of resources as string, represented in the following format “Major.Minor.Patch”.
|
static |
Check device SoC class.
On Android first call may require presence of OpenGL context to get info about GPU.
|
static |
Set callback to recieve log events from Banuba SDK.
cb | Callback |
lvl | recieve logs with specified and higher levels |