Created
October 30, 2020 18:56
-
-
Save yektasarioglu/27d3bcb3d9cf42b17cc0a225efbe4d8c to your computer and use it in GitHub Desktop.
initializeUI()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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