BrowserStorage

Wisej.Core.BrowserStorage

Namespace: Wisej.Core

Assembly: Wisej.Framework (3.1.0.0)

Represents the browser's storage objects.

public class BrowserStorage : IWisejSynchronized

Methods

Removes all the values from the browser's storage.

Returns all the keys in the browser's storage.

Asynchronously returns all the keys in the browser's storage.

Returns: Task<String[]>. An awaitable Task that represents the asynchronous operation.

Returns the value stored in the browser's storage associated with the specified key .

This method returns the value asynchronously because it waits for the browser to respond.


Application.LocalStorage.GetValue<string>("userName", (value) => {
  if (value != null)
    AlertBox.Show($"Welcome back, {value}");
});

Throws:

Asynchronously returns the value stored in the browser's storage associated with the specified key .

Returns: Task<T>. An awaitable Task that represents the asynchronous operation.

Removes the value associated with the key from the browser's storage.

Stores the specified value in the browser's storage.

Inherited By

Last updated