36.13 Implementing the onGesturePerformed Method
All that remains before an initial test run of the application can be performed is to implement the OnGesturePerformed callback method. This is the method which will be called when a gesture is performed on the GestureOverlayView instance:
package com.ebookfrenzy.customgestures
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.gesture.GestureLibraries
import android.gesture.GestureLibrary
import android.gesture.GestureOverlayView
import android.gesture.GestureOverlayView.OnGesturePerformedListener
import android.widget.Toast
import android.gesture.Gesture
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity(), OnGesturePerformedListener {
.
.
override fun onGesturePerformed(overlay: GestureOverlayView,
...