incognito property
getter/setter pair
Set to true to open a browser window with incognito mode. The default value is false.
Officially Supported Platforms/Implementations:
- Android WebView:
- setting this to
true, it will clear all the cookies of all WebView instances, because there isn't any way to make the website data store non-persistent for the specific WebView instance such as on iOS.
- setting this to
- iOS WKWebView
- macOS WKWebView
- Windows WebView2 (Official API - ICoreWebView2ControllerOptions.put_IsInPrivateModeEnabled)
- Linux WPE WebKit (Official API - webkit_network_session_new_ephemeral)
Implementation
bool? incognito;