Skip to content

Commit

Permalink
chore(doc): clarify WebviewExtWindows::set_low_memory_usage does no…
Browse files Browse the repository at this point in the history
…thing with WebView2 earlier than v1.0.1020.30

Signed-off-by: rhysd <[email protected]>
  • Loading branch information
rhysd committed Oct 27, 2023
1 parent 912a564 commit e3e8a3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/webview/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,9 @@ pub trait WebviewExtWindows {
///
/// Please read [the guide for WebView2][2] for more details.
///
/// This method internally uses an API added at WebView2 v1.0.1020.30. When it is called with
/// WebView2 older than the version, it does nothing.
///
/// [1]: https://learn.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2memoryusagetargetlevel
/// [2]: https://github.com/MicrosoftEdge/WebView2Feedback/blob/main/specs/MemoryUsageTargetLevel.md
fn set_low_memory_usage(&self, enabled: bool);
Expand Down

0 comments on commit e3e8a3b

Please sign in to comment.