This site requires javascript.
Android Code Search
file:androidx/compose/animation/core/AnimationSpec.kt function:at
search
close
info_outline
more_vert
Result 1 of 1
content_copy
Search Result Root
androidx/platform/frameworks/support
keyboard_arrow_right
Branch
Branch
androidx-main
keyboard_arrow_right
Search Result Path
compose/animation/animation-core/src/commonMain/kotlin/androidx/compose/animation/core/
AnimationSpec.kt
content_copy
Preview
474:
475:
476:
/** Method used to delegate instantiation of [E] to implementing classes. */
internal
abstract
fun
cre
at
eEntityFor(value: T): E
485:
486:
487:
// needed as `open` to guarantee binary compatibility in KeyframesSpecConfig
public
open
infix
fun
T.
at
(@IntRange(from =
0
) timeStamp: Int): E {
val
entity = createEntityFor(this)
501:
502:
503:
// needed as `open` to guarantee binary compatibility in KeyframesSpecConfig
public
open
infix
fun
T.
at
Fraction(@FloatRange(from =
0.0
, to =
1.0
) fraction: Float): E {
return
at((durationMillis * fraction).fastRoundToInt())
563:
564:
565:
@OptIn(ExperimentalAnimationSpecApi::
class
)
override
fun
cre
at
eEntityFor(value: T): KeyframeEntity<T> = KeyframeEntity(value)
575:
576:
577:
// overrides `at` for binary compatibility. It should explicitly return KeyframeEntity.
override
infix
fun
T.
at
(@IntRange(from =
0
) timeStamp: Int): KeyframeEntity<T> {
@OptIn(ExperimentalAnimationSpecApi::
class
)
590:
591:
592:
// KeyframeEntity.
override
infix
fun
T.
at
Fraction(
@FloatRange(from =
0.0
, to =
1.0
) fraction: Float
753:
754:
override
fun
cre
at
eEntityFor(value: T): KeyframesSpec.KeyframeEntity<T> =
KeyframesSpec.KeyframeEntity(value)
913:
914:
915:
@Stable
public
fun
<T> repe
at
able(
iterations: Int,
927:
928:
929:
)
public
fun
<T> repe
at
able(
iterations: Int,
995:
996:
override
fun
getDur
at
ionNanos(initialValue: V, targetValue: V, initialVelocity: V): Long =
vectorizedAnimationSpec.getDurationNanos(
unfold_more
Show 2 more matching lines
chevron_left
1
chevron_right
Results per page
10
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Got it
Help
Open branch androidx-main