fromRobot static method

Switch fromRobot(
  1. RobotClient robot,
  2. 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));
}