HTML5 FileReader
Object to allow reading of files
Supported Platform(s)
- BlackBerry OS 5.0+ |
- BlackBerry PlayBook 1.0+ |
- BlackBerry 10 |
API | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
---|---|---|---|---|---|---|---|
abort | Y | Y | Y | Y | Y | ||
readAsDataURL | Y | Y | Y | Y | Y | ||
readAsText | Y | Y | Y | ||||
error | Y | Y | Y | ||||
readyState | Y | Y | Y | ||||
result | Y | Y | Y | ||||
FileReader.onabort | Y | Y | Y | ||||
FileReader.onerror | Y | Y | Y | ||||
FileReader.onload | Y | Y | Y | ||||
FileReader.onloadend | Y | Y | Y | ||||
FileReader.onloadstart | Y | Y | Y |
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 | abort |
void | readAsDataURL |
void | readAsText |
Events
void | FileReader.onabort |
void | FileReader.onerror |
void | FileReader.onload |
void | FileReader.onloadend |
void | FileReader.onloadstart |
Properties
void | error |
String | readyState |
String | result |
Functions
void
abort
()
function to abort the fileReading process
Supported Platforms | |
---|---|
- BlackBerry OS 5.0+ | |
- BlackBerry PlayBook 1.0+ |
Code Example:
|
Events
static
void
FileReader.onabort
()
function that is called when the read has been aborted
Supported Platforms | |
---|---|
- BlackBerry PlayBook 1.0+ | |
- BlackBerry 10 |
static
void
FileReader.onerror
()
assigned to the function that will be executed when there is an error
Supported Platforms | |
---|---|
- BlackBerry PlayBook 1.0+ | |
- BlackBerry 10 |
static
void
FileReader.onload
()
assigned to the function that is called when the read starts
Supported Platforms | |
---|---|
- BlackBerry PlayBook 1.0+ | |
- BlackBerry 10 |
Properties
static
readonly
void
error
An object containing errors. (FileError)
Supported Platforms | |
---|---|
- BlackBerry PlayBook 1.0+ | |
- BlackBerry 10 |
Documentation generated by JsDoc Toolkit 2.4.0 on Sun Dec 30 2012 18:15:38 GMT-0500 (EST)