Skip to main content
Access via:io.appManager.inMemory

Object that can be used for handling app definitions dynamically. The described methods operate only on in-memory app definitions.

4 Methods

clear()⚓︎

() => Promise<void>

Removes all app definitions from the in-memory store.

export()⚓︎

Exports all available app definitions from the in-memory store.

import()⚓︎

(definitions: (Definition | FDC3DefinitionV1 | FDC3DefinitionV2)[], mode?: "replace" | "merge") => Promise<ImportResult>

Imports the provided collection of app definitions.

Parameters (2)

Name Type Required Description
definitions⚓︎ (Definition | FDC3DefinitionV1 | FDC3DefinitionV2)[]

A collection of app definition objects to be imported.

mode⚓︎ "replace" | "merge" x

Mode for importing app definitions. Use "replace" (default) to replace all existing in-memory app definitions. Use "merge" to update the existing ones and add new ones.

remove()⚓︎

(name: string) => Promise<void>

Removes an app definition from the in-memory store.

Parameters (1)

Name Type Required Description
name⚓︎ string

Name of the app to be removed.