diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index ba83ec31ec8820b69037162e42008a37c2a80d5f..7a34b5def738e9a968548477c8566605d8dfae43 100644 --- a/api/@ohos.web.webview.d.ts +++ b/api/@ohos.web.webview.d.ts @@ -5562,6 +5562,25 @@ declare namespace webview { * @since 12 */ static customizeSchemes(schemes: Array): void; + /** + * Register Web custom schemes. + * + * @param { Array } schemes - Configuration of web custom scheme. + * @param { boolean } lazyInitWebEngine - When true: The interface internally skips initializing WebEngine and + * temporarily stores the registered schemes, which will be passed to WebEngine when it actually + * initializes. When false: The interface automatically performs WebEngine initialization internally. + * @throws { BusinessError } 17100020 - Failed to register custom schemes. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. The length of the schemes array is greater than 10. + * 2. The character length of the scheme is greater than 32. + * 3. The character in the scheme is not within the allowed range of lowercase English letters, numbers, + * and the symbols ".", "+", "-". + * @static + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 21 dynamic&static + */ + static customizeSchemes(schemes: Array, lazyInitWebEngine: boolean): void; /** * Get certificate for the current website.