MonoTouch: How to Set the Do Not Back Up Attribute

I am trying to follow Apple's local file storage guidelines below. How to set the “not back” attribute to files created by my applications in MonoTouch?

The technical docs are here, but I can't find this in MonoTouch: https://developer.apple.com/library/ios/#qa/qa1719/_index.html

Use the do not back up attribute to specify files that should remain on the device even in low capacity environments. Use this attribute with data that can be recreated, but it must be preserved even at low levels for your application to work correctly or because clients expect it to be available offline. This attribute works on marked files no matter what directory they are in, including the Documents folder. These files will not be cleaned up and will not be included in the iCloud or iTunes user backup. Because these files use storage space on the device, your application is responsible for periodically monitoring and cleaning these files.

+4
source share
1 answer

This is available with MonoTouch 5.2 (and iOS 5.0.1) inside the MonoTouch.Foundation.NSFileManager type, the SetSkipBackupAttribute and GetSkipBackupAttribute .

+5
source

Source: https://habr.com/ru/post/1397341/


All Articles