blob: 6a1401c2b5d80a4bd2f0bb852e67c28d233d9bef [file] [log] [blame]
Adam Lesinski182f73f2013-12-05 16:48:06 -08001/**
2 * Copyright (c) 2013, 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 com.android.server.notification;
18
Chris Wrend1dbc922015-06-19 17:51:16 -040019import com.android.internal.statusbar.NotificationVisibility;
20
Adam Lesinski182f73f2013-12-05 16:48:06 -080021public interface NotificationDelegate {
22 void onSetDisabled(int status);
John Spurlocke6a7d932014-03-13 12:29:00 -040023 void onClearAll(int callingUid, int callingPid, int userId);
Christoph Studer03b87a22014-04-30 17:33:27 +020024 void onNotificationClick(int callingUid, int callingPid, String key);
Christoph Studer4da84cd2014-10-21 17:24:20 +020025 void onNotificationActionClick(int callingUid, int callingPid, String key, int actionIndex);
John Spurlocke6a7d932014-03-13 12:29:00 -040026 void onNotificationClear(int callingUid, int callingPid,
27 String pkg, String tag, int id, int userId);
28 void onNotificationError(int callingUid, int callingPid,
29 String pkg, String tag, int id,
Kenny Guy3a7c4a52014-03-03 18:24:03 +000030 int uid, int initialPid, String message, int userId);
Chris Wrenb659c4f2015-06-25 17:12:27 -040031 void onPanelRevealed(boolean clearEffects, int numItems);
Christoph Studer760ea552014-03-21 13:10:21 +010032 void onPanelHidden();
Christoph Studer1f32c652014-11-26 15:32:20 +010033 void clearEffects();
Christoph Studer92b389d2014-04-01 18:44:40 +020034 void onNotificationVisibilityChanged(
Chris Wrend1dbc922015-06-19 17:51:16 -040035 NotificationVisibility[] newlyVisibleKeys,
36 NotificationVisibility[] noLongerVisibleKeys);
Chris Wren78403d72014-07-28 10:23:24 +010037 void onNotificationExpansionChanged(String key, boolean userAction, boolean expanded);
Adam Lesinski182f73f2013-12-05 16:48:06 -080038}