Skip to content

Application: protectedDataAvailable property ​

The protectedDataAvailable property indicates whether encrypted, protected files can be read right now.

Value ​

A boolean.

ValueMeaning
trueEncrypted, protected files can be read
falseThe device is locked, and these files can't be read

Examples ​

js
console.log(application.protectedDataAvailable);

Result: prints whether encrypted, protected files can currently be read.

Corresponding iOS API ​

UIApplication.protectedDataAvailable.

See also ​