setPeriod

open fun setPeriod(duration: Int, timeUnit: TimeUnit)

set the length of one loop of an animation in specified unit.

Parameters

duration

duration of loop.

timeUnit

unit to use.


open fun setPeriod(period: Int)

set the length of one loop of an animation in milliseconds.

Parameters

period

from 0 - 4,294,697,295. Larger is longer.