Decodes a previously-archived object graph, returning the root object as one of the specified classes.
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
- watchOS 4.0+
- Xcode 9.0+
A set of classes, at least one of which the root object should conform to.
An object graph previously encoded by
The decoded root of the object graph, as an instance of one of the specified classes, or
nil if an error occurred.
This method produces an error if
data does not contain valid keyed data.