已合并
LazyInitializeWebEngine #4240
liuzhijie2创建于 2025年11月15日
LazyInitializeWebEngine #4240
已合并
liuzhijie2创建于 2025年11月15日
共 2 个文件变更+14-0
@@ -378,5 +378,9 @@
378 {378 {
379 "first_introduced": "21",379 "first_introduced": "21",
380 "name": "OH_NativeArkWeb_IsActiveWebEngineEvergreen"380 "name": "OH_NativeArkWeb_IsActiveWebEngineEvergreen"
381+ },
382+ {
383+ "first_introduced": "23",
384+ "name": "OH_NativeArkWeb_LazyInitializeWebEngineInCookieManager"
381 }385 }
382]386]
@@ -381,6 +381,16 @@ ArkWebEngineVersion OH_NativeArkWeb_GetActiveWebEngineVersion();
381 */381 */
382bool OH_NativeArkWeb_IsActiveWebEngineEvergreen();382bool OH_NativeArkWeb_IsActiveWebEngineEvergreen();
383 383 
384+/**
385+ * Delays the initialization of the web engine. By default, the web engine is initialized when the CookieManager
386+ * interface is called. By setting the 'lazy' parameter to true, the web engine will not be initialized when the
387+ * CookieManager interface is called. Instead, the web engine will be initialized either when the web component is
388+ * created or when initializeWebEngine is called.
389+ * @param { bool } lazy - Controls whether to delay the initialization of the web engine.
390+ * @since 23
391+ */
392+void OH_NativeArkWeb_LazyInitializeWebEngineInCookieManager(bool lazy);
393+ 
384#ifdef __cplusplus394#ifdef __cplusplus
385};395};
386#endif396#endif