Skip to content
Merged
Changes from 2 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
35 changes: 35 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>
/// Indicates whether the webview is currently in PWA mode
Comment thread
ndorin marked this conversation as resolved.
Outdated
/// </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 All @@ -56,3 +85,9 @@ public WebViewStatusChangedEventArgs(string status)
}
}
}






Comment thread
ndorin marked this conversation as resolved.
Outdated