diff options
Diffstat (limited to 'java/com/android/dialer/precall/PreCallCoordinator.java')
-rw-r--r-- | java/com/android/dialer/precall/PreCallCoordinator.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/java/com/android/dialer/precall/PreCallCoordinator.java b/java/com/android/dialer/precall/PreCallCoordinator.java index cb3221afd..9c24e0d69 100644 --- a/java/com/android/dialer/precall/PreCallCoordinator.java +++ b/java/com/android/dialer/precall/PreCallCoordinator.java @@ -21,6 +21,8 @@ import android.support.annotation.MainThread; import android.support.annotation.NonNull; import android.support.annotation.VisibleForTesting; import com.android.dialer.callintent.CallIntentBuilder; +import com.android.dialer.function.Consumer; +import com.google.common.util.concurrent.ListenableFuture; /** * Runs {@link PreCallAction} one by one to prepare a {@link @@ -65,4 +67,9 @@ public interface PreCallCoordinator { @MainThread @NonNull PendingAction startPendingAction(); + + <Output> void listen( + ListenableFuture<Output> future, + Consumer<Output> successListener, + Consumer<Throwable> failureListener); } |