Code example for Switch

Methods: setOnCheckedChangeListenersetChecked