Merge "Make binderDied(IBinder who) public API"

This commit is contained in:
Treehugger Robot
2022-05-17 17:37:10 +00:00
committed by Gerrit Code Review
2 changed files with 5 additions and 2 deletions

View File

@@ -30074,6 +30074,7 @@ package android.os {
public static interface IBinder.DeathRecipient { public static interface IBinder.DeathRecipient {
method public void binderDied(); method public void binderDied();
method public default void binderDied(@NonNull android.os.IBinder);
} }
public interface IInterface { public interface IInterface {

View File

@@ -311,9 +311,11 @@ public interface IBinder {
public void binderDied(); public void binderDied();
/** /**
* @hide * Interface for receiving a callback when the process hosting an IBinder
* has gone away.
* @param who The IBinder that has become invalid
*/ */
default void binderDied(IBinder who) { default void binderDied(@NonNull IBinder who) {
binderDied(); binderDied();
} }
} }