Instance Method

descendant(matchingIdentifierPath:completion:)

Finds the context with the given identifier path relative to this context.

Declaration

func descendant(matchingIdentifierPath identifierPath: [String], completion: @escaping (CLSContext?, Error?) -> Void)

Parameters

identifierPath

The identifier path of the context to find, relative to the current context.

completion

A closure the method calls with the found context, or nil if none could be found, and an error indicating the reason for failure, if any.

Discussion

See Also

Managing Context Hierarchy

var parent: CLSContext?

The direct ancestor of this context.

func removeFromParent()

Removes the context from its parent.

func addChildContext(CLSContext)

Adds the specifed context as a child of the context receiving the method call.