Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.41 KB | None | 0 0
  1. val recognitionListener = object : RecognitionListener {
  2.     val recognitionListener = object : RecognitionListener {
  3.         override fun onResults(results: Bundle?) {
  4.             checkCandidates(results!!.getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION))
  5.         }
  6.         override fun onError(error: Int) {
  7.             val toast = Toast.makeText(applicationContext, "Looks like something went wrong!!", Toast.LENGTH_LONG)
  8.             toast.show()
  9.         }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement