summaryrefslogtreecommitdiff
path: root/java/com/android/incallui
diff options
context:
space:
mode:
authorerfanian <erfanian@google.com>2018-05-31 11:05:01 -0700
committerCopybara-Service <copybara-piper@google.com>2018-06-01 18:14:22 -0700
commitea49b803f0b54de2f95c2690aa7f0c4bff62197a (patch)
treee1609fc675c9cf92f28d30921eb098c1fdf68950 /java/com/android/incallui
parent99c51dbe8772a1143ecf45cae472f2a68f9a7278 (diff)
Add new default interface.
Bug: 79701706 Test: tap PiperOrigin-RevId: 198747775 Change-Id: I3bd0d26ee6621ebe428e4e8c82b51959d313608f
Diffstat (limited to 'java/com/android/incallui')
-rw-r--r--java/com/android/incallui/speakeasy/SpeakEasyCallManager.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/java/com/android/incallui/speakeasy/SpeakEasyCallManager.java b/java/com/android/incallui/speakeasy/SpeakEasyCallManager.java
index b060f64cb..f2916f46f 100644
--- a/java/com/android/incallui/speakeasy/SpeakEasyCallManager.java
+++ b/java/com/android/incallui/speakeasy/SpeakEasyCallManager.java
@@ -54,6 +54,16 @@ public interface SpeakEasyCallManager {
*/
boolean isAvailable(@NonNull Context context);
+ /**
+ * Optional: Performs work necessary to happen-before callers use other methods on this interface.
+ *
+ * @apiNote Use of this API is completely optional, and callers are NOT required to invoke this
+ * method prior to using other methods on the interface.
+ * @implSpec Other members of this interface always promise to do any required initialization work
+ * at the time they are invoked. This method will always be idempotent.
+ */
+ default void performManualInitialization() {}
+
/** Returns the config provider flag associated with the feature. */
@NonNull
String getConfigProviderFlag();