IActivity_abi#
Fully qualified name: omni::activity::IActivity_abi
-
class IActivity_abi : public omni::core::Inherits<omni::core::IObject, OMNI_TYPE_ID("omni.activity.IActivity")>#
The activity and the progress processor.
Protected Functions
- virtual bool pushEventDict_abi(
- const char *nodePath,
- EventType type,
- const void *eventPayload,
Push event to the system.
TODO: eventPayload is a placeholder TODO: eventPayload should be carb::dictionary
-
virtual void pump_abi() noexcept = 0#
Process the callback.
Should be called once per frame.
-
virtual void setEnabled_abi(bool enabled) noexcept = 0#
Set whether activity tracking is enabled or disabled.
- virtual size_t createCallbackToPop_abi( ) noexcept = 0#
Add a callback that is called when pump is called.
TODO: Subscription
Functions are not yet implemented in ONI. ABI functions must be manually bound.
- virtual size_t createCallbackToPush_abi( ) noexcept = 0#
Add a callback that is called when event is pushed.
TODO: Subscription
-
virtual void removeCallback_abi(size_t id) noexcept = 0#
Remove the callback.
-
virtual uint64_t getCurrentTimestamp_abi() noexcept = 0#
Return current time.