The switch contains liquid in an upper chamber, separated from a lower chamber by a value. When sufficient pressure is applied by the user, the value opens, allowing the liquid to flow into the lower chamber. The stretch in the wall of the lower chamber causes a circuit to be made (via a stretch sensor). As the lower chamber is elasticated and the valve one-way, the fluid returns to the upper chamber ready for another switch event.
The diagram below illustrates: