Winson Chung | 740c3ac | 2014-11-12 16:14:38 -0800 | [diff] [blame] | 1 | /** |
| 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 | |
| 17 | package android.app; |
| 18 | |
| 19 | /** @hide */ |
| 20 | oneway interface ITaskStackListener { |
Wale Ogunwale | 03ce863 | 2015-12-29 16:15:22 -0800 | [diff] [blame] | 21 | /** Called whenever there are changes to the state of tasks in a stack. */ |
Winson Chung | 740c3ac | 2014-11-12 16:14:38 -0800 | [diff] [blame] | 22 | void onTaskStackChanged(); |
Wale Ogunwale | 03ce863 | 2015-12-29 16:15:22 -0800 | [diff] [blame] | 23 | |
| 24 | /** Called whenever an Activity is moved to the pinned stack from another stack. */ |
| 25 | void onActivityPinned(); |
Wale Ogunwale | cc25a8a | 2016-01-23 14:31:37 -0800 | [diff] [blame] | 26 | |
| 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 Ogunwale | 480dca0 | 2016-02-06 13:58:29 -0800 | [diff] [blame] | 33 | |
| 34 | /** |
| 35 | * Called whenever the pinned stack is done animating a resize. |
| 36 | */ |
| 37 | void onPinnedStackAnimationEnded(); |
Jorim Jaggi | 2adba07 | 2016-03-03 13:43:39 +0100 | [diff] [blame] | 38 | |
| 39 | /** |
| 40 | * Called when we launched an activity that we forced to be resizable. |
| 41 | */ |
| 42 | void onActivityForcedResizable(String packageName, int taskId); |
Jorim Jaggi | d53f092 | 2016-04-06 22:16:23 -0700 | [diff] [blame] | 43 | |
| 44 | /** |
| 45 | * Callen when we launched an activity that is dismissed the docked stack. |
| 46 | */ |
| 47 | void onActivityDismissingDockedStack(); |
Winson Chung | 740c3ac | 2014-11-12 16:14:38 -0800 | [diff] [blame] | 48 | } |