1 /* 2 * Copyright (C) 2024 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 18 package android.window; 19 20 import android.os.Bundle; 21 import android.view.RemoteAnimationTarget; 22 import android.window.BackMotionEvent; 23 import android.window.WindowAnimationState; 24 25 26 /** 27 * Interface that allows an {@link OnBackInvokedCallback} object to hand off an animation to another 28 * handler. 29 * 30 * @hide 31 */ 32 oneway interface IBackAnimationHandoffHandler { 33 /** 34 * Triggers a handoff of the animation of the given targets and their associated states. 35 * Important: since this is a one-way method, the caller must first make sure that the animation 36 * can indeed be taken over. 37 */ handOffAnimation(in RemoteAnimationTarget[] targets, in WindowAnimationState[] states)38 oneway void handOffAnimation(in RemoteAnimationTarget[] targets, 39 in WindowAnimationState[] states); 40 } 41