getActive

open fun getActive(): Boolean

Gets whether the GtkSwitch is in its “on” or “off” state.

Return

true if the GtkSwitch is active, and false otherwise