queueEvent#

Fully qualified name: omni::kit::queueEvent

Defined in omni/kit/AppUtils.h

template<class ...Args>
bool omni::kit::queueEvent(
carb::RString deferredEventName,
carb::RString immediateEventName,
Args&&... payload,
)#

Immediately dispatches an Event and then queues it to the main RunLoop.

Parameters:
  • deferredEventName – The event name to defer. This is the “normal” event name.

  • immediateEventName – The event name to dispatch immediately. This is typically deferredEventName with a string suffix :immediate.

  • payload – Zero or more key/value std::pair objects of type std::pair<carb::RStringKey, T> where the first parameter is the key and the second is the value. The value must be of a type understood by a carb::variant::Translator specialization.

Returns:

true if the message was both dispatched immediately and deferred; false if an error occurred.