Specify this constant if you want to read an item’s metadata without triggering a download.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
static var immediatelyAvailableMetadataOnly: NSFile Coordinator.Reading Options { get }
Discussion
Specifying this option grants the coordinated read immediately (barring any conflicts with other readers, writers or file presenters on the same system), instead of waiting for the system to download the file’s contents and any additional metadata (for example, conflicting versions or thumbnails).
Attempting to actually read the item’s contents during this coordinated read may give unexpected results or fail.