Added in API level 1

DeathRecipient

interface DeathRecipient
android.os.IBinder.DeathRecipient

Interface for receiving a callback when the process hosting an IBinder has gone away.

Summary

Public methods
abstract Unit

open Unit

Interface for receiving a callback when the process hosting an IBinder has gone away.

Public methods

binderDied

Added in API level 1
abstract fun binderDied(): Unit

binderDied

Added in API level 34
open fun binderDied(who: IBinder): Unit

Interface for receiving a callback when the process hosting an IBinder has gone away.

Parameters
who IBinder: The IBinder that has become invalid This value cannot be null.