SpeechTilesAndamento Docs
Get started
SDK Reference · Method

setConversationCallback

Registers the application callback object used by the conversation runtime.

Declaration

public func setConversationCallback(
    _ callback: STConversationCallback
) -> STResult

Overview

The runner must already be initialized. Calling this method before initialize() returns .conversationNotInitialized.

STConversationCallback supplies default implementations for every callback, so applications implement only the events they need.

Callback registration

Register the application callback after initializing the runner and before starting conversation execution. The callback receives asynchronous lifecycle and media notifications.

Parameters

  • callback — The application-provided object conforming to STConversationCallback that receives conversation lifecycle, recognition, and other callbacks. Register it after initializing the runner and before starting execution.

Usage example

guard conversation.initialize() == .success else { return }
_ = conversation.setConversationCallback(self)

Result handling

This method returns an STResult. Check the returned value for success or failure.

See Also