Skip to content

Commit

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

@Suppress("unused")
fun ViewPropertyAnimator.setStartDelay(duration: Duration): ViewPropertyAnimator =
setStartDelay(duration.inWholeMilliseconds)

0 comments on commit 108efdf

Please sign in to comment.