Classes

Class Description
Storage The default Storage service if no app is provided or the Storage service associated with the provided app.

Functions

Function Description
getStorage(app) Gets the service for the default app or a given app.getStorage() can be called with no arguments to access the default app's service or as getStorage(app) to access the service associated with a specific app.

getStorage()

Gets the service for the default app or a given app.

getStorage() can be called with no arguments to access the default app's service or as getStorage(app) to access the service associated with a specific app.

Signature:

export declare function getStorage(app?: App): Storage;

Parameters

Parameter Type Description
app App

Returns:

Storage

Example 1

// Get the Storage service for the default app
const defaultStorage = getStorage();

Example 2

// Get the Storage service for a given app
const otherStorage = getStorage(otherApp);