SDK Reference · Callback
conversationModuleWillEnd
Called as processing of a Conversation module is ending.
func conversationModuleWillEnd(moduleID: String)
The callback supplies the module identifier so the application can correlate lifecycle state with its own UI or business state.
Behavior
Reports that processing of the named conversation module is ending.
Parameters
moduleID(String): Identifier of the conversation module associated with this callback.
Timing and execution
When a runtime-field update or client decision must affect the framework immediately, perform it synchronously within this callback, before returning. UI updates that do not affect the immediate conversation decision can be dispatched separately.
Swift example
Implement this method in a class conforming to STConversationCallback. This focused example demonstrates the callback entry point; adapt application behavior to your own workflow.
public func conversationModuleWillEnd(moduleID: String) {
if moduleID == "node.ask" {
print("Finished module: \(moduleID)")
}
}