EventHook

semagrams.bindings.EventHook
trait EventHook[A]

A trait for filters on the event stream, picking out events that are relevant to a particular Action and extracting data of type A from them.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def apply(evt: LocalEvent, globalState: GlobalState): Option[A]

Determine whether or not this is triggered, and if it is triggered

Determine whether or not this is triggered, and if it is triggered

Attributes

def description: String

A brief description of what conditions trigger the eventhook, for use in auto-generated help messages.

A brief description of what conditions trigger the eventhook, for use in auto-generated help messages.

Attributes