docs: improve documentation around incognito and data store (#12806)

This commit is contained in:
Simon Laux
2025-02-25 05:17:20 +01:00
committed by GitHub
parent 6e417c9435
commit ab81adb71b

View File

@@ -728,7 +728,10 @@ fn main() {
///
/// ## Platform-specific:
///
/// **Android**: Unsupported.
/// - **Windows**: Requires WebView2 Runtime version 101.0.1210.39 or higher, does nothing on older versions,
/// see https://learn.microsoft.com/en-us/microsoft-edge/webview2/release-notes/archive?tabs=dotnetcsharp#10121039
/// - **Android**: Unsupported.
/// - **macOS / iOS**: Uses the nonPersistent DataStore
#[must_use]
pub fn incognito(mut self, incognito: bool) -> Self {
self.webview_attributes.incognito = incognito;
@@ -818,6 +821,8 @@ fn main() {
///
/// - **macOS / iOS**: Available on macOS >= 14 and iOS >= 17
/// - **Windows / Linux / Android**: Unsupported.
///
/// Note: Enable incognito mode to use the `nonPersistent` DataStore.
#[must_use]
pub fn data_store_identifier(mut self, data_store_identifier: [u8; 16]) -> Self {
self.webview_attributes.data_store_identifier = Some(data_store_identifier);