Merge pull request #1388 from PepperDash/feature/add-IHasWebViewWithPwaMode

Feature/add i has web view with pwa mode
This commit is contained in:
Neil Dorin 2026-02-24 15:36:59 -07:00 committed by GitHub
commit 963925ffef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,6 +36,35 @@ namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
event EventHandler<WebViewStatusChangedEventArgs> WebViewStatusChanged; event EventHandler<WebViewStatusChangedEventArgs> WebViewStatusChanged;
} }
/// <summary>
/// Defines the contract for IHasWebViewWithPwaMode
/// </summary>
public interface IHasWebViewWithPwaMode : IHasWebView
{
/// <summary>
/// Indicates whether the webview is currently in PWA mode
/// </summary>
bool IsInPwaMode { get; }
/// <summary>
/// Gets the BoolFeedback indicating whether the webview is currently in PWA mode
/// </summary>
BoolFeedback IsInPwaModeFeedback { get; }
/// <summary>
/// Sends navigators to the specified PWA URL. Accepts an absolute URL or a relative URL for a mobile control app
/// </summary>
/// <param name="url">The URL to navigate to</param>
void SendNavigatorsToPwaUrl(string url);
/// <summary>
/// Exits navigators from PWA mode
/// </summary>
void ExitNavigatorsPwaMode();
}
/// <summary> /// <summary>
/// Represents a WebViewStatusChangedEventArgs /// Represents a WebViewStatusChangedEventArgs
/// </summary> /// </summary>