Genvid_SubscribeCommand(const char *id, GenvidCommandCallback callback, void *userData)¶
Subscribes to the command with the name
callbackparameter specifies the function to call when commands are received.
userDatais a generic user pointer that is sent to
callbackwhen it is invoked.
The call is asynchronous.
It returns one of the following values:
GenvidStatus_UninitializedSDK: The Genvid library was not initialized before calling it.
GenvidStatus_InvalidState: The asynchronous handler was not initialized.
GenvidStatus_InvalidParameter: One of the parameters is invalid.
See Genvid_UnsubscribeCommand() for more information.