• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 import android.app.PendingIntent;
20 import android.os.Bundle;
21 
22 /**
23  * @hide
24  */
25 public class NotificationCompatBase {
26 
27     public static abstract class Action {
getIcon()28         public abstract int getIcon();
getTitle()29         public abstract CharSequence getTitle();
getActionIntent()30         public abstract PendingIntent getActionIntent();
getExtras()31         public abstract Bundle getExtras();
getRemoteInputs()32         public abstract RemoteInputCompatBase.RemoteInput[] getRemoteInputs();
33 
34         public interface Factory {
build(int icon, CharSequence title, PendingIntent actionIntent, Bundle extras, RemoteInputCompatBase.RemoteInput[] remoteInputs)35             Action build(int icon, CharSequence title, PendingIntent actionIntent,
36                     Bundle extras, RemoteInputCompatBase.RemoteInput[] remoteInputs);
newArray(int length)37             public Action[] newArray(int length);
38         }
39     }
40 
41     public static abstract class UnreadConversation {
getParticipants()42         abstract String[] getParticipants();
getParticipant()43         abstract String getParticipant();
getMessages()44         abstract String[] getMessages();
getRemoteInput()45         abstract RemoteInputCompatBase.RemoteInput getRemoteInput();
getReplyPendingIntent()46         abstract PendingIntent getReplyPendingIntent();
getReadPendingIntent()47         abstract PendingIntent getReadPendingIntent();
getLatestTimestamp()48         abstract long getLatestTimestamp();
49 
50         public interface Factory {
build(String[] messages, RemoteInputCompatBase.RemoteInput remoteInput, PendingIntent replyPendingIntent, PendingIntent readPendingIntent, String[] participants, long latestTimestamp)51             UnreadConversation build(String[] messages,
52                     RemoteInputCompatBase.RemoteInput remoteInput,
53                     PendingIntent replyPendingIntent, PendingIntent readPendingIntent,
54                     String[] participants, long latestTimestamp);
55         }
56     }
57 }
58