<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIApplication/isProtectedDataAvailable",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIApplication(py)protectedDataAvailable"
  },
  "title" : "isProtectedDataAvailable"
}
-->

# isProtectedDataAvailable

A Boolean value that indicates whether content protection is active.

```
nonisolated var isProtectedDataAvailable: Bool { get }
```

## Discussion

The value of this property is <doc://com.apple.documentation/documentation/Swift/false> if data protection is enabled and the device is currently locked. The value of this property is set to <doc://com.apple.documentation/documentation/Swift/true> if the device is unlocked or if content protection is not enabled.

When the value of this property is <doc://com.apple.documentation/documentation/Swift/false>, files that were assigned the <doc://com.apple.documentation/documentation/Foundation/FileProtectionType/complete> or <doc://com.apple.documentation/documentation/Foundation/FileProtectionType/completeUnlessOpen> protection key cannot be read or written by your app. The user must unlock the device before your app can access them.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)