1/* 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.slice; 18 19import androidx.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.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.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.slice.MESSAGING", 1); 44 45 private SliceSpecs() { 46 } 47} 48