Class WebViewTheme
- Namespace
- VpnHood.AppUi.Hosting.WebView
- Assembly
- VpnHood.AppUi.Hosting.WebView.dll
Provides the app's theme colours where the web UI runs in the app's process, as on Android, iOS and MAUI: read once, for every view that draws with them.
public static class WebViewTheme
- Inheritance
-
WebViewTheme
- Inherited Members
Properties
Colors
Gets the theme's colours, read once from the UI's content, or the defaults where it has none or cannot be read.
public static Task<ThemeColors> Colors { get; }
Property Value
Exceptions
- InvalidOperationException
The property was first read before the app started; the failure is kept, so later reads throw too.