addPressListener

abstract fun addPressListener(@NotNull onPress: @NotNull Hotkey.OnPress)

Adds a listener to be notified when the hotkey is pressed.

Parameters

onPress

The listener to add.