// Path: simple-stack/src/main/java/com/zhuinden/simplestack/navigator/ViewChangeHandler.java
// public interface ViewChangeHandler {
//     /**
//      * It must be called to signal that the view change is complete.
//      */
//     interface ViewChangeCallback {
//         void onCompleted();
//     }
// 
//     /**
//      * Perform the view change. The previous view must be removed from the container, and the new view must be added to the container.
//      * When complete, the completion callback must be called.
//      *
//      * @param container          the container for the views
//      * @param previousView       the previous view
//      * @param newView            the new view
//      * @param direction          the direction (from the StateChange)
//      * @param viewChangeCallback the callback that must be called when the view change is complete.
//      */
//     void performViewChange(@Nonnull final ViewGroup container, @Nonnull final View previousView, @Nonnull final View newView, final int direction, @Nonnull final ViewChangeCallback viewChangeCallback);
// }


import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.annotation.TargetApi;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Interpolator;
import com.zhuinden.simplestack.navigator.ViewChangeHandler;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
/*
 * Copyright 2017 Gabor Varadi
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.zhuinden.simplestack.navigator.changehandlers;




/**
 * Convenience base class to support view animations using Animator.
 */
@TargetApi(11)
public abstract class AnimatorViewChangeHandler
// Path: simple-stack/src/main/java/com/zhuinden/simplestack/navigator/ViewChangeHandler.java
// public interface ViewChangeHandler {
//     /**
//      * It must be called to signal that the view change is complete.
//      */
//     interface ViewChangeCallback {
//         void onCompleted();
//     }
// 
//     /**
//      * Perform the view change. The previous view must be removed from the container, and the new view must be added to the container.
//      * When complete, the completion callback must be called.
//      *
//      * @param container          the container for the views
//      * @param previousView       the previous view
//      * @param newView            the new view
//      * @param direction          the direction (from the StateChange)
//      * @param viewChangeCallback the callback that must be called when the view change is complete.
//      */
//     void performViewChange(@Nonnull final ViewGroup container, @Nonnull final View previousView, @Nonnull final View newView, final int direction, @Nonnull final ViewChangeCallback viewChangeCallback);
// }


// Path: simple-stack/src/main/java/com/zhuinden/simplestack/navigator/changehandlers/AnimatorViewChangeHandler.java
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.annotation.TargetApi;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Interpolator;
import com.zhuinden.simplestack.navigator.ViewChangeHandler;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

/*
 * Copyright 2017 Gabor Varadi
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.zhuinden.simplestack.navigator.changehandlers;




/**
 * Convenience base class to support view animations using Animator.
 */
@TargetApi(11)
public abstract class AnimatorViewChangeHandler
        implements ViewChangeHandler {