setSpeechToTextVisible

public final Unit setSpeechToTextVisible(Boolean isVisible, ErrorHandler handler)

Sets the visibility of the speech-to-text result.

Controls whether the speech-to-text result is displayed in the UI. The visibility state is persisted to the local database.

message.setSpeechToTextVisible(true) { error ->
if (error == null) {
// Set successfully
}
}

Parameters

isVisible

Whether the speech-to-text result should be visible

handler

Operation result callback; error is null on success