1 /* 2 * Copyright (C) 2014 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 17 package android.support.v4.app; 18 19 /** 20 * Well-known extras used by {@link NotificationCompat} for backwards compatibility. 21 */ 22 public final class NotificationCompatExtras { 23 /** 24 * Extras key used internally by {@link NotificationCompat} to store the value of 25 * the {@link android.app.Notification#FLAG_LOCAL_ONLY} field before it was available. 26 * If possible, use {@link NotificationCompat#getLocalOnly} to access this field. 27 */ 28 public static final String EXTRA_LOCAL_ONLY = "android.support.localOnly"; 29 30 /** 31 * Extras key used internally by {@link NotificationCompat} to store the value set 32 * by {@link android.app.Notification.Builder#setGroup} before it was available. 33 * If possible, use {@link NotificationCompat#getGroup} to access this value. 34 */ 35 public static final String EXTRA_GROUP_KEY = "android.support.groupKey"; 36 37 /** 38 * Extras key used internally by {@link NotificationCompat} to store the value set 39 * by {@link android.app.Notification.Builder#setGroupSummary} before it was available. 40 * If possible, use {@link NotificationCompat#isGroupSummary} to access this value. 41 */ 42 public static final String EXTRA_GROUP_SUMMARY = "android.support.isGroupSummary"; 43 44 /** 45 * Extras key used internally by {@link NotificationCompat} to store the value set 46 * by {@link android.app.Notification.Builder#setSortKey} before it was available. 47 * If possible, use {@link NotificationCompat#getSortKey} to access this value. 48 */ 49 public static final String EXTRA_SORT_KEY = "android.support.sortKey"; 50 51 /** 52 * Extras key used internally by {@link NotificationCompat} to store the value of 53 * the {@link android.app.Notification.Action#extras} field before it was available. 54 * If possible, use {@link NotificationCompat#getAction} to access this field. 55 */ 56 public static final String EXTRA_ACTION_EXTRAS = "android.support.actionExtras"; 57 58 /** 59 * Extras key used internally by {@link NotificationCompat} to store the value of 60 * the {@link android.app.Notification.Action#getRemoteInputs} before the field 61 * was available. 62 * If possible, use {@link NotificationCompat.Action#getRemoteInputs} to access this field. 63 */ 64 public static final String EXTRA_REMOTE_INPUTS = "android.support.remoteInputs"; 65 NotificationCompatExtras()66 private NotificationCompatExtras() {} 67 } 68