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 inpackage.json
for each app.
Example
import lampix from '@lampix/core';
lampix.getApps()
.then((apps) => {
console.log(apps[0]) // { name: some-name, package_data: {} }
});
Last updated
Was this helpful?