# PreloadRuntime
Trigger the runtime of the preloaded Mini Program to increase the opening speed of the Mini Program
初始值
# Call parameter
No parameter
# Return parameters
No parameter
# sample code
val request = WMPFPreloadRuntimeRequest().apply {
baseRequest = WMPFBaseRequestHelper.checked()
}
val result = WMPFIPCInvoker.invokeAsync<IPCInvokerTask_PreloadRuntime,
WMPFPreloadRuntimeRequest, WMPFPreloadRuntimeResponse>(
request,
IPCInvokerTask_PreloadRuntime::class.java
) { response ->
if (isSuccess(response)) {
it.onSuccess(response)
} else {
it.onError(TaskErrorException(createTaskError(response)))
}
}
if (!result) {
it.onError(Exception("invoke preloadRuntime fail"))
}