Switchboard Extension SDK
Loading...
Searching...
No Matches
switchboard::ExtensionManager Class Referencefinal

Manages the extensions of the Switchboard SDK. More...

#include <ExtensionManager.hpp>

Public Member Functions

void registerExtension (std::shared_ptr< Extension > extension)
 Registers an extension.
Result< void > initializeExtension (const std::string &extensionName, const SBAnyMap &config)
 Initializes an extension with the given configuration.
Result< void > deinitializeExtension (const std::string &extensionName)
 Deinitializes an extension.

Static Public Member Functions

static ExtensionManagergetInstance ()
 Gets the shared instance of the ExtensionManager.

Detailed Description

Manages the extensions of the Switchboard SDK.

Member Function Documentation

◆ deinitializeExtension()

Result< void > switchboard::ExtensionManager::deinitializeExtension ( const std::string & extensionName)

Deinitializes an extension.

Parameters
extensionNameThe name of the extension to deinitialize.
Returns
Result<void> Success if the extension was deinitialized, error otherwise.

◆ initializeExtension()

Result< void > switchboard::ExtensionManager::initializeExtension ( const std::string & extensionName,
const SBAnyMap & config )

Initializes an extension with the given configuration.

Parameters
extensionNameThe name of the extension to initialize.
configThe configuration parameters for the extension.
Returns
Result<void> Success if the extension was initialized, error otherwise.

◆ registerExtension()

void switchboard::ExtensionManager::registerExtension ( std::shared_ptr< Extension > extension)

Registers an extension.

Parameters
extensionThe extension to register.

The documentation for this class was generated from the following file: