fromRobot static method
- RobotClient robot,
- String name
Get the Switch named name
from the provided robot.
final mySwitch = Switch.fromRobot(myRobotClient, "my_switch");
For more information, see Switch component.
Implementation
static Switch fromRobot(RobotClient robot, String name) {
return robot.getResource(Switch.getResourceName(name));
}