windows phone 8.1 - When App Loses Focus, Do This -


I have a way that I need to run when my app loses focus, in particular, The tile needs to be updated every time the user goes to the start menu. How can I trigger this method whenever the user clicks the back button or the Start menu button?

I thought that if I put it in the onspending (Object Sender, Suspending and Accenture E) then method App.xaml.cs will work , But it turns out that this is not the case !! On closure, I've found that the app launches, but it does not really do what I want.

This is what you are looking for:

when If the user moves an app in the background, the OS waits for a few seconds to see if the user immediately switches back to the app. If the user does not switch back, then the OS has suspended the application.

But this event is being raised not Generally (without debugging) it should work fine. Just remember this fact that there is a limited time for your work in this incident, do not forget that you forget it and release it:

  private async zero onaspending (Object Sender, Suspending and Evergius E) {var deferral = e.SuspendingOperation.GetDeferral (); // deferral.Complete your code here (); }  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -