34,333
edits
Changes
→Implementing the Listener Class
.
.
</pre>
Declaring that the class implements the listener interfaces mandates that the corresponding methods also be implemented in the class:
<pre>
class CommonGesturesActivity : AppCompatActivity(),
GestureDetector.OnGestureListener, GestureDetector.OnDoubleTapListener