destruct

open override fun destruct()

Destroys this controller and releases all associated resources.

Cancels the controller's coroutine scope, detaches the chat fragment, releases the chat handler, and clears the registered ChatEventListener. After calling this method the controller cannot be reused; build a new one via Builder for any subsequent chat.

Destruction is idempotent: subsequent calls are safely no-ops. Use wasDestructed to check whether the controller has already been destroyed.