BSB Developer Docs
Loading...
Searching...
No Matches
js_app_launcher.h
Go to the documentation of this file.
1
5#pragma once
6
7#include <core/string.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
25
34
43
55
67
79
90 const char* app_id,
91 FuriString* fs_path,
92 const char* virtual_path);
93
101bool js_app_launcher_ensure_app_directories(const char* app_id);
102
103#ifdef __cplusplus
104}
105#endif
JsAppLauncherStatus js_app_launcher_get_running_app_id(FuriString *app_id)
Get the currently running JS application ID.
Definition js_app_launcher_api.c:127
JsAppLauncherStartMode
Modes for starting JS applications.
Definition js_app_launcher.h:29
@ JsAppLauncherStartModeResume
Skip start menu on startup, show before exit.
Definition js_app_launcher.h:31
@ JsAppLauncherStartModeMax
Special value, internal use.
Definition js_app_launcher.h:32
@ JsAppLauncherStartModeShowMenu
Always show start menu.
Definition js_app_launcher.h:30
bool js_app_launcher_ensure_app_directories(const char *app_id)
Create all necessary directories for current JS application's storage.
Definition js_app_launcher_api.c:196
JsAppLauncherStopMode
Modes for stopping JS applications.
Definition js_app_launcher.h:38
@ JsAppLauncherStopModeForget
Exit and request AppsMenu to forget the most recent app.
Definition js_app_launcher.h:40
@ JsAppLauncherStopModeNormal
Simply exit from the application.
Definition js_app_launcher.h:39
@ JsAppLauncherStopModeMax
Special value, internal use.
Definition js_app_launcher.h:41
JsAppLauncherStatus js_app_launcher_start(const char *app_id, JsAppLauncherStartMode start_mode)
Start a JS application by its application ID.
Definition js_app_launcher_api.c:67
JsAppLauncherStatus
Status codes returned by the JsApplication APIs.
Definition js_app_launcher.h:16
@ JsAppLauncherStatusInvalidAppId
Application ID is invalid.
Definition js_app_launcher.h:20
@ JsAppLauncherStatusLowPriority
A higher-priorty application is already running.
Definition js_app_launcher.h:22
@ JsAppLauncherStatusNotRunning
Js application is not running.
Definition js_app_launcher.h:19
@ JsAppLauncherStatusAborted
Operation was aborted.
Definition js_app_launcher.h:21
@ JsAppLauncherStatusOk
Operation successful, no error reported.
Definition js_app_launcher.h:17
@ JsAppLauncherStatusTimeout
Operation timed out.
Definition js_app_launcher.h:18
@ JsAppLauncherStatusError
An unknown error has occurred.
Definition js_app_launcher.h:23
bool js_app_launcher_translate_path(const char *app_id, FuriString *fs_path, const char *virtual_path)
Translate a virtual filesystem path available to a JS application to the actual path.
Definition js_app_launcher_api.c:181
JsAppLauncherStatus js_app_launcher_stop(JsAppLauncherStopMode stop_mode)
Stop the currently running JS application, if applicable.
Definition js_app_launcher_api.c:102