Loading..

Hidden event methods on Android

Question 1 Which of the following 4 methods remove an event listener on Android? var id = view.addEventListener('click', onClick); view.removeEventListener('click', onClick); view.removeEventListener('click', id); view.removeListener('click', onClick); view.removeAllListeners('click'); The correct answer: all of them! Question 2 Which of the following 4 methods then add an event listener on Android? view.addEventListener('click', onClick); view.addListener('click', onClick); view.on('click', onClick); view.once('click', onClick); […]