setTrigger

open fun setTrigger(trigger: ShortcutTrigger? = null)

Sets the new trigger for @self to be @trigger.

Parameters

trigger

The new trigger. If the @trigger is null, the never trigger will be used.