Skip to content

Commit

Permalink
Add ValueAnimator.setStartDelay convenience wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
janseeger committed Dec 17, 2024
1 parent 15a1bc2 commit 67d629b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ import kotlin.time.Duration
@Suppress("unused")
fun ValueAnimator.setDuration(duration: Duration): ValueAnimator =
setDuration(duration.inWholeMilliseconds)

@Suppress("unused")
fun ValueAnimator.setStartDelay(duration: Duration) {
setStartDelay(duration.inWholeMilliseconds)
}

0 comments on commit 67d629b

Please sign in to comment.