---
title: isProtectedDataAvailable
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiapplication/isprotecteddataavailable
---

# isProtectedDataAvailable

A Boolean value that indicates whether content protection is active.

## Declaration

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

## Discussion

Discussion The value of this property is false if data protection is enabled and the device is currently locked. The value of this property is set to true if the device is unlocked or if content protection is not enabled. When the value of this property is false, files that were assigned the complete or completeUnlessOpen protection key cannot be read or written by your app. The user must unlock the device before your app can access them.

## See Also

### Accessing protected content

- [protectedDataDidBecomeAvailableNotification](uikit/uiapplication/protecteddatadidbecomeavailablenotification.md)
- [protectedDataWillBecomeUnavailableNotification](uikit/uiapplication/protecteddatawillbecomeunavailablenotification.md)
