blob: 13e991ba24312a97a75c8bf932b630baa526e60c [file] [log] [blame]
Ned Burns294d0a22018-12-07 21:26:00 -05001/*
2 * Copyright (C) 2018 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.systemui.statusbar.notification;
17
18/**
19 * Listener interface for when NotificationEntryManager needs to tell
20 * NotificationGroupAlertTransferHelper things. Will eventually grow to be a general-purpose
21 * listening interface for the NotificationEntryManager.
22 */
23public interface AlertTransferListener {
24 /**
25 * Called when a new notification is posted. At this point, the notification is "pending": its
26 * views haven't been inflated yet and most of the system pretends like it doesn't exist yet.
27 */
28 void onPendingEntryAdded(NotificationData.Entry entry);
29
30 /**
31 * Called when an existing notification's views are reinflated (usually due to an update being
32 * posted to that notification).
33 */
34 void onEntryReinflated(NotificationData.Entry entry);
35
36 /**
37 * Called when a notification has been removed (either because the user swiped it away or
38 * because the developer retracted it).
39 */
40 void onEntryRemoved(NotificationData.Entry entry);
41}