Class Timer
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
Mechanism to issue simple periodic or one-shot events.
Timer is provided for application developers to be able to issue
simple periodic or one-shot events. Please note that the timer
callback functions should return as soon as possible because they
block the next SignalTick. Please note that timer signals are not
in sync with DALi's render timer.
This class is a handle class so it can be stack allocated and used
as a member.
C#Copypublic class Timer : BaseHandle, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable
- Inheritance
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Constructors
Declaration
C#Copypublic Timer(uint milliSec)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | milliSec | Interval in milliseconds. |
API Level: 3
Properties
Declaration
C#Copypublic uint Interval { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Remarks
For setter, this sets a new interval on the timer and starts the timer.
Cancels the previous timer.
API Level: 4
Methods
Declaration
C#Copyprotected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type |
Overrides
API Level: 3
Declaration
C#Copyprotected void Finalize()
Declaration
C#Copypublic bool IsRunning()
Returns
Type | Description |
---|---|
Boolean | Whether the timer is started or not. |
API Level: 3
Start()
Starts the timer.
In case a timer is already running, its time is reset and the timer is restarted.
Declaration
C#Copypublic void Start()
API Level: 3
Declaration
C#Copypublic void Stop()
API Level: 3
Events
Tick
@brief Event for the ticked signal, which can be used to subscribe or unsubscribe the event handler
provided by the user. The ticked signal is emitted after specified time interval.
Declaration
C#Copypublic event EventHandlerWithReturnType<object, Timer.TickEventArgs, bool> Tick
Event Type
Type | Description |
---|---|
EventHandlerWithReturnType<System.Object, Timer.TickEventArgs, Boolean> |