Code example for SwitchPreference

Methods: isChecked