BSB Developer Docs
Loading...
Searching...
No Matches
js_app_installer.h File Reference

Javascript application installer. More...

#include <furi/furi.h>
#include <js_app/js_app.h>

Go to the source code of this file.

Data Structures

struct  JsAppInstallerStageResult
 

Macros

#define RECORD_JS_APP_INSTALLER   "js_app_installer"
 

Typedefs

typedef struct JsAppInstaller JsAppInstaller
 
typedef enum JsAppInstallerError JsAppInstallerError
 
typedef struct JsAppInstallerStageResult JsAppInstallerStageResult
 

Enumerations

enum  JsAppInstallerError {
  JsAppInstallerErrorNone = 0 , JsAppInstallerErrorUnpack , JsAppInstallerErrorManifest , JsAppInstallerErrorApiVersion ,
  JsAppInstallerErrorInstall , JsAppInstallerErrorMax
}
 

Functions

JsAppInstallerStageResult js_app_installer_stage (JsAppInstaller *instance)
 Unpack and check downloaded app package.
 
JsAppInstallerError js_app_installer_install (JsAppInstaller *instance, uint32_t install_key)
 Install previously staged app.
 

Detailed Description

Javascript application installer.

Function Documentation

◆ js_app_installer_install()

JsAppInstallerError js_app_installer_install ( JsAppInstaller * instance,
uint32_t install_key )

Install previously staged app.

Parameters
instanceservice instance.
install_keyinstallation key previously returned with js_app_installer_stage.
Returns
operation result.

◆ js_app_installer_stage()

JsAppInstallerStageResult js_app_installer_stage ( JsAppInstaller * instance)

Unpack and check downloaded app package.

The package to unpack is located at JS_APP_DOWNLOAD_PATH. The package is unpacked to the staging folder (JS_APP_STAGING_PATH).

Parameters
instanceservice instance.
Returns
operation result.