Switchboard SDK
Loading...
Searching...
No Matches
switchboard::LicenseManager Class Reference

Handles the licenses and usage tracking. More...

#include <LicenseManager.hpp>

Public Member Functions

 LicenseManager (const std::string &apiURL, const std::string &clientID, const std::string &clientSecret, const std::string &platform, const std::string &appID, const std::string &deviceID)
 
 ~LicenseManager ()
 
LicenseSessionactivateSession (const std::string &licenseName)
 

Detailed Description

Handles the licenses and usage tracking.

LicenseManager class.

Constructor & Destructor Documentation

◆ LicenseManager()

switchboard::LicenseManager::LicenseManager ( const std::string & apiURL,
const std::string & clientID,
const std::string & clientSecret,
const std::string & platform,
const std::string & appID,
const std::string & deviceID )

Initializes the LicenseManager instance.

Parameters
apiURLURL of the API backend.
clientIDID of the client.
clientSecretSecret of the client.
platformName of the platform (e.g. ios, android).
appIDIdentifier of the main application.
deviceIDUnique identifier of the device.

◆ ~LicenseManager()

switchboard::LicenseManager::~LicenseManager ( )

Deinitializes the LicenseManager

Member Function Documentation

◆ activateSession()

LicenseSession & switchboard::LicenseManager::activateSession ( const std::string & licenseName)

Activates a session with the provided name.

Parameters
licenseNameThe desired license to be activated.
Returns
A license session object.