Skip to content

Commit

Permalink
docs: improve documentation around incognito and data store (#1499)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Laux authored Feb 25, 2025
1 parent 933de78 commit 779d24a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,10 @@ pub struct WebViewAttributes<'a> {
///
/// ## Platform-specific:
///
/// - Windows: Requires WebView2 Runtime version 101.0.1210.39 or higher, does nothing on older versions,
/// - **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 yet.
/// - **macOS / iOS**: Uses the nonPersistent DataStore.
pub incognito: bool,

/// Whether all media can be played without user interaction.
Expand Down Expand Up @@ -1382,6 +1383,8 @@ pub trait WebViewBuilderExtDarwin {
/// Can be used as a replacement for data_directory not being available in WKWebView.
///
/// - **macOS / iOS**: Available on macOS >= 14 and iOS >= 17
///
/// Note: Enable incognito mode to use the `nonPersistent` DataStore.
fn with_data_store_identifier(self, identifier: [u8; 16]) -> Self;
/// Move the window controls to the specified position.
/// Normally this is handled by the Window but because `WebViewBuilder::build()` overwrites the window's NSView the controls will flicker on resizing.
Expand Down

0 comments on commit 779d24a

Please sign in to comment.