Dissonity
Unity SDK for Discord activities
Loading...
Searching...
No Matches
Dissonity.Api.LocalStorage Class Reference

Subclass that allows storing key-value pairs locally. More...

Static Public Member Functions

static void SetItem (string key, string value)
 Add persistent data to the local storage.
 
static async Task< string?> GetItem (string key)
 Get data from the local storage.
 
static void Clear ()
 Clear local storage.
 

Detailed Description

Subclass that allows storing key-value pairs locally.

Member Function Documentation

◆ Clear()

static void Dissonity.Api.LocalStorage.Clear ( )
inlinestatic

Clear local storage.

Exceptions
InvalidOperationException

◆ GetItem()

static async Task< string?> Dissonity.Api.LocalStorage.GetItem ( string key)
inlinestatic

Get data from the local storage.

Exceptions
InvalidOperationException

◆ SetItem()

static void Dissonity.Api.LocalStorage.SetItem ( string key,
string value )
inlinestatic

Add persistent data to the local storage.

Exceptions
InvalidOperationException

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