FuseJS/Bundle Module (JS)

The bundle API allows you to read files that is bundled with the application, defined in the project file (using <filename>:Bundle).

var Bundle = require("FuseJS/Bundle");

You can read up on bundling files here

Location

Namespace
FuseJS
Package
FuseJS 1.4.0

Interface of Bundle

extract(bundleFilePath, destinationPath) js

Asynchronously reads a file from the application bundle and writes it to a destination on the device. Use with FuseJS/FileSystem to determine destination paths. This is useful for extracting html and associated content for local use with WebView via file:// protocol.

list() js

Fetch a list of every file bundled with the application.

Inherited from NativeModule

Inherited from Module

GetFile : FileSource uno

Returns the file source that will be watched by the Context for changes in Fuse preview. Override in subclasses and return correct file source to support live updates in Fuse preview.

Inherited from object

Implemented Interfaces