get_active


Description:

[ Version ( since = "3.0" ) ]
public bool get_active ()

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

Parameters:

this

a Switch

Returns:

true if the Switch is active, and false otherwise