cortinico/slidetoact

Slide Complete listener assistance

akshay-nayak opened this issue · 2 comments

How do i implement slide complete listener in kotlin ? it just doesnt seem to work

val sta = root.findViewById<SlideToActView>(R.id.slider_markattendance)
        sta.OnSlideCompleteListener {

            override fun onSlideComplete(@NonNull view: SlideToActView) {

            }
        })

You can do it in this way:

sta = object : OnSlideCompleteListener {
            override fun onSlideComplete(view: SlideToActView) {
                TODO("Not yet implemented")
            }
        }