* Registers an event handle in case if the touch is detected. * @param {function(boolean)} handler * @param {boolean=} opt_fireImmediately * @return {!UnlistenDef}
(handler, opt_fireImmediately)
| 109 | * @return {!UnlistenDef} |
| 110 | */ |
| 111 | onTouchDetected(handler, opt_fireImmediately) { |
| 112 | if (opt_fireImmediately) { |
| 113 | handler(this.isTouchDetected()); |
| 114 | } |
| 115 | return this.touchDetectedObservable_.add(handler); |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Whether the mouse input has been detected. |
no test coverage detected