getApps
Retrieve the available apps to switch to. Currently only used by the app-switcher.

Returns

(Promise<AppInfo[]>): A promise that fulfills with a list of plain objects describing the available apps. AppInfo objects have the following properties:
  • name (string): App name.
  • package_data (Object): Information contained in package.json for each app.

Example

1
import lampix from '@lampix/core';
2
3
lampix.getApps()
4
.then((apps) => {
5
console.log(apps[0]) // { name: some-name, package_data: {} }
6
});
Copied!
Last modified 3yr ago
Copy link