AutoTweaker API
Toggle table of contents
0.1.0-alpha.35+c07218c5
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
AutoTweaker API
AutoTweaker API
/
io.github.autotweaker.api.adapter
/
CoreAPI
/
ConfigAPI
/
setProvider
set
Provider
jvm
abstract
suspend
fun
setProvider
(
provider
:
CoreConfig.ProviderConfig.Provider
)
(
source
)
创建或更新一个提供商。
See also
CoreConfig.
Provider
Config.
Provider
Throws
Illegal
State
Exception
已经存在 displayName 相同的提供商、已经存在 id 相同的提供商、找不到指定的 api key。
Illegal
Argument
Exception
找不到类型为 type 的提供商。