Skip to content
Merged
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
29 changes: 29 additions & 0 deletions src/PepperDash.Essentials.Core/DeviceTypeInterfaces/IHasWebView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,35 @@ public interface IHasWebView
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>
/// Represents a WebViewStatusChangedEventArgs
/// </summary>
Expand Down