Code example for Switch

Methods: setOnCheckedChangeListener