Skip to content

StorageHelper

Pico edited this page Jul 29, 2020 · 9 revisions

float getStorageFreeSize()

The remaining storage space inside the device.
return:
Size of remaining space, e.g. 16384


float getStorageTotalSize()

Total storage space inside the device.
return:
Total space size, e.g. 6114


void updateFile(String filePath)

Update storaged file.
parameter:
filePath: the path of file you need to update.


String getSDCardPath()

Get external SD card path. e.g., "storage/3263-3533".
return:
The path of the SD card.