sdk-maps / com.tomtom.online.sdk.map / AnimationDuration / <init>

<init>

AnimationDuration(duration: Long, timeUnit: TimeUnit)

Describes the duration of an animation associated with a user-facing action. Creating an instance with the .createDefault method uses the default duration, defined internally in the SDK.

Parameters

duration - Duration of the animation.

timeUnit - Determines the time unit for the animation duration.