Instance Property


A Boolean value indicating whether content protection is active.


@property(nonatomic, readonly, getter=isProtectedDataAvailable) BOOL protectedDataAvailable;


The value of this property is NO if data protection is enabled and the device is currently locked. The value of this property is set to YES if the device is unlocked or if content protection is not enabled.

When the value of this property is NO, files that were assigned the NSFileProtectionComplete or NSFileProtectionCompleteUnlessOpen protection key cannot be read or written by your app. The user must unlock the device before your app can access them.