MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / isExternalStorageReadOnly

Function isExternalStorageReadOnly

packages/core/utils/index.android.ts:100–107  ·  view source on GitHub ↗

* Check whether external storage is read only * * @returns {boolean} whether the external storage is read only

()

Source from the content-addressed store, hash-verified

98 * @returns {boolean} whether the external storage is read only
99 */
100function isExternalStorageReadOnly(): boolean {
101 const extStorageState = android.os.Environment.getExternalStorageState();
102 if (android.os.Environment.MEDIA_MOUNTED_READ_ONLY === extStorageState) {
103 return true;
104 }
105
106 return false;
107}
108
109/**
110 * Checks whether external storage is available

Callers 1

openFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected