setSpeechToTextVisible

public final Unit setSpeechToTextVisible(Boolean visible, ErrorHandler handler)

Set Voice speech-to-text Result Visibility.

Control Voice speech-to-text Result Whether In display on UI, visible Status will Sync to Local Data database.

Usage Example:

// show speech-to-text Result
message.setSpeechToTextVisible(true) { error ->
if (error == null) {
// Set successfully
}
}

// hide speech-to-text Result
message.setSpeechToTextVisible(false) { error ->
// ...
}

Parameters

visible

Whether visible

handler

Operation result callback.Success When error null