diff options
| author | 2020-04-01 18:35:05 +0000 | |
|---|---|---|
| committer | 2020-04-01 18:35:05 +0000 | |
| commit | 2608950d1079bb2817bd767690755ebc330bf19d (patch) | |
| tree | 79198a752fc86dff3f653e7c7937ccf5e490d68a | |
| parent | 7abd26ae78cfeac323b62d981cf2b63fcb0ff81b (diff) | |
| parent | 16687cbce9e17930852f19f937fc2c073c2c8769 (diff) | |
Merge "Document linkToDeath behavior on object cleanup."
| -rw-r--r-- | core/java/android/os/IBinder.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/core/java/android/os/IBinder.java b/core/java/android/os/IBinder.java index c43644dbd960..f6eb8c2799ea 100644 --- a/core/java/android/os/IBinder.java +++ b/core/java/android/os/IBinder.java @@ -293,13 +293,16 @@ public interface IBinder { * then the given {@link DeathRecipient}'s * {@link DeathRecipient#binderDied DeathRecipient.binderDied()} method * will be called. - * + * + * <p>This will automatically be unlinked when all references to the linked + * binder proxy are dropped.</p> + * * <p>You will only receive death notifications for remote binders, - * as local binders by definition can't die without you dying as well. - * + * as local binders by definition can't die without you dying as well.</p> + * * @throws RemoteException if the target IBinder's * process has already died. - * + * * @see #unlinkToDeath */ public void linkToDeath(@NonNull DeathRecipient recipient, int flags) |