blob: 36bc0962f65bbecdb91cad5de082eee88322f34d [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
Julia Reynolds503ed942017-10-04 16:04:56 -040019import android.service.notification.NotificationStats;
20
Chris Wrend1dbc922015-06-19 17:51:16 -040021import com.android.internal.statusbar.NotificationVisibility;
22
Adam Lesinski182f73f2013-12-05 16:48:06 -080023public interface NotificationDelegate {
24 void onSetDisabled(int status);
John Spurlocke6a7d932014-03-13 12:29:00 -040025 void onClearAll(int callingUid, int callingPid, int userId);
Christoph Studer03b87a22014-04-30 17:33:27 +020026 void onNotificationClick(int callingUid, int callingPid, String key);
Christoph Studer4da84cd2014-10-21 17:24:20 +020027 void onNotificationActionClick(int callingUid, int callingPid, String key, int actionIndex);
John Spurlocke6a7d932014-03-13 12:29:00 -040028 void onNotificationClear(int callingUid, int callingPid,
Julia Reynolds503ed942017-10-04 16:04:56 -040029 String pkg, String tag, int id, int userId, String key,
30 @NotificationStats.DismissalSurface int dismissalSurface);
John Spurlocke6a7d932014-03-13 12:29:00 -040031 void onNotificationError(int callingUid, int callingPid,
32 String pkg, String tag, int id,
Kenny Guy3a7c4a52014-03-03 18:24:03 +000033 int uid, int initialPid, String message, int userId);
Chris Wrenb659c4f2015-06-25 17:12:27 -040034 void onPanelRevealed(boolean clearEffects, int numItems);
Christoph Studer760ea552014-03-21 13:10:21 +010035 void onPanelHidden();
Christoph Studer1f32c652014-11-26 15:32:20 +010036 void clearEffects();
Christoph Studer92b389d2014-04-01 18:44:40 +020037 void onNotificationVisibilityChanged(
Chris Wrend1dbc922015-06-19 17:51:16 -040038 NotificationVisibility[] newlyVisibleKeys,
39 NotificationVisibility[] noLongerVisibleKeys);
Chris Wren78403d72014-07-28 10:23:24 +010040 void onNotificationExpansionChanged(String key, boolean userAction, boolean expanded);
Julia Reynolds503ed942017-10-04 16:04:56 -040041 void onNotificationDirectReplied(String key);
42 void onNotificationSettingsViewed(String key);
Adam Lesinski182f73f2013-12-05 16:48:06 -080043}