Merge "Document linkToDeath behavior on object cleanup." am: 2608950d10 am: f276d0b74d am: 179ba84aab am: c5b095ba54
Change-Id: I2a52b9242f2b5facd64dec53611778d17c879cea
This commit is contained in:
@@ -313,13 +313,16 @@ public interface IBinder {
|
|||||||
* then the given {@link DeathRecipient}'s
|
* then the given {@link DeathRecipient}'s
|
||||||
* {@link DeathRecipient#binderDied DeathRecipient.binderDied()} method
|
* {@link DeathRecipient#binderDied DeathRecipient.binderDied()} method
|
||||||
* will be called.
|
* 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,
|
* <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
|
* @throws RemoteException if the target IBinder's
|
||||||
* process has already died.
|
* process has already died.
|
||||||
*
|
*
|
||||||
* @see #unlinkToDeath
|
* @see #unlinkToDeath
|
||||||
*/
|
*/
|
||||||
public void linkToDeath(@NonNull DeathRecipient recipient, int flags)
|
public void linkToDeath(@NonNull DeathRecipient recipient, int flags)
|
||||||
|
|||||||
Reference in New Issue
Block a user