* Registers an event handle in case if the mouse is detected. * @param {function(boolean)} handler * @param {boolean=} opt_fireImmediately * @return {!UnlistenDef}
(handler, opt_fireImmediately)
| 130 | * @return {!UnlistenDef} |
| 131 | */ |
| 132 | onMouseDetected(handler, opt_fireImmediately) { |
| 133 | if (opt_fireImmediately) { |
| 134 | handler(this.isMouseDetected()); |
| 135 | } |
| 136 | return this.mouseDetectedObservable_.add(handler); |
| 137 | } |
| 138 | |
| 139 | /** |
| 140 | * Whether the keyboard input is currently active. |
no test coverage detected