Interface ITimerListener
A class that is able to receive updates and event callbacks from the ITimerService. This class wraps an ITimerSubscription that contains subscription information.
Namespace: IdleKit.Framework
Assembly: cs.temp.dll.dll
Syntax
public interface ITimerListener
Properties
timerSubscription
Returning the subscription information that is required by the ITimerService
Declaration
ITimerSubscription timerSubscription { get; }
Property Value
Type | Description |
---|---|
ITimerSubscription |
Methods
OnTimerEnded(Int64)
The callback method that gets called whe the duration has elapsed.
Declaration
void OnTimerEnded(long count)
Parameters
Type | Name | Description |
---|---|---|
Int64 | count | The number of time that duration has elapsed since the ITimerListener is subscribed. It is always 1 for a non-looping. ITimerSubscription |
UpdateProgression(Single)
The callback method that gets called every time that the time updates in the ITimerService.
Declaration
void UpdateProgression(float progression)
Parameters
Type | Name | Description |
---|---|---|
Single | progression | The progression between 0 - 1f based on duration that contains this ITimerListener. |