setTotalTime method

void setTotalTime(
  1. int totalTime
)

Set countdown total time (unit: milliseconds).

Implementation

void setTotalTime(int totalTime) {
  if (totalTime <= 0) return;
  mTotalTime = totalTime;
}