1/* 2 * Copyright (C) 2015 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 */ 16package com.android.support.car.lenspicker; 17 18public class LensPickerConstants { 19 /** 20 * List of {@link android.content.pm.ResolveInfo} of applications to be displayed 21 */ 22 public static final String EXTRA_PACKAGE_RESOLVE_INFO = "resolve_info"; 23 24 /** 25 * List of {@link String} categories that the lens picker should filter on. 26 */ 27 public static final String EXTRA_FACET_CATEGORIES = "categories"; 28 29 /** 30 * List of {@link String} package names that the lens picker should render. 31 */ 32 public static final String EXTRA_FACET_PACKAGES = "packages"; 33 34 /** 35 * {@link String} id that uniquely identifies the facet being displayed. 36 */ 37 public static final String EXTRA_FACET_ID = "filter_id"; 38 39 /** 40 * {@link boolean} to specify if the lens picker should be launched even if there is already 41 * a stored "preferred" app. 42 */ 43 public static final String EXTRA_FACET_LAUNCH_PICKER = "launch_picker"; 44 45 /** 46 * An extra used to specify a system command that the LensPicker should run. The available 47 * commands are the constants prefixed with "SYSTEM_COMMAND". 48 */ 49 public static final String EXTRA_FACET_SYSTEM_COMMAND = "system_command"; 50 51 /** 52 * A hard-coded string that can be specified as the value of the string extra 53 * {@link #EXTRA_FACET_SYSTEM_COMMAND}. This command will cause the 54 * notification shade to drop if collapsed and vice versa. 55 */ 56 public static final String SYSTEM_COMMAND_TOGGLE_NOTIFICATIONS = "toggle_notifications"; 57} 58