Class

StartOffset

This class defines a start offset for repeatable and infiniteRepeatable.

Source set: Common
public class StartOffset private constructor(internal val value: Long)

This class defines a start offset for repeatable and infiniteRepeatable. There are two types of start offsets: StartOffsetType.Delay and StartOffsetType.FastForward. StartOffsetType.Delay delays the start of the animation, whereas StartOffsetType.FastForward fast forwards the animation to a given play time and starts it right away.

Properties

offsetMillis

Source set: Common
public val offsetMillis: Int

Returns the number of milliseconds to offset the start of the animation.

offsetType

Source set: Common
public val offsetType: StartOffsetType

Returns the offset type of the provided StartOffset.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: