updateEntry

fun updateEntry(name: String, action: Action, situation: Action.Situation? = null): Boolean(source)

Updates the default action or a situation-specific action override for a registered entry.

Return

true if the entry was found and updated, false otherwise.

Parameters

name

The name of the action entry to update.

action

The new Action.

situation

The optional Situation to override. If null (default), the default action is updated.


fun updateEntry(name: String, predicate: ActionPredicate?): Boolean(source)

Updates the predicate for a registered action entry.

Return

true if the entry was found and updated, false otherwise.

Parameters

name

The name of the action entry to update.

predicate

The new ActionPredicate. Can be null to remove the predicate.