An interface the data store uses to request new contexts.
- iOS 11.3+
When you request a context from the data store, for example using a call to the
descendant method, the data store first tries to locate an existing context matching the search criterion (an identifier path in this case) in its database. Depending on certain conditions, the context might already exist in the database from the last time you requested it. If it does, the data store returns the stored context. But if it doesn’t exist, the data store asks its delegate to build a new context.
Adopt the data store delegate protocol to provide contexts on demand.
You can alternatively build contexts directly without relying on the delegate callback. However, it’s generally most efficient to use the delegate protocol, building contexts only when they’re missing from the data store.