# MiniTimer Management

Before using the MiniTimer API, you need to create a MiniTimer API Management object as follows:

local MiniTimer = class.MiniTimer.new()

The specific function name and description are as follows:

Serial number Function name Description
1 isExist(...) Determine if Timer exists
2 createTimer(...) Add Timer
3 deleteTimer(...) Delete Timer
4 startBackwardTimer(...) Start Backward Timer
5 startForwardTimer(...) Start Forward Timer
6 pauseTimer(...) Pause Timer
7 resumeTimer(...) Resume Timer
8 stopTimer(...) Stop Timer
9 changeTimeInterval(...) Change Timer Interval
10 getTimerTime(...) Get Timer Time
11 showTimerTips(...) Display Timer Tips

# isExist

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Determine if Timer exists
  • The specific use cases are as follows:
local result = MiniTimer:isExist(id)

# createTimer

  • Parameters and types:
    • name:string
    • owid:intMap ID(Un-filled by dafult)
    • isprivate:boolWhether is a private timer(Un-filled by dafult)
  • Return value and types:
  • The main role of this method: Add Timer
  • The specific use cases are as follows:
local result = MiniTimer:createTimer(name, owid, isprivate)

# deleteTimer

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Delete Timer
  • The specific use cases are as follows:
local result = MiniTimer:deleteTimer(id)

# startBackwardTimer

  • Parameters and types:
    • id:intTimer index
    • interval:intBackward Timer Interval
    • repeated:boolWhether is repeated
  • Return value and types:
  • The main role of this method: Start Backward Timer
  • The specific use cases are as follows:
local result = MiniTimer:startBackwardTimer(id, interval, repeated)

# startForwardTimer

  • Parameters and types:
    • id:intTimer index
  • Return value and types:
  • The main role of this method: Start Forward Timer
  • The specific use cases are as follows:
local result = MiniTimer:startForwardTimer(id)

# pauseTimer

  • Parameters and types:
    • id:intTimer index
  • Return value and types:
  • The main role of this method: Pause Timer
  • The specific use cases are as follows:
local result = MiniTimer:pauseTimer(id)

# resumeTimer

  • Parameters and types:
    • id:intTimer index
  • Return value and types:
  • The main role of this method: Resume Timer
  • The specific use cases are as follows:
local result = MiniTimer:resumeTimer(id)

# stopTimer

  • Parameters and types:
    • id:intTimer index
  • Return value and types:
  • The main role of this method: Stop Timer
  • The specific use cases are as follows:
local result = MiniTimer:stopTimer(id)

# changeTimeInterval

  • Parameters and types:
    • id:intTimer index
    • interval:intTimer Interval
  • Return value and types:
  • The main role of this method: Change Timer Interval
  • The specific use cases are as follows:
local result = MiniTimer:changeTimeInterval(id, interval)

# getTimerTime

  • Parameters and types:
    • id:intTimer index
  • Return value and types:
  • The main role of this method: Get Timer Time
  • The specific use cases are as follows:
local result = MiniTimer:getTimerTime(id)

# showTimerTips

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Display Timer Tips
  • The specific use cases are as follows:
local result = MiniTimer:showTimerTips(playerids, timerid, text, show)
Last Update: 11/22/2019, 2:31:59 PM