setEnabled

abstract fun setEnabled(enabled: Boolean)(source)

Set the enabled state of a task. If a task is disabled none of the its actions are executed. Note that disabling a task does not prevent the execution of the tasks which this task depends on.

Parameters

enabled

The enabled state of this task (true or false)