Skip to content

Class AppsConfig

Source: appsConfig.ts

Accessors

installedApps

Get Signature

get installedApps(): App<WindowProps>[]

Returns

App<WindowProps>[]

Constructors

Constructor

new AppsConfig(options: Partial<AppsConfigOptions>): AppsConfig

Parameters

options

Partial<AppsConfigOptions> = {}

Returns

AppsConfig

Methods

getAppByFileExtension()

getAppByFileExtension(fileExtension: string): App<WindowProps> | null

Get the app associated with a file extension

Parameters

fileExtension

string

Returns

App<WindowProps> | null


getAppById()

getAppById(id: string, includeUninstalled: boolean): App<WindowProps> | null

Parameters

id

string

includeUninstalled

boolean = false

Include apps that are not currently installed

Returns

App<WindowProps> | null


getAppByRole()

getAppByRole(role: string): App<WindowProps> | null

Get the app with a specific role

Parameters

role

string

Returns

App<WindowProps> | null


getAppsByCategory()

getAppsByCategory(category: "Business" | "Developer tools" | "Education" | "Entertainment" | "Food & dining" | "Health & fitness" | "Kids & family" | "Lifestyle" | "Media" | "Medical" | "Multimedia design" | "Music" | "Navigation & maps" | "News & weather" | "Personal finance" | "Personalization" | "Photo & video" | "Productivity" | "Security" | "Shopping" | "Social" | "Sports" | "Travel" | "Utilities & tools"): App<WindowProps>[]

Get all applications (including uninstalled apps) that belong to a category

Parameters

category

"Business" | "Developer tools" | "Education" | "Entertainment" | "Food & dining" | "Health & fitness" | "Kids & family" | "Lifestyle" | "Media" | "Medical" | "Multimedia design" | "Music" | "Navigation & maps" | "News & weather" | "Personal finance" | "Personalization" | "Photo & video" | "Productivity" | "Security" | "Shopping" | "Social" | "Sports" | "Travel" | "Utilities & tools"

Returns

App<WindowProps>[]

Properties

APP_ROLES

static APP_ROLES: { browser: string; fileExplorer: string; mediaViewer: string; settings: string; terminal: string; textEditor: string; }

browser

browser: string = "browser"

fileExplorer

fileExplorer: string = "file-explorer"

mediaViewer

mediaViewer: string = "media-viewer"

settings

settings: string = "settings"

terminal

terminal: string = "terminal"

textEditor

textEditor: string = "text-editor"


apps

apps: App<WindowProps>[] = []

Built by Prozilla