1// Signature format: 4.0 2package androidx.compose.animation.core { 3 4 public final class Animatable<T, V extends androidx.compose.animation.core.AnimationVector> { 5 ctor @Deprecated public Animatable(T initialValue, androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter, optional T? visibilityThreshold); 6 ctor public Animatable(T initialValue, androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter, optional T? visibilityThreshold, optional String label); 7 method public suspend Object? animateDecay(T initialVelocity, androidx.compose.animation.core.DecayAnimationSpec<T> animationSpec, optional kotlin.jvm.functions.Function1<? super androidx.compose.animation.core.Animatable<T,V>,kotlin.Unit>? block, optional kotlin.coroutines.Continuation<? super androidx.compose.animation.core.AnimationResult<T,V>>); 8 method public suspend Object? animateTo(T targetValue, optional androidx.compose.animation.core.AnimationSpec<T> animationSpec, optional T initialVelocity, optional kotlin.jvm.functions.Function1<? super androidx.compose.animation.core.Animatable<T,V>,kotlin.Unit>? block, optional kotlin.coroutines.Continuation<? super androidx.compose.animation.core.AnimationResult<T,V>>); 9 method public androidx.compose.runtime.State<T> asState(); 10 method public String getLabel(); 11 method public T? getLowerBound(); 12 method public T getTargetValue(); 13 method public androidx.compose.animation.core.TwoWayConverter<T,V> getTypeConverter(); 14 method public T? getUpperBound(); 15 method public T getValue(); 16 method public T getVelocity(); 17 method public V getVelocityVector(); 18 method public boolean isRunning(); 19 method public suspend Object? snapTo(T targetValue, kotlin.coroutines.Continuation<? super kotlin.Unit>); 20 method public suspend Object? stop(kotlin.coroutines.Continuation<? super kotlin.Unit>); 21 method public void updateBounds(optional T? lowerBound, optional T? upperBound); 22 property public final boolean isRunning; 23 property public final String label; 24 property public final T? lowerBound; 25 property public final T targetValue; 26 property public final androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter; 27 property public final T? upperBound; 28 property public final T value; 29 property public final T velocity; 30 property public final V velocityVector; 31 } 32 33 public final class AnimatableKt { 34 method public static androidx.compose.animation.core.Animatable<java.lang.Float,androidx.compose.animation.core.AnimationVector1D> Animatable(float initialValue, optional float visibilityThreshold); 35 } 36 37 public final class AnimateAsStateKt { 38 method @androidx.compose.runtime.Composable public static androidx.compose.runtime.State<androidx.compose.ui.unit.Dp> animateDpAsState(float targetValue, optional androidx.compose.animation.core.AnimationSpec<androidx.compose.ui.unit.Dp> animationSpec, optional String label, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.unit.Dp,kotlin.Unit>? finishedListener); 39 method @Deprecated @androidx.compose.runtime.Composable public static androidx.compose.runtime.State<androidx.compose.ui.unit.Dp> animateDpAsState(float targetValue, optional androidx.compose.animation.core.AnimationSpec<androidx.compose.ui.unit.Dp> animationSpec, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.unit.Dp,kotlin.Unit>? finishedListener); 40 method @androidx.compose.runtime.Composable public static androidx.compose.runtime.State<java.lang.Float> animateFloatAsState(float targetValue, optional androidx.compose.animation.core.AnimationSpec<java.lang.Float> animationSpec, optional float visibilityThreshold, optional String label, optional kotlin.jvm.functions.Function1<? super java.lang.Float,kotlin.Unit>? finishedListener); 41 method @Deprecated @androidx.compose.runtime.Composable public static androidx.compose.runtime.State<java.lang.Float> animateFloatAsState(float targetValue, optional androidx.compose.animation.core.AnimationSpec<java.lang.Float> animationSpec, optional float visibilityThreshold, optional kotlin.jvm.functions.Function1<? super java.lang.Float,kotlin.Unit>? finishedListener); 42 method @androidx.compose.runtime.Composable public static androidx.compose.runtime.State<java.lang.Integer> animateIntAsState(int targetValue, optional androidx.compose.animation.core.AnimationSpec<java.lang.Integer> animationSpec, optional String label, optional kotlin.jvm.functions.Function1<? super java.lang.Integer,kotlin.Unit>? finishedListener); 43 method @Deprecated @androidx.compose.runtime.Composable public static androidx.compose.runtime.State<java.lang.Integer> animateIntAsState(int targetValue, optional androidx.compose.animation.core.AnimationSpec<java.lang.Integer> animationSpec, optional kotlin.jvm.functions.Function1<? super java.lang.Integer,kotlin.Unit>? finishedListener); 44 method @androidx.compose.runtime.Composable public static androidx.compose.runtime.State<androidx.compose.ui.unit.IntOffset> animateIntOffsetAsState(long targetValue, optional androidx.compose.animation.core.AnimationSpec<androidx.compose.ui.unit.IntOffset> animationSpec, optional String label, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.unit.IntOffset,kotlin.Unit>? finishedListener); 45 method @Deprecated @androidx.compose.runtime.Composable public static androidx.compose.runtime.State<androidx.compose.ui.unit.IntOffset> animateIntOffsetAsState(long targetValue, optional androidx.compose.animation.core.AnimationSpec<androidx.compose.ui.unit.IntOffset> animationSpec, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.unit.IntOffset,kotlin.Unit>? finishedListener); 46 method @androidx.compose.runtime.Composable public static androidx.compose.runtime.State<androidx.compose.ui.unit.IntSize> animateIntSizeAsState(long targetValue, optional androidx.compose.animation.core.AnimationSpec<androidx.compose.ui.unit.IntSize> animationSpec, optional String label, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.unit.IntSize,kotlin.Unit>? finishedListener); 47 method @Deprecated @androidx.compose.runtime.Composable public static androidx.compose.runtime.State<androidx.compose.ui.unit.IntSize> animateIntSizeAsState(long targetValue, optional androidx.compose.animation.core.AnimationSpec<androidx.compose.ui.unit.IntSize> animationSpec, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.unit.IntSize,kotlin.Unit>? finishedListener); 48 method @androidx.compose.runtime.Composable public static androidx.compose.runtime.State<androidx.compose.ui.geometry.Offset> animateOffsetAsState(long targetValue, optional androidx.compose.animation.core.AnimationSpec<androidx.compose.ui.geometry.Offset> animationSpec, optional String label, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.geometry.Offset,kotlin.Unit>? finishedListener); 49 method @Deprecated @androidx.compose.runtime.Composable public static androidx.compose.runtime.State<androidx.compose.ui.geometry.Offset> animateOffsetAsState(long targetValue, optional androidx.compose.animation.core.AnimationSpec<androidx.compose.ui.geometry.Offset> animationSpec, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.geometry.Offset,kotlin.Unit>? finishedListener); 50 method @androidx.compose.runtime.Composable public static androidx.compose.runtime.State<androidx.compose.ui.geometry.Rect> animateRectAsState(androidx.compose.ui.geometry.Rect targetValue, optional androidx.compose.animation.core.AnimationSpec<androidx.compose.ui.geometry.Rect> animationSpec, optional String label, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.geometry.Rect,kotlin.Unit>? finishedListener); 51 method @Deprecated @androidx.compose.runtime.Composable public static androidx.compose.runtime.State<androidx.compose.ui.geometry.Rect> animateRectAsState(androidx.compose.ui.geometry.Rect targetValue, optional androidx.compose.animation.core.AnimationSpec<androidx.compose.ui.geometry.Rect> animationSpec, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.geometry.Rect,kotlin.Unit>? finishedListener); 52 method @androidx.compose.runtime.Composable public static androidx.compose.runtime.State<androidx.compose.ui.geometry.Size> animateSizeAsState(long targetValue, optional androidx.compose.animation.core.AnimationSpec<androidx.compose.ui.geometry.Size> animationSpec, optional String label, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.geometry.Size,kotlin.Unit>? finishedListener); 53 method @Deprecated @androidx.compose.runtime.Composable public static androidx.compose.runtime.State<androidx.compose.ui.geometry.Size> animateSizeAsState(long targetValue, optional androidx.compose.animation.core.AnimationSpec<androidx.compose.ui.geometry.Size> animationSpec, optional kotlin.jvm.functions.Function1<? super androidx.compose.ui.geometry.Size,kotlin.Unit>? finishedListener); 54 method @androidx.compose.runtime.Composable public static <T, V extends androidx.compose.animation.core.AnimationVector> androidx.compose.runtime.State<T> animateValueAsState(T targetValue, androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter, optional androidx.compose.animation.core.AnimationSpec<T> animationSpec, optional T? visibilityThreshold, optional String label, optional kotlin.jvm.functions.Function1<? super T,kotlin.Unit>? finishedListener); 55 method @Deprecated @androidx.compose.runtime.Composable public static <T, V extends androidx.compose.animation.core.AnimationVector> androidx.compose.runtime.State<T> animateValueAsState(T targetValue, androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter, optional androidx.compose.animation.core.AnimationSpec<T> animationSpec, optional T? visibilityThreshold, optional kotlin.jvm.functions.Function1<? super T,kotlin.Unit>? finishedListener); 56 } 57 58 @kotlin.jvm.JvmDefaultWithCompatibility public interface Animation<T, V extends androidx.compose.animation.core.AnimationVector> { 59 method public long getDurationNanos(); 60 method public T getTargetValue(); 61 method public androidx.compose.animation.core.TwoWayConverter<T,V> getTypeConverter(); 62 method public T getValueFromNanos(long playTimeNanos); 63 method public V getVelocityVectorFromNanos(long playTimeNanos); 64 method public default boolean isFinishedFromNanos(long playTimeNanos); 65 method public boolean isInfinite(); 66 property public abstract long durationNanos; 67 property public abstract boolean isInfinite; 68 property public abstract T targetValue; 69 property public abstract androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter; 70 } 71 72 public final class AnimationConstants { 73 field public static final int DefaultDurationMillis = 300; // 0x12c 74 field public static final androidx.compose.animation.core.AnimationConstants INSTANCE; 75 field public static final long UnspecifiedTime = -9223372036854775808L; // 0x8000000000000000L 76 } 77 78 public enum AnimationEndReason { 79 enum_constant public static final androidx.compose.animation.core.AnimationEndReason BoundReached; 80 enum_constant public static final androidx.compose.animation.core.AnimationEndReason Finished; 81 } 82 83 public final class AnimationKt { 84 method public static androidx.compose.animation.core.DecayAnimation<java.lang.Float,androidx.compose.animation.core.AnimationVector1D> DecayAnimation(androidx.compose.animation.core.FloatDecayAnimationSpec animationSpec, float initialValue, optional float initialVelocity); 85 method public static <T, V extends androidx.compose.animation.core.AnimationVector> androidx.compose.animation.core.TargetBasedAnimation<T,V> TargetBasedAnimation(androidx.compose.animation.core.AnimationSpec<T> animationSpec, androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter, T initialValue, T targetValue, T initialVelocity); 86 method public static <T, V extends androidx.compose.animation.core.AnimationVector> T getVelocityFromNanos(androidx.compose.animation.core.Animation<T,V>, long playTimeNanos); 87 } 88 89 public final class AnimationResult<T, V extends androidx.compose.animation.core.AnimationVector> { 90 ctor public AnimationResult(androidx.compose.animation.core.AnimationState<T,V> endState, androidx.compose.animation.core.AnimationEndReason endReason); 91 method public androidx.compose.animation.core.AnimationEndReason getEndReason(); 92 method public androidx.compose.animation.core.AnimationState<T,V> getEndState(); 93 property public final androidx.compose.animation.core.AnimationEndReason endReason; 94 property public final androidx.compose.animation.core.AnimationState<T,V> endState; 95 } 96 97 public final class AnimationScope<T, V extends androidx.compose.animation.core.AnimationVector> { 98 method public void cancelAnimation(); 99 method public long getFinishedTimeNanos(); 100 method public long getLastFrameTimeNanos(); 101 method public long getStartTimeNanos(); 102 method public T getTargetValue(); 103 method public androidx.compose.animation.core.TwoWayConverter<T,V> getTypeConverter(); 104 method public T getValue(); 105 method public T getVelocity(); 106 method public V getVelocityVector(); 107 method public boolean isRunning(); 108 method public androidx.compose.animation.core.AnimationState<T,V> toAnimationState(); 109 property public final long finishedTimeNanos; 110 property public final boolean isRunning; 111 property public final long lastFrameTimeNanos; 112 property public final long startTimeNanos; 113 property public final T targetValue; 114 property public final androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter; 115 property public final T value; 116 property public final T velocity; 117 property public final V velocityVector; 118 } 119 120 public interface AnimationSpec<T> { 121 method public <V extends androidx.compose.animation.core.AnimationVector> androidx.compose.animation.core.VectorizedAnimationSpec<V> vectorize(androidx.compose.animation.core.TwoWayConverter<T,V> converter); 122 } 123 124 public final class AnimationSpecKt { 125 method @Deprecated @androidx.compose.runtime.Stable public static <T> androidx.compose.animation.core.InfiniteRepeatableSpec<T> infiniteRepeatable(androidx.compose.animation.core.DurationBasedAnimationSpec<T> animation, optional androidx.compose.animation.core.RepeatMode repeatMode); 126 method @androidx.compose.runtime.Stable public static <T> androidx.compose.animation.core.InfiniteRepeatableSpec<T> infiniteRepeatable(androidx.compose.animation.core.DurationBasedAnimationSpec<T> animation, optional androidx.compose.animation.core.RepeatMode repeatMode, optional long initialStartOffset); 127 method @androidx.compose.runtime.Stable public static <T> androidx.compose.animation.core.KeyframesSpec<T> keyframes(kotlin.jvm.functions.Function1<? super androidx.compose.animation.core.KeyframesSpec.KeyframesSpecConfig<T>,kotlin.Unit> init); 128 method @Deprecated @androidx.compose.runtime.Stable public static <T> androidx.compose.animation.core.RepeatableSpec<T> repeatable(int iterations, androidx.compose.animation.core.DurationBasedAnimationSpec<T> animation, optional androidx.compose.animation.core.RepeatMode repeatMode); 129 method @androidx.compose.runtime.Stable public static <T> androidx.compose.animation.core.RepeatableSpec<T> repeatable(int iterations, androidx.compose.animation.core.DurationBasedAnimationSpec<T> animation, optional androidx.compose.animation.core.RepeatMode repeatMode, optional long initialStartOffset); 130 method @androidx.compose.runtime.Stable public static <T> androidx.compose.animation.core.SnapSpec<T> snap(optional int delayMillis); 131 method @androidx.compose.runtime.Stable public static <T> androidx.compose.animation.core.SpringSpec<T> spring(optional float dampingRatio, optional float stiffness, optional T? visibilityThreshold); 132 method @androidx.compose.runtime.Stable public static <T> androidx.compose.animation.core.TweenSpec<T> tween(optional int durationMillis, optional int delayMillis, optional androidx.compose.animation.core.Easing easing); 133 } 134 135 public final class AnimationState<T, V extends androidx.compose.animation.core.AnimationVector> implements androidx.compose.runtime.State<T> { 136 ctor public AnimationState(androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter, T initialValue, optional V? initialVelocityVector, optional long lastFrameTimeNanos, optional long finishedTimeNanos, optional boolean isRunning); 137 method public long getFinishedTimeNanos(); 138 method public long getLastFrameTimeNanos(); 139 method public androidx.compose.animation.core.TwoWayConverter<T,V> getTypeConverter(); 140 method public T getValue(); 141 method public T getVelocity(); 142 method public V getVelocityVector(); 143 method public boolean isRunning(); 144 property public final long finishedTimeNanos; 145 property public final boolean isRunning; 146 property public final long lastFrameTimeNanos; 147 property public final androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter; 148 property public T value; 149 property public final T velocity; 150 property public final V velocityVector; 151 } 152 153 public final class AnimationStateKt { 154 method public static <T, V extends androidx.compose.animation.core.AnimationVector> androidx.compose.animation.core.AnimationState<T,V> AnimationState(androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter, T initialValue, T initialVelocity, optional long lastFrameTimeNanos, optional long finishedTimeNanos, optional boolean isRunning); 155 method public static androidx.compose.animation.core.AnimationState<java.lang.Float,androidx.compose.animation.core.AnimationVector1D> AnimationState(float initialValue, optional float initialVelocity, optional long lastFrameTimeNanos, optional long finishedTimeNanos, optional boolean isRunning); 156 method public static androidx.compose.animation.core.AnimationState<java.lang.Float,androidx.compose.animation.core.AnimationVector1D> copy(androidx.compose.animation.core.AnimationState<java.lang.Float,androidx.compose.animation.core.AnimationVector1D>, optional float value, optional float velocity, optional long lastFrameTimeNanos, optional long finishedTimeNanos, optional boolean isRunning); 157 method public static <T, V extends androidx.compose.animation.core.AnimationVector> androidx.compose.animation.core.AnimationState<T,V> copy(androidx.compose.animation.core.AnimationState<T,V>, optional T value, optional V? velocityVector, optional long lastFrameTimeNanos, optional long finishedTimeNanos, optional boolean isRunning); 158 method public static <T, V extends androidx.compose.animation.core.AnimationVector> V createZeroVectorFrom(androidx.compose.animation.core.TwoWayConverter<T,V>, T value); 159 method public static boolean isFinished(androidx.compose.animation.core.AnimationState<?,?>); 160 } 161 162 public abstract sealed class AnimationVector { 163 } 164 165 public final class AnimationVector1D extends androidx.compose.animation.core.AnimationVector { 166 ctor public AnimationVector1D(float initVal); 167 method public float getValue(); 168 property public final float value; 169 } 170 171 public final class AnimationVector2D extends androidx.compose.animation.core.AnimationVector { 172 ctor public AnimationVector2D(float v1, float v2); 173 method public float getV1(); 174 method public float getV2(); 175 property public final float v1; 176 property public final float v2; 177 } 178 179 public final class AnimationVector3D extends androidx.compose.animation.core.AnimationVector { 180 ctor public AnimationVector3D(float v1, float v2, float v3); 181 method public float getV1(); 182 method public float getV2(); 183 method public float getV3(); 184 property public final float v1; 185 property public final float v2; 186 property public final float v3; 187 } 188 189 public final class AnimationVector4D extends androidx.compose.animation.core.AnimationVector { 190 ctor public AnimationVector4D(float v1, float v2, float v3, float v4); 191 method public float getV1(); 192 method public float getV2(); 193 method public float getV3(); 194 method public float getV4(); 195 property public final float v1; 196 property public final float v2; 197 property public final float v3; 198 property public final float v4; 199 } 200 201 public final class AnimationVectorsKt { 202 method public static androidx.compose.animation.core.AnimationVector1D AnimationVector(float v1); 203 method public static androidx.compose.animation.core.AnimationVector2D AnimationVector(float v1, float v2); 204 method public static androidx.compose.animation.core.AnimationVector3D AnimationVector(float v1, float v2, float v3); 205 method public static androidx.compose.animation.core.AnimationVector4D AnimationVector(float v1, float v2, float v3, float v4); 206 } 207 208 @androidx.compose.runtime.Immutable public final class CubicBezierEasing implements androidx.compose.animation.core.Easing { 209 ctor public CubicBezierEasing(float a, float b, float c, float d); 210 method public float transform(float fraction); 211 } 212 213 public final class DecayAnimation<T, V extends androidx.compose.animation.core.AnimationVector> implements androidx.compose.animation.core.Animation<T,V> { 214 ctor public DecayAnimation(androidx.compose.animation.core.DecayAnimationSpec<T> animationSpec, androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter, T initialValue, T initialVelocity); 215 ctor public DecayAnimation(androidx.compose.animation.core.DecayAnimationSpec<T> animationSpec, androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter, T initialValue, V initialVelocityVector); 216 ctor public DecayAnimation(androidx.compose.animation.core.VectorizedDecayAnimationSpec<V> animationSpec, androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter, T initialValue, V initialVelocityVector); 217 method public long getDurationNanos(); 218 method public T getInitialValue(); 219 method public V getInitialVelocityVector(); 220 method public T getTargetValue(); 221 method public androidx.compose.animation.core.TwoWayConverter<T,V> getTypeConverter(); 222 method public T getValueFromNanos(long playTimeNanos); 223 method public V getVelocityVectorFromNanos(long playTimeNanos); 224 method public boolean isInfinite(); 225 property public long durationNanos; 226 property public final T initialValue; 227 property public final V initialVelocityVector; 228 property public boolean isInfinite; 229 property public T targetValue; 230 property public androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter; 231 } 232 233 public interface DecayAnimationSpec<T> { 234 method public <V extends androidx.compose.animation.core.AnimationVector> androidx.compose.animation.core.VectorizedDecayAnimationSpec<V> vectorize(androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter); 235 } 236 237 public final class DecayAnimationSpecKt { 238 method public static float calculateTargetValue(androidx.compose.animation.core.DecayAnimationSpec<java.lang.Float>, float initialValue, float initialVelocity); 239 method public static <T, V extends androidx.compose.animation.core.AnimationVector> T calculateTargetValue(androidx.compose.animation.core.DecayAnimationSpec<T>, androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter, T initialValue, T initialVelocity); 240 method public static <T> androidx.compose.animation.core.DecayAnimationSpec<T> exponentialDecay(optional float frictionMultiplier, optional float absVelocityThreshold); 241 method public static <T> androidx.compose.animation.core.DecayAnimationSpec<T> generateDecayAnimationSpec(androidx.compose.animation.core.FloatDecayAnimationSpec); 242 } 243 244 public interface DurationBasedAnimationSpec<T> extends androidx.compose.animation.core.FiniteAnimationSpec<T> { 245 method public <V extends androidx.compose.animation.core.AnimationVector> androidx.compose.animation.core.VectorizedDurationBasedAnimationSpec<V> vectorize(androidx.compose.animation.core.TwoWayConverter<T,V> converter); 246 } 247 248 @androidx.compose.runtime.Stable public fun interface Easing { 249 method public float transform(float fraction); 250 } 251 252 public final class EasingFunctionsKt { 253 method public static androidx.compose.animation.core.Easing getEase(); 254 method public static androidx.compose.animation.core.Easing getEaseIn(); 255 method public static androidx.compose.animation.core.Easing getEaseInBack(); 256 method public static androidx.compose.animation.core.Easing getEaseInBounce(); 257 method public static androidx.compose.animation.core.Easing getEaseInCirc(); 258 method public static androidx.compose.animation.core.Easing getEaseInCubic(); 259 method public static androidx.compose.animation.core.Easing getEaseInElastic(); 260 method public static androidx.compose.animation.core.Easing getEaseInExpo(); 261 method public static androidx.compose.animation.core.Easing getEaseInOut(); 262 method public static androidx.compose.animation.core.Easing getEaseInOutBack(); 263 method public static androidx.compose.animation.core.Easing getEaseInOutBounce(); 264 method public static androidx.compose.animation.core.Easing getEaseInOutCirc(); 265 method public static androidx.compose.animation.core.Easing getEaseInOutCubic(); 266 method public static androidx.compose.animation.core.Easing getEaseInOutElastic(); 267 method public static androidx.compose.animation.core.Easing getEaseInOutExpo(); 268 method public static androidx.compose.animation.core.Easing getEaseInOutQuad(); 269 method public static androidx.compose.animation.core.Easing getEaseInOutQuart(); 270 method public static androidx.compose.animation.core.Easing getEaseInOutQuint(); 271 method public static androidx.compose.animation.core.Easing getEaseInOutSine(); 272 method public static androidx.compose.animation.core.Easing getEaseInQuad(); 273 method public static androidx.compose.animation.core.Easing getEaseInQuart(); 274 method public static androidx.compose.animation.core.Easing getEaseInQuint(); 275 method public static androidx.compose.animation.core.Easing getEaseInSine(); 276 method public static androidx.compose.animation.core.Easing getEaseOut(); 277 method public static androidx.compose.animation.core.Easing getEaseOutBack(); 278 method public static androidx.compose.animation.core.Easing getEaseOutBounce(); 279 method public static androidx.compose.animation.core.Easing getEaseOutCirc(); 280 method public static androidx.compose.animation.core.Easing getEaseOutCubic(); 281 method public static androidx.compose.animation.core.Easing getEaseOutElastic(); 282 method public static androidx.compose.animation.core.Easing getEaseOutExpo(); 283 method public static androidx.compose.animation.core.Easing getEaseOutQuad(); 284 method public static androidx.compose.animation.core.Easing getEaseOutQuart(); 285 method public static androidx.compose.animation.core.Easing getEaseOutQuint(); 286 method public static androidx.compose.animation.core.Easing getEaseOutSine(); 287 property public static final androidx.compose.animation.core.Easing Ease; 288 property public static final androidx.compose.animation.core.Easing EaseIn; 289 property public static final androidx.compose.animation.core.Easing EaseInBack; 290 property public static final androidx.compose.animation.core.Easing EaseInBounce; 291 property public static final androidx.compose.animation.core.Easing EaseInCirc; 292 property public static final androidx.compose.animation.core.Easing EaseInCubic; 293 property public static final androidx.compose.animation.core.Easing EaseInElastic; 294 property public static final androidx.compose.animation.core.Easing EaseInExpo; 295 property public static final androidx.compose.animation.core.Easing EaseInOut; 296 property public static final androidx.compose.animation.core.Easing EaseInOutBack; 297 property public static final androidx.compose.animation.core.Easing EaseInOutBounce; 298 property public static final androidx.compose.animation.core.Easing EaseInOutCirc; 299 property public static final androidx.compose.animation.core.Easing EaseInOutCubic; 300 property public static final androidx.compose.animation.core.Easing EaseInOutElastic; 301 property public static final androidx.compose.animation.core.Easing EaseInOutExpo; 302 property public static final androidx.compose.animation.core.Easing EaseInOutQuad; 303 property public static final androidx.compose.animation.core.Easing EaseInOutQuart; 304 property public static final androidx.compose.animation.core.Easing EaseInOutQuint; 305 property public static final androidx.compose.animation.core.Easing EaseInOutSine; 306 property public static final androidx.compose.animation.core.Easing EaseInQuad; 307 property public static final androidx.compose.animation.core.Easing EaseInQuart; 308 property public static final androidx.compose.animation.core.Easing EaseInQuint; 309 property public static final androidx.compose.animation.core.Easing EaseInSine; 310 property public static final androidx.compose.animation.core.Easing EaseOut; 311 property public static final androidx.compose.animation.core.Easing EaseOutBack; 312 property public static final androidx.compose.animation.core.Easing EaseOutBounce; 313 property public static final androidx.compose.animation.core.Easing EaseOutCirc; 314 property public static final androidx.compose.animation.core.Easing EaseOutCubic; 315 property public static final androidx.compose.animation.core.Easing EaseOutElastic; 316 property public static final androidx.compose.animation.core.Easing EaseOutExpo; 317 property public static final androidx.compose.animation.core.Easing EaseOutQuad; 318 property public static final androidx.compose.animation.core.Easing EaseOutQuart; 319 property public static final androidx.compose.animation.core.Easing EaseOutQuint; 320 property public static final androidx.compose.animation.core.Easing EaseOutSine; 321 } 322 323 public final class EasingKt { 324 method public static androidx.compose.animation.core.Easing getFastOutLinearInEasing(); 325 method public static androidx.compose.animation.core.Easing getFastOutSlowInEasing(); 326 method public static androidx.compose.animation.core.Easing getLinearEasing(); 327 method public static androidx.compose.animation.core.Easing getLinearOutSlowInEasing(); 328 property public static final androidx.compose.animation.core.Easing FastOutLinearInEasing; 329 property public static final androidx.compose.animation.core.Easing FastOutSlowInEasing; 330 property public static final androidx.compose.animation.core.Easing LinearEasing; 331 property public static final androidx.compose.animation.core.Easing LinearOutSlowInEasing; 332 } 333 334 @kotlin.RequiresOptIn(message="This is an experimental animation API for Transition. It may change in the future.") @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention.BINARY) public @interface ExperimentalTransitionApi { 335 } 336 337 public interface FiniteAnimationSpec<T> extends androidx.compose.animation.core.AnimationSpec<T> { 338 method public <V extends androidx.compose.animation.core.AnimationVector> androidx.compose.animation.core.VectorizedFiniteAnimationSpec<V> vectorize(androidx.compose.animation.core.TwoWayConverter<T,V> converter); 339 } 340 341 @kotlin.jvm.JvmDefaultWithCompatibility public interface FloatAnimationSpec extends androidx.compose.animation.core.AnimationSpec<java.lang.Float> { 342 method public long getDurationNanos(float initialValue, float targetValue, float initialVelocity); 343 method public default float getEndVelocity(float initialValue, float targetValue, float initialVelocity); 344 method public float getValueFromNanos(long playTimeNanos, float initialValue, float targetValue, float initialVelocity); 345 method public float getVelocityFromNanos(long playTimeNanos, float initialValue, float targetValue, float initialVelocity); 346 method public default <V extends androidx.compose.animation.core.AnimationVector> androidx.compose.animation.core.VectorizedFloatAnimationSpec<V> vectorize(androidx.compose.animation.core.TwoWayConverter<java.lang.Float,V> converter); 347 } 348 349 public interface FloatDecayAnimationSpec { 350 method public float getAbsVelocityThreshold(); 351 method public long getDurationNanos(float initialValue, float initialVelocity); 352 method public float getTargetValue(float initialValue, float initialVelocity); 353 method public float getValueFromNanos(long playTimeNanos, float initialValue, float initialVelocity); 354 method public float getVelocityFromNanos(long playTimeNanos, float initialValue, float initialVelocity); 355 property public abstract float absVelocityThreshold; 356 } 357 358 public final class FloatExponentialDecaySpec implements androidx.compose.animation.core.FloatDecayAnimationSpec { 359 ctor public FloatExponentialDecaySpec(optional float frictionMultiplier, optional float absVelocityThreshold); 360 method public float getAbsVelocityThreshold(); 361 method public long getDurationNanos(float initialValue, float initialVelocity); 362 method public float getTargetValue(float initialValue, float initialVelocity); 363 method public float getValueFromNanos(long playTimeNanos, float initialValue, float initialVelocity); 364 method public float getVelocityFromNanos(long playTimeNanos, float initialValue, float initialVelocity); 365 property public float absVelocityThreshold; 366 } 367 368 public final class FloatSpringSpec implements androidx.compose.animation.core.FloatAnimationSpec { 369 ctor public FloatSpringSpec(optional float dampingRatio, optional float stiffness, optional float visibilityThreshold); 370 method public float getDampingRatio(); 371 method public long getDurationNanos(float initialValue, float targetValue, float initialVelocity); 372 method public float getStiffness(); 373 method public float getValueFromNanos(long playTimeNanos, float initialValue, float targetValue, float initialVelocity); 374 method public float getVelocityFromNanos(long playTimeNanos, float initialValue, float targetValue, float initialVelocity); 375 property public final float dampingRatio; 376 property public final float stiffness; 377 } 378 379 public final class FloatTweenSpec implements androidx.compose.animation.core.FloatAnimationSpec { 380 ctor public FloatTweenSpec(optional int duration, optional int delay, optional androidx.compose.animation.core.Easing easing); 381 method public int getDelay(); 382 method public int getDuration(); 383 method public long getDurationNanos(float initialValue, float targetValue, float initialVelocity); 384 method public float getValueFromNanos(long playTimeNanos, float initialValue, float targetValue, float initialVelocity); 385 method public float getVelocityFromNanos(long playTimeNanos, float initialValue, float targetValue, float initialVelocity); 386 property public final int delay; 387 property public final int duration; 388 } 389 390 public final class InfiniteAnimationPolicyKt { 391 method public static suspend inline <R> Object? withInfiniteAnimationFrameMillis(kotlin.jvm.functions.Function1<? super java.lang.Long,? extends R> onFrame, kotlin.coroutines.Continuation<? super R>); 392 method public static suspend <R> Object? withInfiniteAnimationFrameNanos(kotlin.jvm.functions.Function1<? super java.lang.Long,? extends R> onFrame, kotlin.coroutines.Continuation<? super R>); 393 } 394 395 public final class InfiniteRepeatableSpec<T> implements androidx.compose.animation.core.AnimationSpec<T> { 396 ctor @Deprecated public InfiniteRepeatableSpec(androidx.compose.animation.core.DurationBasedAnimationSpec<T> animation, optional androidx.compose.animation.core.RepeatMode repeatMode); 397 ctor public InfiniteRepeatableSpec(androidx.compose.animation.core.DurationBasedAnimationSpec<T> animation, optional androidx.compose.animation.core.RepeatMode repeatMode, optional long initialStartOffset); 398 method public androidx.compose.animation.core.DurationBasedAnimationSpec<T> getAnimation(); 399 method public long getInitialStartOffset(); 400 method public androidx.compose.animation.core.RepeatMode getRepeatMode(); 401 method public <V extends androidx.compose.animation.core.AnimationVector> androidx.compose.animation.core.VectorizedAnimationSpec<V> vectorize(androidx.compose.animation.core.TwoWayConverter<T,V> converter); 402 property public final androidx.compose.animation.core.DurationBasedAnimationSpec<T> animation; 403 property public final long initialStartOffset; 404 property public final androidx.compose.animation.core.RepeatMode repeatMode; 405 } 406 407 public final class InfiniteTransition { 408 method public java.util.List<androidx.compose.animation.core.InfiniteTransition.TransitionAnimationState<?,?>> getAnimations(); 409 method public String getLabel(); 410 property public final java.util.List<androidx.compose.animation.core.InfiniteTransition.TransitionAnimationState<?,?>> animations; 411 property public final String label; 412 } 413 414 public final class InfiniteTransition.TransitionAnimationState<T, V extends androidx.compose.animation.core.AnimationVector> implements androidx.compose.runtime.State<T> { 415 method public androidx.compose.animation.core.TargetBasedAnimation<T,V> getAnimation(); 416 method public androidx.compose.animation.core.AnimationSpec<T> getAnimationSpec(); 417 method public String getLabel(); 418 method public androidx.compose.animation.core.TwoWayConverter<T,V> getTypeConverter(); 419 method public T getValue(); 420 property public final androidx.compose.animation.core.TargetBasedAnimation<T,V> animation; 421 property public final androidx.compose.animation.core.AnimationSpec<T> animationSpec; 422 property public final String label; 423 property public final androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter; 424 property public T value; 425 } 426 427 public final class InfiniteTransitionKt { 428 method @Deprecated @androidx.compose.runtime.Composable public static androidx.compose.runtime.State<java.lang.Float> animateFloat(androidx.compose.animation.core.InfiniteTransition, float initialValue, float targetValue, androidx.compose.animation.core.InfiniteRepeatableSpec<java.lang.Float> animationSpec); 429 method @androidx.compose.runtime.Composable public static androidx.compose.runtime.State<java.lang.Float> animateFloat(androidx.compose.animation.core.InfiniteTransition, float initialValue, float targetValue, androidx.compose.animation.core.InfiniteRepeatableSpec<java.lang.Float> animationSpec, optional String label); 430 method @Deprecated @androidx.compose.runtime.Composable public static <T, V extends androidx.compose.animation.core.AnimationVector> androidx.compose.runtime.State<T> animateValue(androidx.compose.animation.core.InfiniteTransition, T initialValue, T targetValue, androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter, androidx.compose.animation.core.InfiniteRepeatableSpec<T> animationSpec); 431 method @androidx.compose.runtime.Composable public static <T, V extends androidx.compose.animation.core.AnimationVector> androidx.compose.runtime.State<T> animateValue(androidx.compose.animation.core.InfiniteTransition, T initialValue, T targetValue, androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter, androidx.compose.animation.core.InfiniteRepeatableSpec<T> animationSpec, optional String label); 432 method @Deprecated @androidx.compose.runtime.Composable public static androidx.compose.animation.core.InfiniteTransition rememberInfiniteTransition(); 433 method @androidx.compose.runtime.Composable public static androidx.compose.animation.core.InfiniteTransition rememberInfiniteTransition(optional String label); 434 } 435 436 @kotlin.RequiresOptIn(message="This API is internal to library.") @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention.BINARY) @kotlin.annotation.Target(allowedTargets={kotlin.annotation.AnnotationTarget.CLASS, kotlin.annotation.AnnotationTarget.FUNCTION, kotlin.annotation.AnnotationTarget.PROPERTY, kotlin.annotation.AnnotationTarget.FIELD, kotlin.annotation.AnnotationTarget.PROPERTY_GETTER}) public @interface InternalAnimationApi { 437 } 438 439 @androidx.compose.runtime.Immutable public final class KeyframesSpec<T> implements androidx.compose.animation.core.DurationBasedAnimationSpec<T> { 440 ctor public KeyframesSpec(androidx.compose.animation.core.KeyframesSpec.KeyframesSpecConfig<T> config); 441 method public androidx.compose.animation.core.KeyframesSpec.KeyframesSpecConfig<T> getConfig(); 442 method public <V extends androidx.compose.animation.core.AnimationVector> androidx.compose.animation.core.VectorizedKeyframesSpec<V> vectorize(androidx.compose.animation.core.TwoWayConverter<T,V> converter); 443 property public final androidx.compose.animation.core.KeyframesSpec.KeyframesSpecConfig<T> config; 444 } 445 446 public static final class KeyframesSpec.KeyframeEntity<T> { 447 } 448 449 public static final class KeyframesSpec.KeyframesSpecConfig<T> { 450 ctor public KeyframesSpec.KeyframesSpecConfig(); 451 method public infix androidx.compose.animation.core.KeyframesSpec.KeyframeEntity<T> at(T, int timeStamp); 452 method public infix androidx.compose.animation.core.KeyframesSpec.KeyframeEntity<T> atFraction(T, float fraction); 453 method public int getDelayMillis(); 454 method public int getDurationMillis(); 455 method public void setDelayMillis(int); 456 method public void setDurationMillis(int); 457 method public infix void with(androidx.compose.animation.core.KeyframesSpec.KeyframeEntity<T>, androidx.compose.animation.core.Easing easing); 458 property public final int delayMillis; 459 property public final int durationMillis; 460 } 461 462 public final class MutableTransitionState<S> { 463 ctor public MutableTransitionState(S initialState); 464 method public S getCurrentState(); 465 method public S getTargetState(); 466 method public boolean isIdle(); 467 method public void setTargetState(S!); 468 property public final S currentState; 469 property public final boolean isIdle; 470 property public final S targetState; 471 } 472 473 public enum RepeatMode { 474 enum_constant public static final androidx.compose.animation.core.RepeatMode Restart; 475 enum_constant public static final androidx.compose.animation.core.RepeatMode Reverse; 476 } 477 478 @androidx.compose.runtime.Immutable public final class RepeatableSpec<T> implements androidx.compose.animation.core.FiniteAnimationSpec<T> { 479 ctor @Deprecated public RepeatableSpec(int iterations, androidx.compose.animation.core.DurationBasedAnimationSpec<T> animation, optional androidx.compose.animation.core.RepeatMode repeatMode); 480 ctor public RepeatableSpec(int iterations, androidx.compose.animation.core.DurationBasedAnimationSpec<T> animation, optional androidx.compose.animation.core.RepeatMode repeatMode, optional long initialStartOffset); 481 method public androidx.compose.animation.core.DurationBasedAnimationSpec<T> getAnimation(); 482 method public long getInitialStartOffset(); 483 method public int getIterations(); 484 method public androidx.compose.animation.core.RepeatMode getRepeatMode(); 485 method public <V extends androidx.compose.animation.core.AnimationVector> androidx.compose.animation.core.VectorizedFiniteAnimationSpec<V> vectorize(androidx.compose.animation.core.TwoWayConverter<T,V> converter); 486 property public final androidx.compose.animation.core.DurationBasedAnimationSpec<T> animation; 487 property public final long initialStartOffset; 488 property public final int iterations; 489 property public final androidx.compose.animation.core.RepeatMode repeatMode; 490 } 491 492 @androidx.compose.runtime.Immutable public final class SnapSpec<T> implements androidx.compose.animation.core.DurationBasedAnimationSpec<T> { 493 ctor public SnapSpec(optional int delay); 494 method public int getDelay(); 495 method public <V extends androidx.compose.animation.core.AnimationVector> androidx.compose.animation.core.VectorizedDurationBasedAnimationSpec<V> vectorize(androidx.compose.animation.core.TwoWayConverter<T,V> converter); 496 property public final int delay; 497 } 498 499 public final class Spring { 500 field public static final float DampingRatioHighBouncy = 0.2f; 501 field public static final float DampingRatioLowBouncy = 0.75f; 502 field public static final float DampingRatioMediumBouncy = 0.5f; 503 field public static final float DampingRatioNoBouncy = 1.0f; 504 field public static final float DefaultDisplacementThreshold = 0.01f; 505 field public static final androidx.compose.animation.core.Spring INSTANCE; 506 field public static final float StiffnessHigh = 10000.0f; 507 field public static final float StiffnessLow = 200.0f; 508 field public static final float StiffnessMedium = 1500.0f; 509 field public static final float StiffnessMediumLow = 400.0f; 510 field public static final float StiffnessVeryLow = 50.0f; 511 } 512 513 public final class SpringEstimationKt { 514 } 515 516 @androidx.compose.runtime.Immutable public final class SpringSpec<T> implements androidx.compose.animation.core.FiniteAnimationSpec<T> { 517 ctor public SpringSpec(optional float dampingRatio, optional float stiffness, optional T? visibilityThreshold); 518 method public float getDampingRatio(); 519 method public float getStiffness(); 520 method public T? getVisibilityThreshold(); 521 method public <V extends androidx.compose.animation.core.AnimationVector> androidx.compose.animation.core.VectorizedSpringSpec<V> vectorize(androidx.compose.animation.core.TwoWayConverter<T,V> converter); 522 property public final float dampingRatio; 523 property public final float stiffness; 524 property public final T? visibilityThreshold; 525 } 526 527 @kotlin.jvm.JvmInline public final value class StartOffset { 528 ctor public StartOffset(int offsetMillis, optional int offsetType); 529 method public int getOffsetMillis(); 530 method public int getOffsetType(); 531 property public final int offsetMillis; 532 property public final int offsetType; 533 } 534 535 @kotlin.jvm.JvmInline public final value class StartOffsetType { 536 field public static final androidx.compose.animation.core.StartOffsetType.Companion Companion; 537 } 538 539 public static final class StartOffsetType.Companion { 540 method public int getDelay(); 541 method public int getFastForward(); 542 property public final int Delay; 543 property public final int FastForward; 544 } 545 546 public final class SuspendAnimationKt { 547 method public static suspend <T, V extends androidx.compose.animation.core.AnimationVector> Object? animate(androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter, T initialValue, T targetValue, optional T? initialVelocity, optional androidx.compose.animation.core.AnimationSpec<T> animationSpec, kotlin.jvm.functions.Function2<? super T,? super T,kotlin.Unit> block, kotlin.coroutines.Continuation<? super kotlin.Unit>); 548 method public static suspend Object? animate(float initialValue, float targetValue, optional float initialVelocity, optional androidx.compose.animation.core.AnimationSpec<java.lang.Float> animationSpec, kotlin.jvm.functions.Function2<? super java.lang.Float,? super java.lang.Float,kotlin.Unit> block, kotlin.coroutines.Continuation<? super kotlin.Unit>); 549 method public static suspend <T, V extends androidx.compose.animation.core.AnimationVector> Object? animateDecay(androidx.compose.animation.core.AnimationState<T,V>, androidx.compose.animation.core.DecayAnimationSpec<T> animationSpec, optional boolean sequentialAnimation, optional kotlin.jvm.functions.Function1<? super androidx.compose.animation.core.AnimationScope<T,V>,kotlin.Unit> block, optional kotlin.coroutines.Continuation<? super kotlin.Unit>); 550 method public static suspend Object? animateDecay(float initialValue, float initialVelocity, androidx.compose.animation.core.FloatDecayAnimationSpec animationSpec, kotlin.jvm.functions.Function2<? super java.lang.Float,? super java.lang.Float,kotlin.Unit> block, kotlin.coroutines.Continuation<? super kotlin.Unit>); 551 method public static suspend <T, V extends androidx.compose.animation.core.AnimationVector> Object? animateTo(androidx.compose.animation.core.AnimationState<T,V>, T targetValue, optional androidx.compose.animation.core.AnimationSpec<T> animationSpec, optional boolean sequentialAnimation, optional kotlin.jvm.functions.Function1<? super androidx.compose.animation.core.AnimationScope<T,V>,kotlin.Unit> block, optional kotlin.coroutines.Continuation<? super kotlin.Unit>); 552 } 553 554 public final class TargetBasedAnimation<T, V extends androidx.compose.animation.core.AnimationVector> implements androidx.compose.animation.core.Animation<T,V> { 555 ctor public TargetBasedAnimation(androidx.compose.animation.core.AnimationSpec<T> animationSpec, androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter, T initialValue, T targetValue, optional V? initialVelocityVector); 556 method public long getDurationNanos(); 557 method public T getInitialValue(); 558 method public T getTargetValue(); 559 method public androidx.compose.animation.core.TwoWayConverter<T,V> getTypeConverter(); 560 method public T getValueFromNanos(long playTimeNanos); 561 method public V getVelocityVectorFromNanos(long playTimeNanos); 562 method public boolean isInfinite(); 563 property public long durationNanos; 564 property public final T initialValue; 565 property public boolean isInfinite; 566 property public T targetValue; 567 property public androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter; 568 } 569 570 @androidx.compose.runtime.Stable public final class Transition<S> { 571 method public java.util.List<androidx.compose.animation.core.Transition<S>.TransitionAnimationState<?,?>> getAnimations(); 572 method public S getCurrentState(); 573 method public String? getLabel(); 574 method public androidx.compose.animation.core.Transition.Segment<S> getSegment(); 575 method public S getTargetState(); 576 method public long getTotalDurationNanos(); 577 method public java.util.List<androidx.compose.animation.core.Transition<?>> getTransitions(); 578 method public boolean isRunning(); 579 property public final java.util.List<androidx.compose.animation.core.Transition<S>.TransitionAnimationState<?,?>> animations; 580 property public final S currentState; 581 property public final boolean isRunning; 582 property public final String? label; 583 property public final androidx.compose.animation.core.Transition.Segment<S> segment; 584 property public final S targetState; 585 property public final long totalDurationNanos; 586 property public final java.util.List<androidx.compose.animation.core.Transition<?>> transitions; 587 } 588 589 @kotlin.jvm.JvmDefaultWithCompatibility public static interface Transition.Segment<S> { 590 method public S getInitialState(); 591 method public S getTargetState(); 592 method public default infix boolean isTransitioningTo(S, S targetState); 593 property public abstract S initialState; 594 property public abstract S targetState; 595 } 596 597 @androidx.compose.runtime.Stable public final class Transition.TransitionAnimationState<T, V extends androidx.compose.animation.core.AnimationVector> implements androidx.compose.runtime.State<T> { 598 method public androidx.compose.animation.core.TargetBasedAnimation<T,V> getAnimation(); 599 method public androidx.compose.animation.core.FiniteAnimationSpec<T> getAnimationSpec(); 600 method public String getLabel(); 601 method public androidx.compose.animation.core.TwoWayConverter<T,V> getTypeConverter(); 602 method public T getValue(); 603 property public final androidx.compose.animation.core.TargetBasedAnimation<T,V> animation; 604 property public final androidx.compose.animation.core.FiniteAnimationSpec<T> animationSpec; 605 property public final String label; 606 property public final androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter; 607 property public T value; 608 } 609 610 public final class TransitionKt { 611 method @androidx.compose.runtime.Composable public static inline <S> androidx.compose.runtime.State<androidx.compose.ui.unit.Dp> animateDp(androidx.compose.animation.core.Transition<S>, optional kotlin.jvm.functions.Function1<? super androidx.compose.animation.core.Transition.Segment<S>,? extends androidx.compose.animation.core.FiniteAnimationSpec<androidx.compose.ui.unit.Dp>> transitionSpec, optional String label, kotlin.jvm.functions.Function1<? super S,androidx.compose.ui.unit.Dp> targetValueByState); 612 method @androidx.compose.runtime.Composable public static inline <S> androidx.compose.runtime.State<java.lang.Float> animateFloat(androidx.compose.animation.core.Transition<S>, optional kotlin.jvm.functions.Function1<? super androidx.compose.animation.core.Transition.Segment<S>,? extends androidx.compose.animation.core.FiniteAnimationSpec<java.lang.Float>> transitionSpec, optional String label, kotlin.jvm.functions.Function1<? super S,java.lang.Float> targetValueByState); 613 method @androidx.compose.runtime.Composable public static inline <S> androidx.compose.runtime.State<java.lang.Integer> animateInt(androidx.compose.animation.core.Transition<S>, optional kotlin.jvm.functions.Function1<? super androidx.compose.animation.core.Transition.Segment<S>,? extends androidx.compose.animation.core.FiniteAnimationSpec<java.lang.Integer>> transitionSpec, optional String label, kotlin.jvm.functions.Function1<? super S,java.lang.Integer> targetValueByState); 614 method @androidx.compose.runtime.Composable public static inline <S> androidx.compose.runtime.State<androidx.compose.ui.unit.IntOffset> animateIntOffset(androidx.compose.animation.core.Transition<S>, optional kotlin.jvm.functions.Function1<? super androidx.compose.animation.core.Transition.Segment<S>,? extends androidx.compose.animation.core.FiniteAnimationSpec<androidx.compose.ui.unit.IntOffset>> transitionSpec, optional String label, kotlin.jvm.functions.Function1<? super S,androidx.compose.ui.unit.IntOffset> targetValueByState); 615 method @androidx.compose.runtime.Composable public static inline <S> androidx.compose.runtime.State<androidx.compose.ui.unit.IntSize> animateIntSize(androidx.compose.animation.core.Transition<S>, optional kotlin.jvm.functions.Function1<? super androidx.compose.animation.core.Transition.Segment<S>,? extends androidx.compose.animation.core.FiniteAnimationSpec<androidx.compose.ui.unit.IntSize>> transitionSpec, optional String label, kotlin.jvm.functions.Function1<? super S,androidx.compose.ui.unit.IntSize> targetValueByState); 616 method @androidx.compose.runtime.Composable public static inline <S> androidx.compose.runtime.State<androidx.compose.ui.geometry.Offset> animateOffset(androidx.compose.animation.core.Transition<S>, optional kotlin.jvm.functions.Function1<? super androidx.compose.animation.core.Transition.Segment<S>,? extends androidx.compose.animation.core.FiniteAnimationSpec<androidx.compose.ui.geometry.Offset>> transitionSpec, optional String label, kotlin.jvm.functions.Function1<? super S,androidx.compose.ui.geometry.Offset> targetValueByState); 617 method @androidx.compose.runtime.Composable public static inline <S> androidx.compose.runtime.State<androidx.compose.ui.geometry.Rect> animateRect(androidx.compose.animation.core.Transition<S>, optional kotlin.jvm.functions.Function1<? super androidx.compose.animation.core.Transition.Segment<S>,? extends androidx.compose.animation.core.FiniteAnimationSpec<androidx.compose.ui.geometry.Rect>> transitionSpec, optional String label, kotlin.jvm.functions.Function1<? super S,androidx.compose.ui.geometry.Rect> targetValueByState); 618 method @androidx.compose.runtime.Composable public static inline <S> androidx.compose.runtime.State<androidx.compose.ui.geometry.Size> animateSize(androidx.compose.animation.core.Transition<S>, optional kotlin.jvm.functions.Function1<? super androidx.compose.animation.core.Transition.Segment<S>,? extends androidx.compose.animation.core.FiniteAnimationSpec<androidx.compose.ui.geometry.Size>> transitionSpec, optional String label, kotlin.jvm.functions.Function1<? super S,androidx.compose.ui.geometry.Size> targetValueByState); 619 method @androidx.compose.runtime.Composable public static inline <S, T, V extends androidx.compose.animation.core.AnimationVector> androidx.compose.runtime.State<T> animateValue(androidx.compose.animation.core.Transition<S>, androidx.compose.animation.core.TwoWayConverter<T,V> typeConverter, optional kotlin.jvm.functions.Function1<? super androidx.compose.animation.core.Transition.Segment<S>,? extends androidx.compose.animation.core.FiniteAnimationSpec<T>> transitionSpec, optional String label, kotlin.jvm.functions.Function1<? super S,? extends T> targetValueByState); 620 method @androidx.compose.animation.core.ExperimentalTransitionApi @androidx.compose.runtime.Composable public static inline <S, T> androidx.compose.animation.core.Transition<T> createChildTransition(androidx.compose.animation.core.Transition<S>, optional String label, kotlin.jvm.functions.Function1<? super S,? extends T> transformToChildState); 621 method @androidx.compose.runtime.Composable public static <T> androidx.compose.animation.core.Transition<T> updateTransition(androidx.compose.animation.core.MutableTransitionState<T> transitionState, optional String? label); 622 method @androidx.compose.runtime.Composable public static <T> androidx.compose.animation.core.Transition<T> updateTransition(T targetState, optional String? label); 623 } 624 625 @androidx.compose.runtime.Immutable public final class TweenSpec<T> implements androidx.compose.animation.core.DurationBasedAnimationSpec<T> { 626 ctor public TweenSpec(optional int durationMillis, optional int delay, optional androidx.compose.animation.core.Easing easing); 627 method public int getDelay(); 628 method public int getDurationMillis(); 629 method public androidx.compose.animation.core.Easing getEasing(); 630 method public <V extends androidx.compose.animation.core.AnimationVector> androidx.compose.animation.core.VectorizedTweenSpec<V> vectorize(androidx.compose.animation.core.TwoWayConverter<T,V> converter); 631 property public final int delay; 632 property public final int durationMillis; 633 property public final androidx.compose.animation.core.Easing easing; 634 } 635 636 public interface TwoWayConverter<T, V extends androidx.compose.animation.core.AnimationVector> { 637 method public kotlin.jvm.functions.Function1<V,T> getConvertFromVector(); 638 method public kotlin.jvm.functions.Function1<T,V> getConvertToVector(); 639 property public abstract kotlin.jvm.functions.Function1<V,T> convertFromVector; 640 property public abstract kotlin.jvm.functions.Function1<T,V> convertToVector; 641 } 642 643 public final class VectorConvertersKt { 644 method public static <T, V extends androidx.compose.animation.core.AnimationVector> androidx.compose.animation.core.TwoWayConverter<T,V> TwoWayConverter(kotlin.jvm.functions.Function1<? super T,? extends V> convertToVector, kotlin.jvm.functions.Function1<? super V,? extends T> convertFromVector); 645 method public static androidx.compose.animation.core.TwoWayConverter<androidx.compose.ui.geometry.Offset,androidx.compose.animation.core.AnimationVector2D> getVectorConverter(androidx.compose.ui.geometry.Offset.Companion); 646 method public static androidx.compose.animation.core.TwoWayConverter<androidx.compose.ui.geometry.Rect,androidx.compose.animation.core.AnimationVector4D> getVectorConverter(androidx.compose.ui.geometry.Rect.Companion); 647 method public static androidx.compose.animation.core.TwoWayConverter<androidx.compose.ui.geometry.Size,androidx.compose.animation.core.AnimationVector2D> getVectorConverter(androidx.compose.ui.geometry.Size.Companion); 648 method public static androidx.compose.animation.core.TwoWayConverter<androidx.compose.ui.unit.Dp,androidx.compose.animation.core.AnimationVector1D> getVectorConverter(androidx.compose.ui.unit.Dp.Companion); 649 method public static androidx.compose.animation.core.TwoWayConverter<androidx.compose.ui.unit.DpOffset,androidx.compose.animation.core.AnimationVector2D> getVectorConverter(androidx.compose.ui.unit.DpOffset.Companion); 650 method public static androidx.compose.animation.core.TwoWayConverter<androidx.compose.ui.unit.IntOffset,androidx.compose.animation.core.AnimationVector2D> getVectorConverter(androidx.compose.ui.unit.IntOffset.Companion); 651 method public static androidx.compose.animation.core.TwoWayConverter<androidx.compose.ui.unit.IntSize,androidx.compose.animation.core.AnimationVector2D> getVectorConverter(androidx.compose.ui.unit.IntSize.Companion); 652 method public static androidx.compose.animation.core.TwoWayConverter<java.lang.Float,androidx.compose.animation.core.AnimationVector1D> getVectorConverter(kotlin.jvm.internal.FloatCompanionObject); 653 method public static androidx.compose.animation.core.TwoWayConverter<java.lang.Integer,androidx.compose.animation.core.AnimationVector1D> getVectorConverter(kotlin.jvm.internal.IntCompanionObject); 654 } 655 656 @kotlin.jvm.JvmDefaultWithCompatibility public interface VectorizedAnimationSpec<V extends androidx.compose.animation.core.AnimationVector> { 657 method public long getDurationNanos(V initialValue, V targetValue, V initialVelocity); 658 method public default V getEndVelocity(V initialValue, V targetValue, V initialVelocity); 659 method public V getValueFromNanos(long playTimeNanos, V initialValue, V targetValue, V initialVelocity); 660 method public V getVelocityFromNanos(long playTimeNanos, V initialValue, V targetValue, V initialVelocity); 661 method public boolean isInfinite(); 662 property public abstract boolean isInfinite; 663 } 664 665 public interface VectorizedDecayAnimationSpec<V extends androidx.compose.animation.core.AnimationVector> { 666 method public float getAbsVelocityThreshold(); 667 method public long getDurationNanos(V initialValue, V initialVelocity); 668 method public V getTargetValue(V initialValue, V initialVelocity); 669 method public V getValueFromNanos(long playTimeNanos, V initialValue, V initialVelocity); 670 method public V getVelocityFromNanos(long playTimeNanos, V initialValue, V initialVelocity); 671 property public abstract float absVelocityThreshold; 672 } 673 674 @kotlin.jvm.JvmDefaultWithCompatibility public interface VectorizedDurationBasedAnimationSpec<V extends androidx.compose.animation.core.AnimationVector> extends androidx.compose.animation.core.VectorizedFiniteAnimationSpec<V> { 675 method public int getDelayMillis(); 676 method public int getDurationMillis(); 677 method public default long getDurationNanos(V initialValue, V targetValue, V initialVelocity); 678 property public abstract int delayMillis; 679 property public abstract int durationMillis; 680 } 681 682 @kotlin.jvm.JvmDefaultWithCompatibility public interface VectorizedFiniteAnimationSpec<V extends androidx.compose.animation.core.AnimationVector> extends androidx.compose.animation.core.VectorizedAnimationSpec<V> { 683 method public default boolean isInfinite(); 684 property public default boolean isInfinite; 685 } 686 687 public final class VectorizedFloatAnimationSpec<V extends androidx.compose.animation.core.AnimationVector> implements androidx.compose.animation.core.VectorizedFiniteAnimationSpec<V> { 688 ctor public VectorizedFloatAnimationSpec(androidx.compose.animation.core.FloatAnimationSpec anim); 689 method public long getDurationNanos(V initialValue, V targetValue, V initialVelocity); 690 method public V getValueFromNanos(long playTimeNanos, V initialValue, V targetValue, V initialVelocity); 691 method public V getVelocityFromNanos(long playTimeNanos, V initialValue, V targetValue, V initialVelocity); 692 } 693 694 public final class VectorizedInfiniteRepeatableSpec<V extends androidx.compose.animation.core.AnimationVector> implements androidx.compose.animation.core.VectorizedAnimationSpec<V> { 695 ctor @Deprecated public VectorizedInfiniteRepeatableSpec(androidx.compose.animation.core.VectorizedDurationBasedAnimationSpec<V> animation, optional androidx.compose.animation.core.RepeatMode repeatMode); 696 ctor public VectorizedInfiniteRepeatableSpec(androidx.compose.animation.core.VectorizedDurationBasedAnimationSpec<V> animation, optional androidx.compose.animation.core.RepeatMode repeatMode, optional long initialStartOffset); 697 method public long getDurationNanos(V initialValue, V targetValue, V initialVelocity); 698 method public V getValueFromNanos(long playTimeNanos, V initialValue, V targetValue, V initialVelocity); 699 method public V getVelocityFromNanos(long playTimeNanos, V initialValue, V targetValue, V initialVelocity); 700 method public boolean isInfinite(); 701 property public boolean isInfinite; 702 } 703 704 public final class VectorizedKeyframesSpec<V extends androidx.compose.animation.core.AnimationVector> implements androidx.compose.animation.core.VectorizedDurationBasedAnimationSpec<V> { 705 ctor public VectorizedKeyframesSpec(java.util.Map<java.lang.Integer,? extends kotlin.Pair<? extends V,? extends androidx.compose.animation.core.Easing>> keyframes, int durationMillis, optional int delayMillis); 706 method public int getDelayMillis(); 707 method public int getDurationMillis(); 708 method public V getValueFromNanos(long playTimeNanos, V initialValue, V targetValue, V initialVelocity); 709 method public V getVelocityFromNanos(long playTimeNanos, V initialValue, V targetValue, V initialVelocity); 710 property public int delayMillis; 711 property public int durationMillis; 712 } 713 714 public final class VectorizedRepeatableSpec<V extends androidx.compose.animation.core.AnimationVector> implements androidx.compose.animation.core.VectorizedFiniteAnimationSpec<V> { 715 ctor @Deprecated public VectorizedRepeatableSpec(int iterations, androidx.compose.animation.core.VectorizedDurationBasedAnimationSpec<V> animation, optional androidx.compose.animation.core.RepeatMode repeatMode); 716 ctor public VectorizedRepeatableSpec(int iterations, androidx.compose.animation.core.VectorizedDurationBasedAnimationSpec<V> animation, optional androidx.compose.animation.core.RepeatMode repeatMode, optional long initialStartOffset); 717 method public long getDurationNanos(V initialValue, V targetValue, V initialVelocity); 718 method public V getValueFromNanos(long playTimeNanos, V initialValue, V targetValue, V initialVelocity); 719 method public V getVelocityFromNanos(long playTimeNanos, V initialValue, V targetValue, V initialVelocity); 720 } 721 722 public final class VectorizedSnapSpec<V extends androidx.compose.animation.core.AnimationVector> implements androidx.compose.animation.core.VectorizedDurationBasedAnimationSpec<V> { 723 ctor public VectorizedSnapSpec(optional int delayMillis); 724 method public int getDelayMillis(); 725 method public int getDurationMillis(); 726 method public V getValueFromNanos(long playTimeNanos, V initialValue, V targetValue, V initialVelocity); 727 method public V getVelocityFromNanos(long playTimeNanos, V initialValue, V targetValue, V initialVelocity); 728 property public int delayMillis; 729 property public int durationMillis; 730 } 731 732 public final class VectorizedSpringSpec<V extends androidx.compose.animation.core.AnimationVector> implements androidx.compose.animation.core.VectorizedFiniteAnimationSpec<V> { 733 ctor public VectorizedSpringSpec(optional float dampingRatio, optional float stiffness, optional V? visibilityThreshold); 734 method public float getDampingRatio(); 735 method public float getStiffness(); 736 property public final float dampingRatio; 737 property public final float stiffness; 738 } 739 740 public final class VectorizedTweenSpec<V extends androidx.compose.animation.core.AnimationVector> implements androidx.compose.animation.core.VectorizedDurationBasedAnimationSpec<V> { 741 ctor public VectorizedTweenSpec(optional int durationMillis, optional int delayMillis, optional androidx.compose.animation.core.Easing easing); 742 method public int getDelayMillis(); 743 method public int getDurationMillis(); 744 method public androidx.compose.animation.core.Easing getEasing(); 745 method public V getValueFromNanos(long playTimeNanos, V initialValue, V targetValue, V initialVelocity); 746 method public V getVelocityFromNanos(long playTimeNanos, V initialValue, V targetValue, V initialVelocity); 747 property public int delayMillis; 748 property public int durationMillis; 749 property public final androidx.compose.animation.core.Easing easing; 750 } 751 752 public final class VisibilityThresholdsKt { 753 method public static long getVisibilityThreshold(androidx.compose.ui.geometry.Offset.Companion); 754 method public static androidx.compose.ui.geometry.Rect getVisibilityThreshold(androidx.compose.ui.geometry.Rect.Companion); 755 method public static long getVisibilityThreshold(androidx.compose.ui.geometry.Size.Companion); 756 method public static float getVisibilityThreshold(androidx.compose.ui.unit.Dp.Companion); 757 method public static long getVisibilityThreshold(androidx.compose.ui.unit.DpOffset.Companion); 758 method public static long getVisibilityThreshold(androidx.compose.ui.unit.IntOffset.Companion); 759 method public static long getVisibilityThreshold(androidx.compose.ui.unit.IntSize.Companion); 760 method public static int getVisibilityThreshold(kotlin.jvm.internal.IntCompanionObject); 761 } 762 763} 764 765