blob: 7b35aa2d2b45d31db042a54814f24135e7e180b9 [file] [log] [blame]
Jorim Jaggi33a701a2017-12-01 14:58:18 +01001/*
2 * Copyright (C) 2018 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.view;
18
19import android.view.RemoteAnimationTarget;
20import android.view.IRemoteAnimationFinishedCallback;
21
22/**
23 * Interface that is used to callback from window manager to the process that runs a remote
24 * animation to start or cancel it.
25 *
26 * {@hide}
27 */
28oneway interface IRemoteAnimationRunner {
29
30 /**
31 * Called when the process needs to start the remote animation.
32 *
33 * @param apps The list of apps to animate.
34 * @param finishedCallback The callback to invoke when the animation is finished.
35 */
Andrei Oneaf4fb6fb2019-02-27 14:46:52 +000036 @UnsupportedAppUsage
Winson Chungd5852192019-09-06 17:20:28 -070037 void onAnimationStart(in RemoteAnimationTarget[] apps, in RemoteAnimationTarget[] wallpapers,
Jorim Jaggi33a701a2017-12-01 14:58:18 +010038 in IRemoteAnimationFinishedCallback finishedCallback);
39
40 /**
41 * Called when the animation was cancelled. From this point on, any updates onto the leashes
42 * won't have any effect anymore.
43 */
Andrei Oneaf4fb6fb2019-02-27 14:46:52 +000044 @UnsupportedAppUsage
Jorim Jaggi33a701a2017-12-01 14:58:18 +010045 void onAnimationCancelled();
46}