BroadpeakSessionManager

Manages the lifecycle and configuration of the Broadpeak SmartLib.

This class acts as a singleton wrapper around the Broadpeak SmartLib, ensuring that it is initialized and configured only once for the application's lifecycle. It handles setting up global configurations such as PAL (Programmatic Access Library) parameters, device settings, network options, and logging levels based on the provided BroadpeakSmartLibInitializationData.

The singleton instance must be created using the createInstance method before it can be retrieved with getInstance. This ensures that all necessary initial data is provided.

Usage:

  1. Create the instance once, typically at application startup: BroadpeakSessionManager.createInstance(initializationData)

  2. Retrieve the instance whenever needed: val sessionManager = BroadpeakSessionManager.getInstance()

  3. When the session manager is no longer needed (e.g., application shutdown), release it: BroadpeakSessionManager.releaseInstance()

Types

Link copied to clipboard
object Companion