toggle menu
Simple Robot
4.8.0
common
switch theme
search in API
simbot-common-core
/
love.forte.simbot.common.services
/
addProvider
add
Provider
inline
fun
<
T
:
Any
>
Services
.
addProvider
(
condition
:
Boolean
,
type
:
KClass
<
T
>
,
crossinline
providerCreator
:
(
)
->
T
)
(
source
)
当满足条件
condition
时,添加
providerCreator
。