omni::ext::IExt
Defined in omni/ext/IExt.h
-
class IExt
Extension plugin interface.
Interface for writing simple C++ plugins used by extension system. When extension loads a plugin with this interface it gets automatically acquired and IExt::onStartup() is called. IExt::onShutdown() is called when extension gets shutdown.
See also
ExtensionManager
Public Functions
-
virtual void onStartup(const char *extId) = 0
Called by the Extension Manager when the extension is being started.
- Parameters
extId – Unique extension id is passed in. It can be used to query more extension info from extension manager.
-
virtual void onShutdown() = 0
Called by the Extension Manager when the extension is shutdown.
Public Static Functions
-
static inline constexpr carb::InterfaceDesc getInterfaceDesc() noexcept
Returns information about this interface.
Auto-generated by CARB_PLUGIN_INTERFACE() or CARB_PLUGIN_INTERFACE_EX.
- Returns
The carb::InterfaceDesc struct with information about this interface.
-
static inline constexpr carb::InterfaceDesc getLatestInterfaceDesc() noexcept
Returns information about the latest version of this interface.
Auto-generated by CARB_PLUGIN_INTERFACE() or CARB_PLUGIN_INTERFACE_EX.
- Returns
The carb::InterfaceDesc struct with information about the latest version of this interface.
-
virtual void onStartup(const char *extId) = 0