@ Update
Update current values of portal items in a portal (bi-directional between client and server)
constexpr const char * eventHeaderName
Name of the portal event header.
Definition: portalutils.h:15
constexpr const char * itemValueArgName
Name of the argument containing the portal item value in the portal item message.
Definition: portalutils.h:19
constexpr const char * itemTypeArgName
Name of the argument containing the portal item type in the portal item message.
Definition: portalutils.h:18
constexpr const char * eventTypeArgName
Name of the argument containing the portal event type in the portal event header.
Definition: portalutils.h:17
constexpr const char * itemMinArgName
Name of the argument containing the minimum portal item value in the portal item message.
Definition: portalutils.h:20
@ Invalid
Not recognized as a valid portal event type.
Definition: errorstate.h:19
EPortalEventType
Definition: portalutils.h:29
@ Click
Triggered from a portal item button when it registers a click event.
constexpr const char * itemMaxArgName
Name of the argument containing the maximum portal item value in the portal item message.
Definition: portalutils.h:21
std::unique_ptr< nap::APIEvent > APIEventPtr
Definition: apievent.h:179
NAPAPI bool extractPortalEventHeader(const APIEventPtr &event, PortalEventHeader &outHeader, utility::ErrorState &error)
@ Release
Triggered from a portal item button when it registers a release event.
@ Request
Request a descriptor of all the portal items in a portal (from client to server)
NAPAPI std::string getPortalEventTypeString(const EPortalEventType &type)
NAPAPI EPortalEventType getPortalEventType(const std::string &type)
NAPAPI APIEventPtr createPortalEventHeader(const PortalEventHeader &header)
@ Press
Triggered from a portal item button when it registers a press event.
NAPAPI std::string getPortalItemButtonEventString(const EPortalItemButtonEvent &event)
Definition: templateapp.h:17
constexpr const char * dropDownItemNames
Definition: portalutils.h:23
@ Invalid
Not recognized as a valid portal item button event.
@ Response
Respond with a descriptor of all the portal items in a portal (from server to client)
NAPAPI EPortalItemButtonEvent getPortalItemButtonEvent(const std::string &event)
constexpr const char * portalIDArgName
Name of the argument containing the portal ID in the portal event header.
Definition: portalutils.h:16
EPortalItemButtonEvent
Definition: portalutils.h:40
constexpr const char * itemClampArgName
Name of the argument containing the clamp value in the portal item message.
Definition: portalutils.h:22