Plugin : Timer
Author:Rex.Rainbow
- Get elapsed interval from firebase.
Download
Properties
Domain
- The root location of the Firebase data.
Sub domain
- Sub domain for this function.
Actions
Domain
Action:Set domain
- Set domain ref.
- Domain ( string ) : The root location of the Firebase data.
- Sub domain ( string ) : Sub domain for this function.
On disconnect
Action:Start on disconnect
- Start timer when disconnected.
- User ID ( string ) : User ID.
- Timer ( string ) : Name of timer.
- Interval ( number ) : Time-out interval, in seconds, for starting timer.
Action:Delete on disconnect
- Delete timer when disconnected.
- User ID ( string ) : User ID.
- Timer ( string ) : Name of timer.
Timer
Action:Start
- Start timer.
- User ID ( string ) : User ID.
- Timer ( string ) : Name of timer.
- Interval ( number ) : Time-out interval, in seconds.
Action:Get or start
- Get timer.
- User ID ( string ) : User ID.
- Timer ( string ) : Name of timer.
- Interval ( number ) : Time-out interval, in seconds, for starting timer.
Action:Remove
- Remove timer.
- User ID ( string ) : User ID.
- Timer ( string ) : Name of timer.
Action:Get
- Get timer.
- User ID ( string ) : User ID.
- Timer ( string ) : Name of timer.
Expressions
Timer
Expression:LastTimerName
- Get timer name of last triggered timer
Expression:LastStartTimestamp
- Get start timestamp of last triggered timer under "Condition: On get timer".
Expression:LastCurrentTimestamp
- Get current timestamp of last triggered timer under "Condition: On get timer".
Expression:LastElapsedTime
- Get elapsed time (current - start) of last triggered timer under "Condition: On get timer", in seconds.
Expression:LastTimeoutInterval
- Get time-out interval of last triggered timer under "Condition: On get timer", in seconds.
Expression:LastRemainInterval
- Get interval of last triggered timer under "Condition: On get timer", in seconds.
Expression:LastOwnerID
- Get owner ID of last triggered timer
Conditions
Get timer
Condition:On get timer
- Triggered when get timer.
Condition:On get timer error
- Triggered when get timer error.
Remove timer
Condition:On remove timer complete
- Triggered when remove timer complete.
Condition:On remove timer error
- Triggered when remove timer error.
Start timer
Condition:On start timer
- Triggered when start timer complete.
Condition:On start timer error
- Triggered when start timer error.
Time out
Condition:Is time-out
- Return true if current triggered timer is time-out under "Condition: On get timer".
Valid
Condition:Is valid
- Return true if get valid timer.