diff options
| author | 2024-08-08 02:25:09 +0000 | |
|---|---|---|
| committer | 2024-10-08 22:00:18 +0000 | |
| commit | 0ee4bebd141824fd100f683adf58a2410719426f (patch) | |
| tree | 647db35cfe5eae3dd56de0812074e6fa6fe95007 | |
| parent | 7d5a0d22744d0d95e0808f9309bc9412d6288b3f (diff) | |
Adds hidden constant for FEATURE_CONTEXTUAL_SEARCH.
Bug: Bug: 353715553
Test: Manual
Flag: EXEMPT convenience
Change-Id: I21dac3289a1b74dd9808a5fb15f882c94e84c992
| -rw-r--r-- | core/java/android/app/contextualsearch/ContextualSearchManager.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/app/contextualsearch/ContextualSearchManager.java b/core/java/android/app/contextualsearch/ContextualSearchManager.java index cfbe7416bf9d..3438cc861661 100644 --- a/core/java/android/app/contextualsearch/ContextualSearchManager.java +++ b/core/java/android/app/contextualsearch/ContextualSearchManager.java @@ -102,6 +102,7 @@ public final class ContextualSearchManager { * Only supposed to be used with ACTON_LAUNCH_CONTEXTUAL_SEARCH. */ public static final String EXTRA_TOKEN = "android.app.contextualsearch.extra.TOKEN"; + /** * Intent action for contextual search invocation. The app providing the contextual search * experience must add this intent filter action to the activity it wants to be launched. @@ -111,6 +112,14 @@ public final class ContextualSearchManager { public static final String ACTION_LAUNCH_CONTEXTUAL_SEARCH = "android.app.contextualsearch.action.LAUNCH_CONTEXTUAL_SEARCH"; + /** + * System feature declaring that the device supports Contextual Search. + * + * @hide + */ + public static final String FEATURE_CONTEXTUAL_SEARCH = + "com.google.android.feature.CONTEXTUAL_SEARCH"; + /** Entrypoint to be used when a user long presses on the nav handle. */ public static final int ENTRYPOINT_LONG_PRESS_NAV_HANDLE = 1; /** Entrypoint to be used when a user long presses on the home button. */ |