Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

decodeControl

Decode a supported control frame.

API

Decode a supported control frame. Returns nullopt for an unrecognized payload; invalid field types may throw JSON exceptions.

Namespace: DARTWIC::Share::JsonCodec.

#include <dartwic/share/DARTWICShareJsonCodec.h>

Declaration

std::optional<Control> decodeControl(const nlohmann::json& frame);