Home | History | Annotate | Download | only in view
      1 /*
      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 
     17 package android.view;
     18 
     19 import android.view.RemoteAnimationTarget;
     20 import 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  */
     28 oneway 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      */
     36     void onAnimationStart(in RemoteAnimationTarget[] apps,
     37             in IRemoteAnimationFinishedCallback finishedCallback);
     38 
     39     /**
     40      * Called when the animation was cancelled. From this point on, any updates onto the leashes
     41      * won't have any effect anymore.
     42      */
     43     void onAnimationCancelled();
     44 }
     45