Skip to content

getService<T>(ctx, ref): T | undefined

从上下文取服务,未注册时返回 undefined

Type Parameters ​

T ​

T

Parameters ​

ctx ​

MiokuContext

ref ​

ServiceRef<T>

Returns ​

T | undefined

Released under the MIT License with love.