Package apple.classkit.protocol
Interface CLSDataStoreDelegate
-
public interface CLSDataStoreDelegate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CLSContextcreateContextForIdentifierParentContextParentIdentifierPath(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.
-
-
-
Method Detail
-
createContextForIdentifierParentContextParentIdentifierPath
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. 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.- Parameters:
identifier- Identifier for the new context.parentContext- Parent of the new context.parentIdentifierPath- Ordered list of identifiers leading to the parent context.- Returns:
- The new context for the supplied identifier. The new context is automatically saved.
-
-