summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Andy Wickham <awickham@google.com> 2024-10-15 00:47:02 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-10-15 00:47:02 +0000
commitf915f34c7a53d37ae62de3d3426dff8330de27b8 (patch)
tree8bb2b70753d69bca1e9077f28e8c4427e0975298
parentdcc5396d45bdcb864ebbefa2b52f146370f2449d (diff)
parent0ee4bebd141824fd100f683adf58a2410719426f (diff)
Merge "Adds hidden constant for FEATURE_CONTEXTUAL_SEARCH." into main
-rw-r--r--core/java/android/app/contextualsearch/ContextualSearchManager.java9
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. */