OnRuntimeReady
OnRuntimeReady is a virtual lifecycle method in the LynxExtensionModule class. It is called after the BTS runtime is attached and the initial JavaScript environment has been fully set up.
This callback is always invoked on the BTS thread. It signifies that the runtime is now fully operational and ready to execute JavaScript code. This is the point where you can safely interact with the global lynx object and perform tasks that depend on the page's initial state.
Method Signature
Parameters
Usage
Override this method to perform actions that need to happen once the JavaScript environment is live. Common use cases include:
- Executing initial JavaScript code.
- Getting or setting properties on the global
lynxobject. - Triggering initial data fetches or other asynchronous operations from native code.
Example
See Also
Compatibility
LCD tables only load in the browser