Code example for ToggleButton

Methods: getId, isChecked