omni::ext::createExtensionStateChangeHook
Defined in omni/ext/ExtensionsUtils.h
-
inline IHookHolderPtr omni::ext::createExtensionStateChangeHook(IExtensionManagerHooks *hooks, const std::function<void(const char *extId, ExtensionStateChangeType type)> &onStateChange, ExtensionStateChangeType type, const char *extFullName = "", const char *extDictPath = "", Order order = kDefaultOrder, const char *hookName = nullptr)
Wrapper to pass an invocable object to Extension Manager Hooks.
- Parameters
hooks – The IExtensionManagerHooks instance
onStateChange – The
std::function
that captures the invocable type (may be empty)type – The type to monitor for (see IExtensionManagerHooks::createExtensionStateChangeHook())
extFullName – See IExtensionManagerHooks::createExtensionStateChangeHook()
extDictPath – See IExtensionManagerHooks::createExtensionStateChangeHook()
order – See IExtensionManagerHooks::createExtensionStateChangeHook()
hookName – See IExtensionManagerHooks::createExtensionStateChangeHook()
- Returns
see IExtensionManagerHooks::createExtensionStateChangeHook()