Class TimerUpdateTrigger
Represents a generic update trigger.
Inherited Members
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public sealed class TimerUpdateTrigger : AbstractUpdateTrigger, IBindable, INotifyPropertyChanged, IUpdateTrigger, IDisposable
Constructors
| Edit this page View SourceTimerUpdateTrigger(CustomUpdateData?, bool)
Initializes a new instance of the TimerUpdateTrigger class.
Declaration
public TimerUpdateTrigger(CustomUpdateData? customUpdateData, bool autostart = true)
Parameters
Type | Name | Description |
---|---|---|
CustomUpdateData | customUpdateData | The update-data passed on each update triggered. |
bool | autostart | A value indicating if the trigger should automatically Start() right after construction. |
TimerUpdateTrigger(bool)
Initializes a new instance of the TimerUpdateTrigger class.
Declaration
public TimerUpdateTrigger(bool autostart = true)
Parameters
Type | Name | Description |
---|---|---|
bool | autostart | A value indicating if the trigger should automatically Start() right after construction. |
Properties
| Edit this page View SourceLastUpdateTime
Gets the time it took the last update-loop cycle to run.
Declaration
public override double LastUpdateTime { get; protected set; }
Property Value
Type | Description |
---|---|
double |
Overrides
| Edit this page View SourceUpdateFrequency
Gets or sets the update-frequency in seconds. (Calculate by using '1.0 / updates per second')
Declaration
public double UpdateFrequency { get; set; }
Property Value
Type | Description |
---|---|
double |
Methods
| Edit this page View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public override void Dispose()
Overrides
| Edit this page View SourceStart()
Starts the trigger if needed, causing it to performing updates.
Declaration
public override void Start()
Overrides
| Edit this page View SourceStop()
Stops the trigger if running, causing it to stop performing updates.
Declaration
public void Stop()