getDetails
Last updated
Last updated
Gets the details of a file.
Name | Description | Input Type | Default | Options | Required |
---|---|---|---|---|---|
Description | Output Type |
---|---|
The functions to be executed if the details of the file are retrieved successfully.
The functions to be executed if the details of the file are not retrieved.
In this example, we will get a file details of an image by using File.getDetails
function.
Drag a button component to a page in the mobile designer, select the event press
and drag the File.getDetails
function to the event flow and fill in the filepath
parameter.
On the File.getDetails
function callback add a Log.write
function and change it's value param type to input.
Open the installed app on a device with a debugger on and try to press the button.
If the file exists, user should be able to see the details on the console.
Description | Output Type |
---|---|
Description | Output Type |
---|---|
filePath
The path the file is stored in.
Text
-
-
Yes
Returns file details or error message.
Any
Returns the details of the file.
Object
Returns an error message.
Text