blob: fd766bfbff21dd9a9ca195ab98ce770349e1cf70 [file] [log] [blame]
Yorke Leebd54c2a2016-10-25 13:49:23 -07001/*
2 * Copyright (C) 2016 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.app;
18
Jorim Jaggifb9d78a2017-01-05 18:57:12 +010019import android.app.ActivityManager.TaskSnapshot;
Yorke Leebd54c2a2016-10-25 13:49:23 -070020import android.content.ComponentName;
21import android.os.RemoteException;
22
23/**
24 * Classes interested in observing only a subset of changes using ITaskStackListener can extend
25 * this class to avoid having to implement all the methods.
26 * @hide
27 */
28public abstract class TaskStackListener extends ITaskStackListener.Stub {
29 @Override
30 public void onTaskStackChanged() throws RemoteException {
31 }
32
33 @Override
34 public void onActivityPinned() throws RemoteException {
35 }
36
37 @Override
38 public void onPinnedActivityRestartAttempt() throws RemoteException {
39 }
40
41 @Override
42 public void onPinnedStackAnimationEnded() throws RemoteException {
43 }
44
45 @Override
46 public void onActivityForcedResizable(String packageName, int taskId) throws RemoteException {
47 }
48
49 @Override
50 public void onActivityDismissingDockedStack() throws RemoteException {
51 }
52
53 @Override
54 public void onTaskCreated(int taskId, ComponentName componentName) throws RemoteException {
55 }
56
57 @Override
58 public void onTaskRemoved(int taskId) throws RemoteException {
59 }
60
61 @Override
62 public void onTaskMovedToFront(int taskId) throws RemoteException {
63 }
64
65 @Override
66 public void onTaskRemovalStarted(int taskId) {
67 }
68
69 @Override
70 public void onTaskDescriptionChanged(int taskId, ActivityManager.TaskDescription td)
71 throws RemoteException {
72 }
73
74 @Override
75 public void onActivityRequestedOrientationChanged(int taskId, int requestedOrientation)
76 throws RemoteException {
77 }
Robin Leec41f6ec2017-01-10 17:02:34 +000078
79 @Override
80 public void onTaskProfileLocked(int taskId, int userId) {
81 }
Jorim Jaggifb9d78a2017-01-05 18:57:12 +010082
83 @Override
84 public void onTaskSnapshotChanged(int taskId, TaskSnapshot snapshot)
85 throws RemoteException {
86 }
Yorke Leebd54c2a2016-10-25 13:49:23 -070087}