MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Samples / OnSuspending

Method OnSuspending

SampleApps/webview2_sample_uwp/App.xaml.cs:106–111  ·  view source on GitHub ↗

Invoked when application execution is being suspended. Application state is saved without knowing whether the application will be terminated or resumed with the contents of memory still intact. The source of the suspend request. Details about the suspend request.

(object sender, SuspendingEventArgs e)

Source from the content-addressed store, hash-verified

104 /// <param name="sender">The source of the suspend request.</param>
105 /// <param name="e">Details about the suspend request.</param>
106 private void OnSuspending(object sender, SuspendingEventArgs e)
107 {
108 var deferral = e.SuspendingOperation.GetDeferral();
109 //TODO: Save application state and stop any background activity
110 deferral.Complete();
111 }
112
113 public void UpdateAppTitle(string webViewVersion)
114 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected