# RemoteCallbackList.Builder.InterfaceDiedCallback

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# InterfaceDiedCallback

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/os/RemoteCallbackList.Builder.InterfaceDiedCallback "View this page in Java")  

```
interface InterfaceDiedCallback<E : IInterface!>
```

|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [android.os.RemoteCallbackList.Builder.InterfaceDiedCallback](https://developer.android.com/reference/kotlin/android/os/RemoteCallbackList.Builder.InterfaceDiedCallback#) |

For notifying when the process hosting a callback interface has died.

## Summary

|                                                                                                                                                                                                                                                                                                                Public methods                                                                                                                                                                                                                                                                                                                 ||
|--------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onInterfaceDied](https://developer.android.com/reference/kotlin/android/os/RemoteCallbackList.Builder.InterfaceDiedCallback#onInterfaceDied(android.os.RemoteCallbackList,%20android.os.RemoteCallbackList.Builder.InterfaceDiedCallback.E,%20kotlin.Any))`(`remoteCallbackList:` `[RemoteCallbackList](https://developer.android.com/reference/kotlin/android/os/RemoteCallbackList)<E>`, `deadInterface:` `E`, `cookie:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` Invoked when a callback interface has died. |

## Public methods

### onInterfaceDied

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
abstract fun onInterfaceDied(
    remoteCallbackList: RemoteCallbackList<E>, 
    deadInterface: E, 
    cookie: Any?
): Unit
```

Invoked when a callback interface has died.

|                                                                                                 Parameters                                                                                                 ||
|----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `remoteCallbackList` | [RemoteCallbackList](https://developer.android.com/reference/kotlin/android/os/RemoteCallbackList)\<E\>:the list that the interface was registered with. This value cannot be`null`. |
| `deadInterface`      | E:the interface that has died.                                                                                                                                                       |
| `cookie`             | [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?:the cookie specified on interface registration. This value may be`null`.                                 |