File APIs

getSavedFileList

Get information of all saved files.

Overview

my.getSavedFileList retrieves information about all files that have been saved locally using my.saveFile.

Sample Code

my.getSavedFileList({
  success: (res) => {
    console.log(JSON.stringify(res));
  }
});

Parameters

Object type with the following attributes:

PropertyTypeRequiredDescription
successFunctionNoCallback function upon call success.
failFunctionNoCallback function upon call failure.
completeFunctionNoCallback function upon call completion (to be executed upon either call success or failure).

Success Callback Function

The incoming parameter is of the Object type with the following attributes:

PropertyTypeDescription
fileListListFile list.

File Object Attribute

Each file object in the list contains:

PropertyTypeDescription
sizeNumberFile size.
createTimeNumberCreated time.
apFilePathStringFile path.

Usage Notes

  • Returns a list of all files saved via my.saveFile
  • Each file object includes size, creation time, and path
  • Use this API to manage locally saved files