IBM Worklight v5.0.5 > API reference > IBM Worklight client-side API > JavaScript client-side APIWL.App.BackgroundHandler.setOnAppEnteringForeground
Define the behavior of the application before it enters the foreground
WL.App.BackgroundHandler.setOnAppEnteringForeground (handler)
Applies for iOS 4 and later.
Parameter Description handler Function. The function that is called upon receiving the event from iOS that the application is about to enter foreground.
Example
WL.App.BackgroundHandler.setOnAppEnteringForeground(myFunc);
Parent JavaScript client-side API