Destroy
Destroy is the final virtual lifecycle method called on a LynxExtensionModule instance. It signals that the module is about to be permanently destroyed and all associated resources should be released.
This callback is always invoked on the BTS thread. It is guaranteed to be called after OnRuntimeDetach. This is the last opportunity to perform any cleanup for the entire module.
Method Signature
Usage
Override this method in your LynxExtensionModule subclass to release any global or long-lived resources that the module holds. After this method completes, the module's memory will be deallocated.
Example
Lifecycle Sequence
The Destroy method is the last step in the module's teardown process:
OnLynxViewDestroy(UI Thread)OnRuntimeDetach(BTS Thread)Destroy(BTS Thread)- The
MyExtensionModuleobject is deleted.
See Also
Compatibility
LCD tables only load in the browser