API to detect screen mode in Mango

amir

New member
Aug 24, 2011
1
0
0
Visit site
Hi there
I need to display a toaster only when the screen is activated (device is not in standby mode/ locked). I wonder is there any API in mango to detect the screen status? Any help is highly appreciated...
BR
Amir
 

thed

New member
Jan 6, 2011
992
3
0
Visit site
I'm not sure if this is the best way, but you can use the PhoneApplicationFrame.Obscured event to determine when your app is obscured by the OS chrome (including the lockscreen). In your event handling method you can then check the IsLocked property of the ObscuredEventArgs object to see if the screen is locked.
 

Members online

Forum statistics

Threads
323,227
Messages
2,243,482
Members
428,042
Latest member
Steambc