queueEvent#
Fully qualified name: omni::kit::queueEvent
Defined in omni/kit/AppUtils.h
-
template<class ...Args>
bool omni::kit::queueEvent(
)# 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
deferredEventNamewith a string suffix:immediate.payload – Zero or more key/value
std::pairobjects of typestd::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:
trueif the message was both dispatched immediately and deferred;falseif an error occurred.