simple-robot
3.0.0-RC.2
simboot-api
/
love.forte.simboot.listener
/
FunctionalEventListener
Functional
Event
Listener
abstract
class
FunctionalEventListener
<
R
>
:
GenericBootEventListener
基于函数体
KFunction
的监听函数执行器。
Author
ForteScarlet
Constructors
Functions
Inheritors
Constructors
Functional
Event
Listener
Link copied to clipboard
fun
FunctionalEventListener
(
)
Functions
get
Attribute
Link copied to clipboard
abstract
override
fun
<
T
:
Any
>
getAttribute
(
attribute
:
Attribute
<
T
>
)
:
T
?
invoke
Link copied to clipboard
abstract
suspend operator override
fun
invoke
(
context
:
EventListenerProcessingContext
)
:
EventResult
is
Target
Link copied to clipboard
abstract
override
fun
isTarget
(
eventType
:
Event.Key
<
*
>
)
:
Boolean
match
Link copied to clipboard
abstract
suspend override
fun
match
(
context
:
EventListenerProcessingContext
)
:
Boolean
Inheritors
FunctionalBindableEventListener
Link copied to clipboard