119 lines
7.0 KiB
Java
119 lines
7.0 KiB
Java
|
package androidx.core.animation;
|
||
|
|
||
|
import android.animation.Animator;
|
||
|
import androidx.annotation.RequiresApi;
|
||
|
import d0.z.d.m;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
/* compiled from: Animator.kt */
|
||
|
public final class AnimatorKt {
|
||
|
public static final Animator.AnimatorListener addListener(Animator animator, Function1<? super Animator, Unit> function1, Function1<? super Animator, Unit> function12, Function1<? super Animator, Unit> function13, Function1<? super Animator, Unit> function14) {
|
||
|
m.checkParameterIsNotNull(animator, "$this$addListener");
|
||
|
m.checkParameterIsNotNull(function1, "onEnd");
|
||
|
m.checkParameterIsNotNull(function12, "onStart");
|
||
|
m.checkParameterIsNotNull(function13, "onCancel");
|
||
|
m.checkParameterIsNotNull(function14, "onRepeat");
|
||
|
AnimatorKt$addListener$listener$1 animatorKt$addListener$listener$1 = new AnimatorKt$addListener$listener$1(function14, function1, function13, function12);
|
||
|
animator.addListener(animatorKt$addListener$listener$1);
|
||
|
return animatorKt$addListener$listener$1;
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ Animator.AnimatorListener addListener$default(Animator animator, Function1 function1, Function1 function12, Function1 function13, Function1 function14, int i, Object obj) {
|
||
|
if ((i & 1) != 0) {
|
||
|
function1 = AnimatorKt$addListener$1.INSTANCE;
|
||
|
}
|
||
|
if ((i & 2) != 0) {
|
||
|
function12 = AnimatorKt$addListener$2.INSTANCE;
|
||
|
}
|
||
|
if ((i & 4) != 0) {
|
||
|
function13 = AnimatorKt$addListener$3.INSTANCE;
|
||
|
}
|
||
|
if ((i & 8) != 0) {
|
||
|
function14 = AnimatorKt$addListener$4.INSTANCE;
|
||
|
}
|
||
|
m.checkParameterIsNotNull(animator, "$this$addListener");
|
||
|
m.checkParameterIsNotNull(function1, "onEnd");
|
||
|
m.checkParameterIsNotNull(function12, "onStart");
|
||
|
m.checkParameterIsNotNull(function13, "onCancel");
|
||
|
m.checkParameterIsNotNull(function14, "onRepeat");
|
||
|
AnimatorKt$addListener$listener$1 animatorKt$addListener$listener$1 = new AnimatorKt$addListener$listener$1(function14, function1, function13, function12);
|
||
|
animator.addListener(animatorKt$addListener$listener$1);
|
||
|
return animatorKt$addListener$listener$1;
|
||
|
}
|
||
|
|
||
|
@RequiresApi(19)
|
||
|
public static final Animator.AnimatorPauseListener addPauseListener(Animator animator, Function1<? super Animator, Unit> function1, Function1<? super Animator, Unit> function12) {
|
||
|
m.checkParameterIsNotNull(animator, "$this$addPauseListener");
|
||
|
m.checkParameterIsNotNull(function1, "onResume");
|
||
|
m.checkParameterIsNotNull(function12, "onPause");
|
||
|
AnimatorKt$addPauseListener$listener$1 animatorKt$addPauseListener$listener$1 = new AnimatorKt$addPauseListener$listener$1(function12, function1);
|
||
|
animator.addPauseListener(animatorKt$addPauseListener$listener$1);
|
||
|
return animatorKt$addPauseListener$listener$1;
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ Animator.AnimatorPauseListener addPauseListener$default(Animator animator, Function1 function1, Function1 function12, int i, Object obj) {
|
||
|
if ((i & 1) != 0) {
|
||
|
function1 = AnimatorKt$addPauseListener$1.INSTANCE;
|
||
|
}
|
||
|
if ((i & 2) != 0) {
|
||
|
function12 = AnimatorKt$addPauseListener$2.INSTANCE;
|
||
|
}
|
||
|
m.checkParameterIsNotNull(animator, "$this$addPauseListener");
|
||
|
m.checkParameterIsNotNull(function1, "onResume");
|
||
|
m.checkParameterIsNotNull(function12, "onPause");
|
||
|
AnimatorKt$addPauseListener$listener$1 animatorKt$addPauseListener$listener$1 = new AnimatorKt$addPauseListener$listener$1(function12, function1);
|
||
|
animator.addPauseListener(animatorKt$addPauseListener$listener$1);
|
||
|
return animatorKt$addPauseListener$listener$1;
|
||
|
}
|
||
|
|
||
|
public static final Animator.AnimatorListener doOnCancel(Animator animator, Function1<? super Animator, Unit> function1) {
|
||
|
m.checkParameterIsNotNull(animator, "$this$doOnCancel");
|
||
|
m.checkParameterIsNotNull(function1, "action");
|
||
|
AnimatorKt$doOnCancel$$inlined$addListener$1 animatorKt$doOnCancel$$inlined$addListener$1 = new AnimatorKt$doOnCancel$$inlined$addListener$1(function1);
|
||
|
animator.addListener(animatorKt$doOnCancel$$inlined$addListener$1);
|
||
|
return animatorKt$doOnCancel$$inlined$addListener$1;
|
||
|
}
|
||
|
|
||
|
public static final Animator.AnimatorListener doOnEnd(Animator animator, Function1<? super Animator, Unit> function1) {
|
||
|
m.checkParameterIsNotNull(animator, "$this$doOnEnd");
|
||
|
m.checkParameterIsNotNull(function1, "action");
|
||
|
AnimatorKt$doOnEnd$$inlined$addListener$1 animatorKt$doOnEnd$$inlined$addListener$1 = new AnimatorKt$doOnEnd$$inlined$addListener$1(function1);
|
||
|
animator.addListener(animatorKt$doOnEnd$$inlined$addListener$1);
|
||
|
return animatorKt$doOnEnd$$inlined$addListener$1;
|
||
|
}
|
||
|
|
||
|
@RequiresApi(19)
|
||
|
public static final Animator.AnimatorPauseListener doOnPause(Animator animator, Function1<? super Animator, Unit> function1) {
|
||
|
m.checkParameterIsNotNull(animator, "$this$doOnPause");
|
||
|
m.checkParameterIsNotNull(function1, "action");
|
||
|
AnimatorKt$doOnPause$$inlined$addPauseListener$1 animatorKt$doOnPause$$inlined$addPauseListener$1 = new AnimatorKt$doOnPause$$inlined$addPauseListener$1(function1);
|
||
|
animator.addPauseListener(animatorKt$doOnPause$$inlined$addPauseListener$1);
|
||
|
return animatorKt$doOnPause$$inlined$addPauseListener$1;
|
||
|
}
|
||
|
|
||
|
public static final Animator.AnimatorListener doOnRepeat(Animator animator, Function1<? super Animator, Unit> function1) {
|
||
|
m.checkParameterIsNotNull(animator, "$this$doOnRepeat");
|
||
|
m.checkParameterIsNotNull(function1, "action");
|
||
|
AnimatorKt$doOnRepeat$$inlined$addListener$1 animatorKt$doOnRepeat$$inlined$addListener$1 = new AnimatorKt$doOnRepeat$$inlined$addListener$1(function1);
|
||
|
animator.addListener(animatorKt$doOnRepeat$$inlined$addListener$1);
|
||
|
return animatorKt$doOnRepeat$$inlined$addListener$1;
|
||
|
}
|
||
|
|
||
|
@RequiresApi(19)
|
||
|
public static final Animator.AnimatorPauseListener doOnResume(Animator animator, Function1<? super Animator, Unit> function1) {
|
||
|
m.checkParameterIsNotNull(animator, "$this$doOnResume");
|
||
|
m.checkParameterIsNotNull(function1, "action");
|
||
|
AnimatorKt$doOnResume$$inlined$addPauseListener$1 animatorKt$doOnResume$$inlined$addPauseListener$1 = new AnimatorKt$doOnResume$$inlined$addPauseListener$1(function1);
|
||
|
animator.addPauseListener(animatorKt$doOnResume$$inlined$addPauseListener$1);
|
||
|
return animatorKt$doOnResume$$inlined$addPauseListener$1;
|
||
|
}
|
||
|
|
||
|
public static final Animator.AnimatorListener doOnStart(Animator animator, Function1<? super Animator, Unit> function1) {
|
||
|
m.checkParameterIsNotNull(animator, "$this$doOnStart");
|
||
|
m.checkParameterIsNotNull(function1, "action");
|
||
|
AnimatorKt$doOnStart$$inlined$addListener$1 animatorKt$doOnStart$$inlined$addListener$1 = new AnimatorKt$doOnStart$$inlined$addListener$1(function1);
|
||
|
animator.addListener(animatorKt$doOnStart$$inlined$addListener$1);
|
||
|
return animatorKt$doOnStart$$inlined$addListener$1;
|
||
|
}
|
||
|
}
|