Simple Robot
Toggle table of contents
4.11.0
common
Platform filter
common
Switch theme
Search in API
Simple Robot
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
。