From ea49b803f0b54de2f95c2690aa7f0c4bff62197a Mon Sep 17 00:00:00 2001 From: erfanian Date: Thu, 31 May 2018 11:05:01 -0700 Subject: Add new default interface. Bug: 79701706 Test: tap PiperOrigin-RevId: 198747775 Change-Id: I3bd0d26ee6621ebe428e4e8c82b51959d313608f --- java/com/android/incallui/speakeasy/SpeakEasyCallManager.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'java/com/android/incallui') 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(); -- cgit v1.2.3