CallbackRegistry

CallbackRegistry is responsible for managing the registration and retrieval of callbacks. It allows for the registration of callbacks by type and provides a method to retrieve callbacks based on a JSON array.

Functions

Link copied to clipboard
fun callback(journey: Journey, array: JsonArray): List<Callback>

Retrieves a list of callbacks based on the provided JSON array.

Link copied to clipboard
fun callbacks(): <Error class: unknown class>

Returns a map of registered callbacks.

Link copied to clipboard
fun inject(continueNode: ContinueNode)

Injects the Journey instances into the callbacks.

Link copied to clipboard
fun register(type: String, block: () -> Callback)

Registers a callback with the specified type.