Brownie Local Session

The BrownieLocalSession class is useful to manage the local session data

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

hostAddress the host address which the user communicate

Link copied to clipboard

joinCode the join code of the session

Link copied to clipboard

language the language of the user

Link copied to clipboard

sessionId the current identifier of the session

Link copied to clipboard
var theme: EquinoxLocalUser.ApplicationTheme

theme the theme of the user

Functions

Link copied to clipboard
fun clear()

Method used to clear the current local user session

Link copied to clipboard
fun initLanguage(language: String)

Method to initialize the language property and locally save its value with the savePreference method

Link copied to clipboard
fun initTheme(theme: EquinoxLocalUser.ApplicationTheme)

Method to initialize the theme property and locally save its value with the savePreference method

Link copied to clipboard
fun insertNewSession(hostAddress: String, sessionId: String, joinCode: String)

Method used to insert and store a new local session

Link copied to clipboard
fun <T> observe(key: String): State<T>

Method used to observe a property of the local user