io.appManagerAPIinterface
App Management API.
Properties (3)
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| inMemory⚓︎ | InMemoryStore | x | API for handling app definitions at runtime. |
|
| myApplication⚓︎ | Application | x | Returns the current app. |
|
| myInstance⚓︎ | Instance | x | Returns the current app instance. |
17 Methods
application()⚓︎
(name: string) => Application | undefined
Retrieves an app by name.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| name⚓︎ | string | Name of the desired app. |
getConfigurations()⚓︎
(apps?: string[]) => Promise<Definition[]>
Retrieves the configurations of the specified apps.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| apps⚓︎ | string[] | x | List of names of the apps for which to retrieve configurations. |
onAppAdded()⚓︎
(callback: (app: Application) => any) => UnsubscribeFunction
Notifies when an app is registered in the environment.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (app: Application) => any | Callback function for handling the event. |
onAppAvailable()⚓︎
(callback: (app: Application) => any) => UnsubscribeFunction
Notifies when an app is available and can be started.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (app: Application) => any | Callback function for handling the event. |
onAppChanged()⚓︎
(callback: (app: Application) => any) => UnsubscribeFunction
Notifies when the configuration for an app has changed.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (app: Application) => any | Callback function for handling the event. |
onAppRemoved()⚓︎
(callback: (app: Application) => any) => UnsubscribeFunction
Notifies when an app is removed from the environment.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (app: Application) => any | Callback function for handling the event. |
onAppUnavailable()⚓︎
(callback: (app: Application) => any) => UnsubscribeFunction
Notifies when an app is no longer available and can't be started.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (app: Application) => any | Callback function for handling the event. |
onInstanceStarted()⚓︎
(callback: (instance: Instance) => any) => UnsubscribeFunction
onInstanceStartFailed()⚓︎
(callback: (instance: Instance) => any) => UnsubscribeFunction
onInstanceStopped()⚓︎
(callback: (instance: Instance) => any) => UnsubscribeFunction
onInstanceUpdated()⚓︎
(callback: (instance: Instance) => any) => UnsubscribeFunction
onShuttingDown()⚓︎
(callback: (args: ShuttingDownEventArgs) => Promise<{ prevent: boolean }>) => void
Notifies when io.Connect will shut down or restart. If the callback is asynchronous, it will be awaited up to 60 seconds before shutdown continues.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (args: ShuttingDownEventArgs) => Promise<{ prevent: boolean }> | Callback function for handling the event. |