Switch.getActive

bool getActive()

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

Returns

true if the #GtkSwitch is active, and false otherwise