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 &appID, const std::string &appSecret, const std::string &platform, const std::string &bundleID, const std::string &deviceID)
 
 ~LicenseManager ()
 
LicenseSessionactivateSession (const std::string &productID)
 

Detailed Description

Handles the licenses and usage tracking.

LicenseManager class.

Constructor & Destructor Documentation

◆ LicenseManager()

switchboard::LicenseManager::LicenseManager ( const std::string & apiURL,
const std::string & appID,
const std::string & appSecret,
const std::string & platform,
const std::string & bundleID,
const std::string & deviceID )

Initializes the LicenseManager instance.

Parameters
apiURLURL of the API backend.
appIDID of the app.
appSecretSecret of the app.
platformName of the platform (e.g. ios, android).
bundleIDIdentifier 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 & productID)

Activates a session with the provided name.

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