OnEnterForeground
OnEnterForeground is a virtual lifecycle method in the LynxExtensionModule class. It is called by the Lynx framework when the host application transitions from the background to the foreground.
This callback is always invoked on the UI thread. It is useful for resuming activities, restarting animations, or refreshing data that may have been paused or become stale while the application was in the background.
Method Signature
Usage
Override this method in your LynxExtensionModule subclass to handle application foregrounding events. For instance, you could resume a video, restart a WebSocket connection, or trigger a data refresh.
Example
See Also
OnEnterBackground(): The counterpart to this method, called when the application enters the background.
Compatibility
LCD tables only load in the browser