public class UpdateUI.Callback
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
UpdateUI.Callback.DeviceNameManagerCallback |
Constructor and Description |
---|
Callback() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
displayDeviceName(java.lang.String name) |
RobotStateMonitor |
getStateMonitor() |
void |
networkConnectionUpdate(NetworkConnection.NetworkEvent event) |
void |
refreshErrorTextOnUiThread() |
protected void |
refreshStateStatus() |
void |
restartRobot()
callback method to restart the robot
|
void |
setStateMonitor(RobotStateMonitor stateMonitor) |
void |
updateNetworkConnectionStatus(NetworkStatus networkStatus) |
void |
updateNetworkConnectionStatus(NetworkStatus networkStatus,
java.lang.String extra) |
void |
updatePeerStatus(PeerStatus peerStatus) |
void |
updateRobotState(RobotState state) |
void |
updateRobotStatus(RobotStatus status) |
void |
updateUi(java.lang.String opModeName,
Gamepad[] gamepads) |
public void close()
public RobotStateMonitor getStateMonitor()
public void setStateMonitor(RobotStateMonitor stateMonitor)
public void restartRobot()
public void updateUi(java.lang.String opModeName, Gamepad[] gamepads)
public void networkConnectionUpdate(NetworkConnection.NetworkEvent event)
protected void displayDeviceName(java.lang.String name)
public void updateNetworkConnectionStatus(NetworkStatus networkStatus)
public void updateNetworkConnectionStatus(NetworkStatus networkStatus, java.lang.String extra)
public void updatePeerStatus(PeerStatus peerStatus)
public void updateRobotStatus(RobotStatus status)
public void updateRobotState(RobotState state)
protected void refreshStateStatus()
public void refreshErrorTextOnUiThread()