×
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 06:10.
47 page views in the last 30 days.
×