Interface: ILoadingService
Defined in: src/types/services.ts:100
Loading indicator service for showing progress spinners during miniapp operations.
Remarks
Replaces startLoading/endLoading from services/loading.
Methods
addLoaderInLoadingMap()?
optionaladdLoaderInLoadingMap(key,loaderId):void
Defined in: src/types/services.ts:106
Register a loader in the loading map under a miniapp key
Parameters
key
string
loaderId
string
Returns
void
removeAllLoadersOfMiniapp()?
optionalremoveAllLoadersOfMiniapp(key):void
Defined in: src/types/services.ts:110
Remove all loaders associated with a miniapp key
Parameters
key
string
Returns
void
removeLoaderFromLoadingMap()?
optionalremoveLoaderFromLoadingMap(key,loaderId):void
Defined in: src/types/services.ts:108
Remove a specific loader from the loading map
Parameters
key
string
loaderId
string
Returns
void
startLoading()
startLoading():
string
Defined in: src/types/services.ts:102
Start a loading indicator and return its unique loader ID
Returns
string
stopLoading()
stopLoading(
loaderId):void
Defined in: src/types/services.ts:104
Stop a loading indicator by its loader ID
Parameters
loaderId
string
Returns
void