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
nameThe name of the
EventType.eventHandlerThe handler of the event, must be of type T.
EventType Class Reference