diff options
Diffstat (limited to 'androidx/slice/core/SliceHints.java')
-rw-r--r-- | androidx/slice/core/SliceHints.java | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/androidx/slice/core/SliceHints.java b/androidx/slice/core/SliceHints.java index e35ae35d..c29ad568 100644 --- a/androidx/slice/core/SliceHints.java +++ b/androidx/slice/core/SliceHints.java @@ -18,34 +18,24 @@ package androidx.slice.core; import static androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP; +import static java.lang.annotation.RetentionPolicy.SOURCE; + import androidx.annotation.IntDef; import androidx.annotation.RestrictTo; +import java.lang.annotation.Retention; + /** * Temporary class to contain hint constants for slices to be used. * @hide */ @RestrictTo(LIBRARY_GROUP) public class SliceHints { - /** - * Subtype to range an item representing a range. - */ - public static final String SUBTYPE_RANGE = "range"; - - /** - * Subtype indicating that this content is the maximum value for a range. - */ - public static final String SUBTYPE_MAX = "max"; - - /** - * Subtype indicating that this content is the current value for a range. - */ - public static final String SUBTYPE_VALUE = "value"; /** - * Key to retrieve an extra added to an intent when the value of an input range has changed. + * Subtype indicating that this content is the minimum value for a range. */ - public static final String EXTRA_RANGE_VALUE = "android.app.slice.extra.RANGE_VALUE"; + public static final String SUBTYPE_MIN = "min"; /** * The meta-data key that allows an activity to easily be linked directly to a slice. @@ -83,6 +73,7 @@ public class SliceHints { @IntDef({ LARGE_IMAGE, SMALL_IMAGE, ICON_IMAGE, UNKNOWN_IMAGE }) + @Retention(SOURCE) public @interface ImageMode{} /** |