-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpeechRecognitionResultList.cljs
45 lines (32 loc) · 1.48 KB
/
SpeechRecognitionResultList.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
(ns web.speech.SpeechRecognitionResultList
"The SpeechRecognitionResultList interface of the Web Speech API
a list of `web.speech.SpeechRecognitionResult` objects, or a
one if results are being captured in `continuous` mode."
(:refer-clojure :exclude []))
(defn item
"Method.
The item getter of the `web.speech.SpeechRecognitionResultList`
is a standard getter — it allows `web.speech.SpeechRecognitionResult`
in the list to be accessed via array syntax.
`var myResult = speechRecognitionResultListInstance[0];`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResultList/item`"
[this ]
(-> this (.item)))
(defn length
"Property.
The length read-only property of the `web.speech.SpeechRecognitionResultList`
returns the length of the \\\"array\\\" — the number of `web.speech.SpeechRecognitionResult`
in the list.
`var myLength = speechRecognitionResultListInstance.length;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResultList/length`"
[this]
(-> this (.-length)))
(defn set-length!
"Property.
The length read-only property of the `web.speech.SpeechRecognitionResultList`
returns the length of the \\\"array\\\" — the number of `web.speech.SpeechRecognitionResult`
in the list.
`var myLength = speechRecognitionResultListInstance.length;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResultList/length`"
[this val]
(aset this "length" val))