Skip to content

Instantly share code, notes, and snippets.

@yektasarioglu
Created October 30, 2020 18:56
Show Gist options
  • Save yektasarioglu/27d3bcb3d9cf42b17cc0a225efbe4d8c to your computer and use it in GitHub Desktop.
Save yektasarioglu/27d3bcb3d9cf42b17cc0a225efbe4d8c to your computer and use it in GitHub Desktop.
initializeUI()
private fun initializeUI() {
binding.apply {
withPickUpUIRadioButton.setOnClickListener { isPickUpUI = true }
withoutPickUpUIRadioButton.setOnClickListener { isPickUpUI = false }
asrButton.setOnClickListener {
if (isPickUpUI) startRecognizeWithSpeechPickupUI()
else startRecognizeWithoutSpeechPickupUI()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment