EventType
open class EventType<T> where T : EventProtocol
Represents an EventType
that conforms to a certain type of EventProtocol
T.
-
The name of the
EventType
.Remark
- This name should be unique.
Declaration
Swift
public let name: String
-
Creates a certain
EventType
.Declaration
Swift
public init(name: String)
Parameters
name
The name of the
EventType
.eventHandler
The handler of the event, must be of type T.