Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val recognitionListener = object : RecognitionListener {
- val recognitionListener = object : RecognitionListener {
- override fun onResults(results: Bundle?) {
- checkCandidates(results!!.getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION))
- }
- override fun onError(error: Int) {
- val toast = Toast.makeText(applicationContext, "Looks like something went wrong!!", Toast.LENGTH_LONG)
- toast.show()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement