blob: 643255822cb9be61de148459d8c95f2ac76ca058 [file] [log] [blame]
Winson Chung740c3ac2014-11-12 16:14:38 -08001/**
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
17package android.app;
18
19/** @hide */
20oneway interface ITaskStackListener {
Wale Ogunwale03ce8632015-12-29 16:15:22 -080021 /** Called whenever there are changes to the state of tasks in a stack. */
Winson Chung740c3ac2014-11-12 16:14:38 -080022 void onTaskStackChanged();
Wale Ogunwale03ce8632015-12-29 16:15:22 -080023
24 /** Called whenever an Activity is moved to the pinned stack from another stack. */
25 void onActivityPinned();
Wale Ogunwalecc25a8a2016-01-23 14:31:37 -080026
27 /**
28 * Called whenever IActivityManager.startActivity is called on an activity that is already
29 * running in the pinned stack and the activity is not actually started, but the task is either
30 * brought to the front or a new Intent is delivered to it.
31 */
32 void onPinnedActivityRestartAttempt();
Wale Ogunwale480dca02016-02-06 13:58:29 -080033
34 /**
35 * Called whenever the pinned stack is done animating a resize.
36 */
37 void onPinnedStackAnimationEnded();
Winson Chung740c3ac2014-11-12 16:14:38 -080038}