public Timer(long interval, int count, TimerRunHandler runHandler = null, TimerOverHandler overHandler = null, string id = "", System.Object param = null) { if (interval <= 0) { throw new System.Exception("interval <= 0"); } mInterval = interval; mTotalCount = count; mRunHandler = runHandler; mOverHandler = overHandler; mId = id; mParam = param; }
public void setOverHandler(TimerOverHandler overHandler) { mOverHandler = overHandler; }