NotificationCompatApi21.java revision 1f94e518424cbf818607f63e353f2a597ed1dd37
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
17package android.support.v4.app;
18
19import android.app.Notification;
20
21class NotificationCompatApi21 {
22
23    public static final String CATEGORY_CALL = Notification.CATEGORY_CALL;
24    public static final String CATEGORY_MESSAGE = Notification.CATEGORY_MESSAGE;
25    public static final String CATEGORY_EMAIL = Notification.CATEGORY_EMAIL;
26    public static final String CATEGORY_EVENT = Notification.CATEGORY_EVENT;
27    public static final String CATEGORY_PROMO = Notification.CATEGORY_PROMO;
28    public static final String CATEGORY_ALARM = Notification.CATEGORY_ALARM;
29    public static final String CATEGORY_PROGRESS = Notification.CATEGORY_PROGRESS;
30    public static final String CATEGORY_SOCIAL = Notification.CATEGORY_SOCIAL;
31    public static final String CATEGORY_ERROR = Notification.CATEGORY_ERROR;
32    public static final String CATEGORY_TRANSPORT = Notification.CATEGORY_TRANSPORT;
33    public static final String CATEGORY_SYSTEM = Notification.CATEGORY_SYSTEM;
34    public static final String CATEGORY_SERVICE = Notification.CATEGORY_SERVICE;
35    public static final String CATEGORY_RECOMMENDATION = Notification.CATEGORY_RECOMMENDATION;
36    public static final String CATEGORY_STATUS = Notification.CATEGORY_STATUS;
37
38    public static String getCategory(Notification notif) {
39        return notif.category;
40    }
41
42}
43