public interface CLSDataStoreDelegate
| Modifier and Type | Method and Description |
|---|---|
CLSContext |
createContextForIdentifierParentContextParentIdentifierPath(java.lang.String identifier,
CLSContext parentContext,
NSArray<java.lang.String> parentIdentifierPath)
Implement to return a new context with the supplied identifier as a child of the parent context.
|
CLSContext createContextForIdentifierParentContextParentIdentifierPath(java.lang.String identifier, CLSContext parentContext, NSArray<java.lang.String> parentIdentifierPath)
This method is invoked for missing contexts in: @code -[CLSDataStore contextsMatchingIdentifierPath:completion:] @endcode and @code -[CLSContext descendantMatchingIdentifierPath:completion:] @endcode It will be called successively for each identifier in the path that is not found. This helps centralize context creation in one place. [@note] New contexts returned in this method are automatically saved.
identifier - Identifier for the new context.parentContext - Parent of the new context.parentIdentifierPath - Ordered list of identifiers leading to the parent context.