Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

[LFS] Implemented screenshot event #178

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions LagFreeScreenshots/EventHandler.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;

namespace LagFreeScreenshots
{
public static class EventHandler
{
/// <summary>
/// Calls when an screenshot is saved
/// </summary>
public static event Action<string, int, int, Metadata> OnScreenshotSaved;

internal static void InvokeScreenshotSaved(string filePath, int width, int height, Metadata metadata) => OnScreenshotSaved?.Invoke(filePath, width, height, metadata);
}
}
Loading