public abstract static class ButtonConnectionChannel.Callbacks
extends java.lang.Object
| Constructor and Description |
|---|
ButtonConnectionChannel.Callbacks() |
| Modifier and Type | Method and Description |
|---|---|
void |
onButtonClickOrHold(ButtonConnectionChannel channel,
ClickType clickType,
boolean wasQueued,
int timeDiff) |
void |
onButtonSingleOrDoubleClick(ButtonConnectionChannel channel,
ClickType clickType,
boolean wasQueued,
int timeDiff) |
void |
onButtonSingleOrDoubleClickOrHold(ButtonConnectionChannel channel,
ClickType clickType,
boolean wasQueued,
int timeDiff) |
void |
onButtonUpOrDown(ButtonConnectionChannel channel,
ClickType clickType,
boolean wasQueued,
int timeDiff) |
void |
onConnectionStatusChanged(ButtonConnectionChannel channel,
ConnectionStatus connectionStatus,
DisconnectReason disconnectReason)
Called when the connection status changes.
|
void |
onCreateConnectionChannelResponse(ButtonConnectionChannel channel,
CreateConnectionChannelError createConnectionChannelError,
ConnectionStatus connectionStatus)
Called when the server has received the create connection channel command.
|
void |
onRemoved(ButtonConnectionChannel channel,
RemovedReason removedReason)
Called when the connection channel has been removed.
|
public void onCreateConnectionChannelResponse(ButtonConnectionChannel channel, CreateConnectionChannelError createConnectionChannelError, ConnectionStatus connectionStatus) throws java.io.IOException
CreateConnectionChannelError.NoError, other events will arrive until onRemoved(io.flic.fliclib.javaclient.ButtonConnectionChannel, io.flic.fliclib.javaclient.enums.RemovedReason) is received.
There will be no onRemoved(io.flic.fliclib.javaclient.ButtonConnectionChannel, io.flic.fliclib.javaclient.enums.RemovedReason) if an error occurred.channel - createConnectionChannelError - connectionStatus - java.io.IOExceptionpublic void onRemoved(ButtonConnectionChannel channel, RemovedReason removedReason) throws java.io.IOException
channel - removedReason - java.io.IOExceptionpublic void onConnectionStatusChanged(ButtonConnectionChannel channel, ConnectionStatus connectionStatus, DisconnectReason disconnectReason) throws java.io.IOException
channel - connectionStatus - disconnectReason - Only valid if connectionStatus is ConnectionStatus.Disconnectedjava.io.IOExceptionpublic void onButtonUpOrDown(ButtonConnectionChannel channel, ClickType clickType, boolean wasQueued, int timeDiff) throws java.io.IOException
java.io.IOExceptionpublic void onButtonClickOrHold(ButtonConnectionChannel channel, ClickType clickType, boolean wasQueued, int timeDiff) throws java.io.IOException
java.io.IOExceptionpublic void onButtonSingleOrDoubleClick(ButtonConnectionChannel channel, ClickType clickType, boolean wasQueued, int timeDiff) throws java.io.IOException
java.io.IOExceptionpublic void onButtonSingleOrDoubleClickOrHold(ButtonConnectionChannel channel, ClickType clickType, boolean wasQueued, int timeDiff) throws java.io.IOException
java.io.IOException