Saving/managing local files

If we need to store files in LocalDB for offline access, is there a way to check to make sure we don't run out of available space on the device before committing the file/files?

It is not currently possible to programmatically check the device's storage details. This request will be shared with our product team.