mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-12 17:48:31 +00:00
29 lines
661 B
C#
29 lines
661 B
C#
using System;
|
|
|
|
namespace RGB.NET.Core;
|
|
|
|
/// <summary>
|
|
/// Represents a trigger causing an update.
|
|
/// </summary>
|
|
public interface IUpdateTrigger : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// Gets the time spent for the last update.
|
|
/// </summary>
|
|
double LastUpdateTime { get; }
|
|
|
|
/// <summary>
|
|
/// Occurs when the trigger is starting up.
|
|
/// </summary>
|
|
event EventHandler<CustomUpdateData>? Starting;
|
|
|
|
/// <summary>
|
|
/// Occurs when the trigger wants to cause an update.
|
|
/// </summary>
|
|
event EventHandler<CustomUpdateData>? Update;
|
|
|
|
/// <summary>
|
|
/// Starts the update trigger.
|
|
/// </summary>
|
|
void Start();
|
|
} |