Conference terminate Callback

Using tis to start call, How do i get the callback when call is terminated from the Hangup button inside the Jitsi View @saghul please help

val options = JitsiMeetConferenceOptions.Builder()
.setRoom(“https://meet.jit.si/$invite_link”)
.setUserInfo(user)
.build()
view!!.join(options)
setContentView(view)

Also i am stuck here after pressing Red Button