×
Namespaces

Variants
Actions

How to get Focus Events

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: User:Kanu123 (29 Jun 2007)
Last edited: hamishwillee (26 Jul 2012)
The framework calls HandleForegroundEventL of the ApplicationUI class when the application receives or loses focus.
void CExampleAppUi::HandleForegroundEventL(TBool aForeground)
{
// Base class HandleForegroundEventL.
CAknAppUi::HandleForegroundEventL(aForeground);
 
if(aForeground)
{
// if aForeground is true, the application received focus.
// Do Something
 
}
else
{
// if aForeground is false, the application lost focus.
// Do Something.
}
}
This page was last modified on 26 July 2012, at 03:10.
42 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×