Stay organized with collections
Save and categorize content based on your preferences.
InterfaceDiedCallback
interface InterfaceDiedCallback<E : IInterface!>
For notifying when the process hosting a callback interface has died.
Summary
Public methods |
abstract Unit |
Invoked when a callback interface has died.
|
Public methods
onInterfaceDied
abstract fun onInterfaceDied(
remoteCallbackList: RemoteCallbackList<E>,
deadInterface: E,
cookie: Any?
): Unit
Invoked when a callback interface has died.
Parameters |
remoteCallbackList |
RemoteCallbackList<E>: the list that the interface was registered with. This value cannot be null . |
deadInterface |
E: the interface that has died. |
cookie |
Any?: the cookie specified on interface registration. This value may be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-03-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-13 UTC."],[],[],null,["# RemoteCallbackList.Builder.InterfaceDiedCallback\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nInterfaceDiedCallback\n=====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/os/RemoteCallbackList.Builder.InterfaceDiedCallback \"View this page in Java\") \n\n```\ninterface InterfaceDiedCallback\u003cE : IInterface!\u003e\n```\n\n|------------------------------------------------------------------|\n| [android.os.RemoteCallbackList.Builder.InterfaceDiedCallback](#) |\n\nFor notifying when the process hosting a callback interface has died.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onInterfaceDied](#onInterfaceDied(android.os.RemoteCallbackList,%20android.os.RemoteCallbackList.Builder.InterfaceDiedCallback.E,%20kotlin.Any))`(`remoteCallbackList:` `[RemoteCallbackList](/reference/kotlin/android/os/RemoteCallbackList)\u003cE\u003e`, `deadInterface:` `E`, `cookie:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` Invoked when a callback interface has died. |\n\nPublic methods\n--------------\n\n### onInterfaceDied\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onInterfaceDied(\n remoteCallbackList: RemoteCallbackList\u003cE\u003e, \n deadInterface: E, \n cookie: Any?\n): Unit\n```\n\nInvoked when a callback interface has died.\n\n| Parameters ||\n|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `remoteCallbackList` | [RemoteCallbackList](/reference/kotlin/android/os/RemoteCallbackList)\\\u003cE\\\u003e: the list that the interface was registered with. This value cannot be `null`. |\n| `deadInterface` | E: the interface that has died. |\n| `cookie` | [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?: the cookie specified on interface registration. This value may be `null`. |"]]