MFileSystem

From HTML5 Builder
Jump to: navigation, search

MFileSystem is device’s file system.

Functions

These are JavaScript functions you can call when you use this component in a screen.
Note: Replace ComponentName with the actual name of the component, that is, the value of its Name property. For example: MFileSystem1.
ComponentNameResolveLocalFileSystemURI
Gets a DirectoryEntry or FileEntry object from an URI you pass to it. It triggers OnResolveLocalFileSystemURI event, or OnResolveLocalFileSystemURIError if an error occurs.
ComponentNameRequestFileSystem
Gets a FileSystem object. It triggers OnRequestFileSystem event, or OnRequestFileSystemError if an error occurs.

Events

These are JavaScript MFileSystem events you can associate to JavaScript functions.

OnResolveLocalFileSystemURI
This event gets triggered when ComponentNameResolveLocalFileSystemURI successfully returns a DirectoryEntry or FileEntry object, which is its only parameter.
OnResolveLocalFileSystemURIError
This event gets triggered when an error occurs after calling ComponentNameResolveLocalFileSystemURI. Its only parameter is a ContactError object.
OnRequestFileSystem
This event gets triggered when ComponentNameRequestFileSystem successfully returns a FileSystem object, which is its only parameter.
OnRequestFileSystemError
This event gets triggered when an error occurs after calling ComponentNameRequestFileSystem. Its only parameter is a ContactError object.

See Also

Personal tools