call fragment function from listener interface?
How do I call a fragment function from a listener interface like this?
viewBinding.myImg.setOnPhotoTapListener(PhotoTapListener())
}
private class PhotoTapListener : OnPhotoTapListener {
override fun onPhotoTap(view: ImageView?, x: Float, y: Float) {
val xPercentage = x * 100f
val yPercentage = y * 100f
Log.d("abc", "photo tap")
// doStuff()