Interface UtilityManager

All Known Implementing Classes:
UtilityManager.CppProxy

public interface UtilityManager
  • Method Details

    • initialize

      static void initialize(@NonNull ArrayList<String> resourcePaths, @NonNull String clientToken)
    • release

      static void release()
    • addResourcePath

      static void addResourcePath(@NonNull String resourcePath)
      Add resources search path
    • removeResourcePath

      static void removeResourcePath(@NonNull String resourcePath)
      Remove resources search path
    • diagnosticCrash

      static void diagnosticCrash()
      Diagnostic crash. Use this to check you crash analytics systems.
    • cpuEnv

      @NonNull static String cpuEnv()
      Get information about CPU capabilities. Mainly for usage on Android
      Returns:
      JSON-string describing CPU capabilties
    • getHardwareClass

      @NonNull static HardwareClass 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
    • setLogLevel

      static void setLogLevel(@NonNull SeverityLevel level)
    • enableDiagnostics

      static void enableDiagnostics(@NonNull String outputFolder)
      Turns on SDK feature - analytics collection
      Parameters:
      outputFolder - here log files would be written could be documents directory for mobile apps
    • enableTelemetry

      static void enableTelemetry()
      Turns on SDK feature - telemetry collection
    • setLogRecordCallback

      static void setLogRecordCallback(@Nullable LogRecordCallback cb, @NonNull SeverityLevel lvl)
      Set callback to recieve log events from Banuba SDK.
      Parameters:
      cb - Callback
      lvl - recieve logs with specified and higher levels
    • getBanubaSdkVersionString

      @NonNull static String getBanubaSdkVersionString()
      Returns SDK version as string
    • getBanubaSdkVersion

      static int getBanubaSdkVersion()
      Returns SDK version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000
    • getBanubaSdkResourcesVersionString

      @NonNull static String 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”.
    • getBanubaSdkResourcesVersion

      static int getBanubaSdkResourcesVersion()
      Returns version as number major = version / 10000000 minor = (version - major * 10000000) / 100000 patch = (version - major * 10000000 - minor * 100000) / 1000 revision = version % 1000
    • getBanubaSdkResourcesVersionArchiveString

      @NonNull static String 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.
    • checkBanubaSdkResourcesVersion

      static boolean checkBanubaSdkResourcesVersion()
      Checks if the current version of resources is equal to Banuba SDK expected resources version
    • checkBanubaSdkResourcesVersionIgnorePatch

      static boolean checkBanubaSdkResourcesVersionIgnorePatch()
      Checks if Banuba SDK treats as valid the version of external resources
    • loadGlFunctions

      static void loadGlFunctions()
      load GL functions, for dynamic libraries only should be called with active GL context