duration

fun duration(duration: Float): OrbitAnimation

Set the duration of the animation.

Return

This OrbitAnimation object to allow for method chaining.

Parameters

duration

The playback time of one cycle of the animation in seconds.The value should be greater than 0.