openharmony 鸿蒙 capi-arkweb-error-code-h

2026-08-25 浏览 (1)

arkweb_error_code.h

Overview

Declares the error codes of the ArkWeb NDK APIs.

File to include: <web/arkweb_error_code.h>

Library: libohweb.so

System capability: SystemCapability.Web.Webview.Core

Since: 12

Related module: Web

Summary

Enums

Nametypedef KeywordDescription
ArkWeb_ErrorCodeArkWeb_ErrorCodeEnumerates the error codes of ArkWeb NDK APIs.
ArkWeb_BlanklessErrorCodeArkWeb_BlanklessErrorCodeEnumerates the error codes for the blankless loading.

Enum Description

ArkWeb_ErrorCode

enum ArkWeb_ErrorCode

Description

Enumerates the error codes of ArkWeb NDK APIs.

Since: 12

Enum ItemDescription
ARKWEB_SUCCESS = 0Operation successful.
ARKWEB_INIT_ERROR = 17100001Initialization error.
ARKWEB_ERROR_UNKNOWN = 17100100Unknown error.
ARKWEB_INVALID_PARAM = 17100101Invalid parameter.
ARKWEB_SCHEME_REGISTER_FAILED = 17100102Failed to register the scheme. Register the scheme before creating the Web component.
ARKWEB_INVALID_URL = 17100103Invalid URL.
ARKWEB_INVALID_COOKIE_VALUE = 17100104Invalid cookie value.
ARKWEB_LIBRARY_OPEN_FAILURE = 17100105Failed to open the dynamic link library.
Since: 15
ARKWEB_LIBRARY_SYMBOL_NOT_FOUND = 17100106The required symbol cannot be found in the dynamic link library.
Since: 15
ARKWEB_COOKIE_MANAGER_NOT_INITIALIZED = 17100107CookieManager is not initialized.
Since: 20
ARKWEB_COOKIE_MANAGER_INITIALIZE_FAILED = 17100108CookieManager fails to be initialized.
Since: 20
ARKWEB_COOKIE_SAVE_FAILED = 17100109Cookies fail to be saved.
Since: 20

ArkWeb_BlanklessErrorCode

enum ArkWeb_BlanklessErrorCode

Description

Enumerates the error codes for the blankless loading.

Since: 20

Enum ItemDescription
ARKWEB_BLANKLESS_SUCCESS = 0Operation successful.
ARKWEB_BLANKLESS_ERR_UNKNOWN = -1Unknown error or internal status error.
ARKWEB_BLANKLESS_ERR_INVALID_ARGS = -2Invalid parameter.
ARKWEB_BLANKLESS_ERR_CONTROLLER_NOT_INITED = -3WebViewController is not bound to any component.
ARKWEB_BLANKLESS_ERR_KEY_NOT_MATCH = -4The key value is not matched. The OH_NativeArkWeb_SetBlanklessLoadingWithKey and OH_NativeArkWeb_GetBlanklessInfoWithKey APIs must be used in pair and use the same key value.
ARKWEB_BLANKLESS_ERR_SIGNIFICANT_CHANGE = -5When the similarity is low, the system will deem the scene change too abrupt and frame insertion through the OH_NativeArkWeb_SetBlanklessLoadingWithKey API will fail.
ARKWEB_BLANKLESS_ERR_DEVICE_NOT_SUPPORT = 801This device does not support this feature.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 arkts-apis-webview-WebviewController

openharmony 鸿蒙 arkts-apis-webview-t

openharmony 鸿蒙 arkts-apis-webview

openharmony 鸿蒙 capi-arkweb-type-h

openharmony 鸿蒙 arkts-basic-components-web-FullScreenExitHandler

openharmony 鸿蒙 arkts-apis-webview-WebDownloadManager

openharmony 鸿蒙 arkts-basic-components-web-VerifyPinHandler

openharmony 鸿蒙 capi-web-arkweb-webmessage8h

openharmony 鸿蒙 arkts-apis-webview-NativeMediaPlayerHandler

openharmony 鸿蒙 capi-web-arkweb-proxymethodwithresult

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/tRfnkpDt