SHARE
TWEET

Untitled

a guest May 23rd, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top