set_enabled


Description:

public void set_enabled (bool enabled)

Set whether Server should be running.

Note:

Use Control Hub from `clapper-enhancers` repo instead.

Note that server feature will run only after being added to the player. It can be however set to enabled earlier. If server was already added, changing this property allows to start/stop server at any time.

To be notified when server is actually running/stopped after being enabled/disabled, you can listen for changes to [ property@Clapper.Server:running] property.

Parameters:

this

a Server

enabled

if Server should run