Live Wallpaper Question: Determining Phone State

Highwinder

Active Member
Licensed User
Longtime User
I have written a LWP app, but it has a secondary function that needs to be able to detect when the user has turned off the screen or started up a process that would normally have the OS suspending the LWP engine.

How can I be able to tell when the user has turned off the screen or otherwise done something on the phone that would cause the LWP engine to be automatically suspended?


- Highwinder
 

Highwinder

Active Member
Licensed User
Longtime User
Thanks

You should use the VisibilityChanged event. It should tell you when the wallpaper is not visible.


Erel, thanks, I appreciate it. I had it figured out shortly after posting, but forgot to come back in to post the answer. I also ended up using the EngineDestroyed event as well.

- Highwinder
 
Upvote 0
Top