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);
|
2024-08-05 00:36:26 +02:00
|
|
|
|
|
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; }
|
2024-04-18 01:44:37 +02:00
|
|
|
|
}
|