/**@class android.preference.SwitchPreference @extends android.preference.TwoStatePreference A {@link android.preference.Preference} that provides a two-state toggleable option. <p> This preference will store a boolean into the SharedPreferences. @attr ref android.R.styleable#SwitchPreference_summaryOff @attr ref android.R.styleable#SwitchPreference_summaryOn @attr ref android.R.styleable#SwitchPreference_switchTextOff @attr ref android.R.styleable#SwitchPreference_switchTextOn @attr ref android.R.styleable#SwitchPreference_disableDependentsState @deprecated Use the <a href="{@docRoot}jetpack/androidx.html">AndroidX</a> <a href="{@docRoot}reference/androidx/preference/package-summary.html"> Preference Library</a> for consistent behavior across all devices. For more information on using the AndroidX Preference Library see <a href="{@docRoot}guide/topics/ui/settings.html">Settings</a>. */ var SwitchPreference = { /**Set the text displayed on the switch widget in the on state. This should be a very short string; one word if possible. @param {Object {CharSequence}} onText Text to display in the on state */ setSwitchTextOn : function( ) {}, /**Set the text displayed on the switch widget in the off state. This should be a very short string; one word if possible. @param {Object {CharSequence}} offText Text to display in the off state */ setSwitchTextOff : function( ) {}, /**Set the text displayed on the switch widget in the on state. This should be a very short string; one word if possible. @param {Number} resId The text as a string resource ID */ setSwitchTextOn : function( ) {}, /**Set the text displayed on the switch widget in the off state. This should be a very short string; one word if possible. @param {Number} resId The text as a string resource ID */ setSwitchTextOff : function( ) {}, /** @return {Object {java.lang.CharSequence}} The text that will be displayed on the switch widget in the on state */ getSwitchTextOn : function( ) {}, /** @return {Object {java.lang.CharSequence}} The text that will be displayed on the switch widget in the off state */ getSwitchTextOff : function( ) {}, };