Name | Description | Type | Use |
---|---|---|---|
callbacks | Passed to verify whether it is possible to acquire a file. |
undefined |
required |
The getFile
method's callbacks
object can
be structured as follows:
{ onSuccess: function(result) { printText('File chooser success : ' + result.filePath + ' ' + result.fileSize) }, onFailure: function(error) {...} }
The table below lists all callbacks supported by the method.
Name | Description | Type | Use |
---|---|---|---|
onSuccess() | A function called when the process succeeds. As a parameter it takes an object with the following two properties:
|
function |
required |
onFailure() | A function called when the file cannot be acquired. It passes an error message. | function |
required |