blob: ed4658d2073c1138bb4f58d0097083c67cc0a3db [file] [log] [blame]
Jason Monka09cb672018-01-08 13:17:36 -05001/*
2 * Copyright 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package androidx.app.slice;
18
19import android.support.annotation.RestrictTo;
20
21/**
22 * Constants for each of the slice specs
23 * @hide
24 */
25@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
26public class SliceSpecs {
27
28 /**
29 * Most basic slice, only has icon, title, and summary.
30 */
31 public static final SliceSpec BASIC = new SliceSpec("androidx.app.slice.BASIC", 1);
32
33 /**
34 * List of rows, each row has start/end items, title, summary.
35 * Also supports grid rows.
36 */
37 public static final SliceSpec LIST = new SliceSpec("androidx.app.slice.LIST", 1);
38
39 /**
40 * Messaging template. Each message contains a timestamp and a message, it optionally contains
41 * a source of where the message came from.
42 */
43 public static final SliceSpec MESSAGING = new SliceSpec("androidx.app.slice.MESSAGING", 1);
44
45 /**
46 * Grid template.
47 * Lists can contain grids, so use the same spec for both. Grid needs a spec to use because
48 * it can be a top level builder.
49 */
50 public static final SliceSpec GRID = LIST;
51}