From da34022d1226782e830845c5a83ce355c3d76ea4 Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Wed, 22 Nov 2017 10:14:18 -0500 Subject: [PATCH] Add meta-data constant for activity->slice Test: its a constant Change-Id: I331358bd9619beb413dfa98525b0f2589eaea8ae --- core/java/android/app/slice/Slice.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/java/android/app/slice/Slice.java b/core/java/android/app/slice/Slice.java index c5f227215b178..ddc5760a6b3d2 100644 --- a/core/java/android/app/slice/Slice.java +++ b/core/java/android/app/slice/Slice.java @@ -57,6 +57,16 @@ public final class Slice implements Parcelable { HINT_NO_TINT, HINT_PARTIAL}) public @interface SliceHint{ } + /** + * The meta-data key that allows an activity to easily be linked directly to a slice. + *

+ * An activity can be statically linked to a slice uri by including a meta-data item + * for this key that contains a valid slice uri for the same application declaring + * the activity. + * @hide + */ + public static final String SLICE_METADATA_KEY = "android.metadata.SLICE_URI"; + /** * Hint that this content is a title of other content in the slice. This can also indicate that * the content should be used in the shortcut representation of the slice (icon, label, action),