HTML5 LocalFileSystem
Supported Platform(s)
- BlackBerry PlayBook 1.0+ |
- BlackBerry 10 |
- Ripple Emulator |
API | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
---|---|---|---|---|---|---|---|
requestFileSystem | Y | Y | Y | Y | |||
resolveLocalFileSystemURI | Y | Y | Y | Y | |||
PERSISTENT | |||||||
TEMPORARY |
Configuration Document Settings
To use all of the API described for this object, you must ensure the following settings are in your configuration document: |
This API does not require a <feature> element to be declared in the configuration document of your BlackBerry WebWorks Application. |
Permission Elements (PlayBook and BlackBerry 10+) |
---|
This API does not require a <permission> element to be declared in the configuration document of your BlackBerry WebWorks Application. |
Functions
void | requestFileSystem |
void | resolveLocalFileSystemURI |
Constants
String | PERSISTENT |
String | TEMPORARY |
Functions
void
requestFileSystem
(String : string, callback: function(), callback: function())
Requests the filesystem.
Supported Platforms | |
---|---|
- BlackBerry PlayBook 1.0+ | |
- BlackBerry 10 | |
- Ripple Emulator |
Parameters | |
---|---|
String | to indicate the LocalFileSystem.type (ie. LocalFileSystem.PERSISTENT or LocalFileSystem.TEMPORARY) |
callback | function that is invoked on successful request of a file system. Argument passed in is the FileSystem object |
callback | function for handling errors or when the request to obtain the file system is denied. Argument passed in is the FileError object |
Code Example:
|
void
resolveLocalFileSystemURI
(Full : String, size : integer, callback: function(), Optional: function())
Requests the DirectoryEntry or FileEntry Object using local URI.
Supported Platforms | |
---|---|
- BlackBerry PlayBook 1.0+ | |
- BlackBerry 10 | |
- Ripple Emulator |
Parameters | |
---|---|
Full | path and name of file |
size | (in bytes) the app will require for storage |
callback | function that is invoked on successful request of a file system. Argument passed in is the FileSystem object |
Optional | callback for handling errors or when the request to obtain the file system is denied. Argument passed in is the FileError object |
Code Example:
|
Constants
Documentation generated by JsDoc Toolkit 2.4.0 on Sun Dec 30 2012 18:15:40 GMT-0500 (EST)