``` interface SomeListener { fun onSuccess() }...
# android
j
Copy code
interface SomeListener {
    fun onSuccess()
}

class MainActivity : AppCompatActivity(), SomeListener {
    override fun onSuccess() {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)


    }
}