SubscribeCommand(String,CommandCallback,IntPtr)
Subscribes to the command channel named id
.
The callback
parameter specifies the function to call when commands are received.
The userData
parameter is a generic user-pointer sent to the callback when invoked.
The call is synchronous.
See CheckForEvents for more information.
Parameters
id : string : Name of the command channel you’re subscribing to.
callback : CommandCallback : The CommandCallback that specifies the function to call when the data is available.
userData : IntPtr : The userData sent to the callback when invoked.
Return
Status : Status that indicates if the operation succeeds.