Files
Wino-Mail/Wino.Core.Domain/Interfaces/INativeAppService.cs
T

31 lines
870 B
C#
Raw Normal View History

2024-04-18 01:44:37 +02:00
using System;
using System.Threading.Tasks;
2025-02-16 11:54:23 +01:00
namespace Wino.Core.Domain.Interfaces;
public interface INativeAppService
2024-04-18 01:44:37 +02:00
{
2025-02-16 11:54:23 +01:00
string GetWebAuthenticationBrokerUri();
Task<string> GetMimeMessageStoragePath();
Task<string> GetEditorBundlePathAsync();
Task LaunchFileAsync(string filePath);
Task<bool> LaunchUriAsync(Uri uri);
2025-02-16 11:54:23 +01:00
bool IsAppRunning();
2024-04-18 01:44:37 +02:00
2025-02-16 11:54:23 +01:00
string GetFullAppVersion();
2024-04-18 01:44:37 +02:00
2025-02-16 11:54:23 +01:00
Task PinAppToTaskbarAsync();
2024-04-18 01:44:37 +02:00
2025-02-16 11:54:23 +01:00
/// <summary>
/// Gets or sets the function that returns a pointer for main window hwnd for UWP.
/// This is used to display WAM broker dialog on running UWP app called by a windowless server code.
/// </summary>
Func<IntPtr> GetCoreWindowHwnd { get; set; }
2026-01-03 23:59:37 +01:00
/// <summary>
/// Gets the folder path where calendar attachments are stored.
/// </summary>
string GetCalendarAttachmentsFolderPath();
2024-04-18 01:44:37 +02:00
}