Hello!
Im currently developing an LO Draw Extension in C++ on Linux (sdk 25.2). I have read the documentation, but I still don
t get this one thing:
If I want to have an uno component, service, which should know when the extension is loaded and unloaded (components lives the same timespan as the extension lives), how I can do that?
I cannot find some events to be used in Jobs.xcu or specifications for my meta components definition. I want to have some kind of a singleton, which should know when extension is being loaded and when is about to unload.
So, is there a way to get notification when LO (un)loads my extension?
I found system events like OnStartApp and OnCloseApp, but for example of in a running LO we disable Extension it unloads, but there will be no OnCloseApp event.
I also have thought about dll (.so) being loaded for extension. When LO loads extension, it loads dll, so just call the component creation and initialization on dll entry point and deinitilization on exit point, when dll is being unloaded. But it looks like a not very good crutch.
Thanks for your answers!