public interface CommandListener
Defines the interface that you should implement to receive information on the result of a command.
For more about commands, see CommandSubscription
.
A trivial implementation would be as follows :
import java.util.HashMap;
import java.util.Map;
import com.caplin.streamlink.CommandErrorEvent;
import com.caplin.streamlink.CommandListener;
import com.caplin.streamlink.StreamLink;
public class CommandListenerSnippet
{
public CommandListenerSnippet(StreamLink streamLink)
{
Map
Modifier and Type | Method and Description |
---|---|
void |
onCommandError(java.lang.String subject,
CommandErrorEvent commandErrorEvent)
Callback invoked when a command failed or is an unknown state.
|
void |
onCommandOk(java.lang.String subject)
Callback invoked when a command was successful.
|
void onCommandOk(java.lang.String subject)
Callback invoked when a command was successful.
subject
- The subject of the command.void onCommandError(java.lang.String subject, CommandErrorEvent commandErrorEvent)
Callback invoked when a command failed or is an unknown state.
subject
- The subject of the command.commandErrorEvent
- Information about the command error.Please send bug reports and comments to Caplin support