Google Cardboard Kit components. The magnets become a switch for the cell phone's magnetometer.