diff --git a/.gitignore b/.gitignore
index 87a1ace51e09e12f655bfdb37eb3280ca2ca17c9..d58f67497c540582a67729200f77c7d83fe28d08 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,6 @@ build-tools/dts_parser/mochawesome-report
#忽略本地typescript离线包
build-tools/dts_parser/deps/*
+
+# 忽略vscode的配置文件
+.vscode/
\ No newline at end of file
diff --git a/BUILD.gn b/BUILD.gn
index d347ff0abc61c3126ea58261ebf0f7920befc382..e3e1638565e5ba8091bead3c856f2973b5916eb7 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -11,20 +11,68 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+import("//build/config/components/ets_frontend/ets2abc_config.gni")
import("//build/ohos.gni")
import("//build/ohos/notice/notice.gni")
import("//build/ohos_var.gni")
+import("//build/templates/bpf/ohos_bpf_config.gni")
import("//build/templates/metadata/module_info.gni")
import("interface_config.gni")
# 全局变量方法见 https://gitee.com/openharmony/build/blob/master/docs/cmake%E8%BD%ACgn%E6%8C%87%E5%AF%BC%E6%96%87%E6%A1%A3.md#gn%E5%B8%B8%E7%94%A8%E7%9A%84%E5%86%85%E7%BD%AE%E5%8F%98%E9%87%8F
+# 特殊场景没有拷贝interface接口信息,强基之后源码仓api不能直接使用,需要进行处理
+exists_path_tools = "//interface/sdk-js/exists_path.py"
+exists_path_args = [
+ "--path",
+ rebase_path(interface_sdk_path_ets1, root_build_dir),
+]
+has_interface_file =
+ exec_script(exists_path_tools, exists_path_args, "trim string")
+
+if (has_interface_file != "True") {
+ arkts_sdk_config_parser = "//build/ohos/sdk/parse_interface_sdk.py"
+ ohos_sdk_arkts_description_file =
+ "//out/sdk-interface/ohos_sdk_pub_description_std.json"
+ if (host_os == "mac") {
+ node_path = "//prebuilts/build-tools/common/nodejs/node-v16.20.2-darwin-x64/bin/node"
+ npm_path = "//prebuilts/build-tools/common/nodejs/node-v16.20.2-darwin-x64/bin/npm"
+ } else {
+ node_path = "//prebuilts/build-tools/common/nodejs/node-v16.20.2-linux-x64/bin/node"
+ npm_path = "//prebuilts/build-tools/common/nodejs/node-v16.20.2-linux-x64/bin/npm"
+ }
+ arkts_sdk_args = [
+ "--sdk-description-file",
+ rebase_path("//build/ohos/sdk/ohos_sdk_description_std.json",
+ root_build_dir),
+ "--root-build-dir",
+ rebase_path("//", root_build_dir),
+ "--node-js",
+ rebase_path(node_path, root_build_dir),
+ "--output-arkts-sdk-desc-file",
+ rebase_path(ohos_sdk_arkts_description_file, root_build_dir),
+ "--sdk-build-public",
+ "${sdk_build_public}",
+ "--sdk-build-arkts",
+ "${sdk_build_arkts}",
+ "--npm-path",
+ rebase_path(npm_path, root_build_dir),
+ ]
+ exec_script(arkts_sdk_config_parser, arkts_sdk_args)
+}
+
template("ohos_copy_internal") {
forward_variables_from(invoker, "*")
iv_input = invoker.iv_input
+ # fullSDK中api路径
+ input_project_dir = interface_sdk_path_ets1
+ if (sdk_type == "ets2") {
+ input_project_dir = interface_sdk_path_ets2
+ }
+
# 调用build/templates/common/copy.gni中的ohos_copy方法
- # 将处理完成的文件输出到中间产物对应位置 out/sdk/obj/interface/sdk-js/$target_name
+ # 将处理完成的文件输出到中间产物对应位置 out/sdk/obj/interface/sdk-js/${target_name}
ohos_copy(target_name) {
# 该脚本根据传入的remove文件进行input文件规则检查,过滤不需要的文件
# remove文件没有对应$target_name的属性 则全部输出
@@ -35,18 +83,23 @@ template("ohos_copy_internal") {
process_arguments = [
"--input",
rebase_path(iv_input, root_build_dir),
+ "--project-dir",
+ rebase_path(input_project_dir, root_build_dir),
+ "--base-dir",
+ rebase_path("//interface/sdk-js", root_build_dir),
"--remove",
rebase_path("//interface/sdk-js/remove_list.json", root_build_dir),
"--ispublic",
"${sdk_build_public}",
"--name",
- "$target_name",
+ "${target_name}",
]
# 执行脚本
sources = exec_script(process_script, process_arguments, "value")
- outputs = [ target_out_dir + "/$target_name/{{source_file_part}}" ]
- module_source_dir = target_out_dir + "/$target_name"
+ outputs =
+ [ target_out_dir + "/${sdk_type}/${target_name}/{{source_file_part}}" ]
+ module_source_dir = target_out_dir + "/${sdk_type}/${target_name}"
module_install_name = ""
}
}
@@ -54,29 +107,28 @@ template("ohos_copy_internal") {
# 主要api处理template
template("ohos_declaration_template") {
forward_variables_from(invoker, "*")
- _module_info_target = "/ohos_declaration/${target_name}_info"
+ _module_info_target = "/ohos_declaration/${sdk_type}/${target_name}_info"
+
+ # fullSDK中api路径
+ input_project_dir = interface_sdk_path_ets1
+ if (sdk_type == "ets2") {
+ input_project_dir = interface_sdk_path_ets2
+ }
+ input_api_dir = input_project_dir + "/api"
action_with_pydeps(target_name) {
- inputs = [ "//interface/sdk-js/api" ]
- outputs = [ root_out_dir + "/ohos_declaration/$target_name" ]
+ inputs = [ input_project_dir + "/api" ]
+ outputs = [ root_out_dir + "/ohos_declaration/${sdk_type}/${target_name}" ]
# 处理api文件下全部文件,过滤特定文件
script = "//interface/sdk-js/remove_internal.py"
-
- # fullSDK中api路径
- input_api_dir = "//interface/sdk-js/api"
- if (sdk_build_public || product_name == "ohos-sdk") {
- script = "//out/sdk-public/public_interface/sdk-js/remove_internal.py"
-
- # publicSDK中api路径,经过./build-tools/delete_systemapi_plugin.js脚本处理过systemapi的接口
- input_api_dir = "//out/sdk-public/public_interface/sdk-js/api"
- }
args = [
"--input",
rebase_path(input_api_dir, root_build_dir),
"--output",
- rebase_path(root_out_dir + "/ohos_declaration/$target_name/",
- root_build_dir),
+ rebase_path(
+ root_out_dir + "/ohos_declaration/${sdk_type}/${target_name}/",
+ root_build_dir),
]
if (defined(deps)) {
deps += [ ":$_module_info_target" ]
@@ -89,76 +141,94 @@ template("ohos_declaration_template") {
module_type = "jsdoc"
module_install_name = ""
module_name = _target_name
- module_source_dir = root_out_dir + "/ohos_declaration/$_target_name"
+ module_source_dir =
+ root_out_dir + "/ohos_declaration/${sdk_type}/$_target_name"
install_enable = false
}
}
# ets/api执行脚本
ohos_declaration_template("ohos_declaration_ets") {
+ sdk_type = "ets"
}
-# ets/api执行脚本
-ohos_copy("common_api") {
- sources = common_api_src
- outputs = [ target_out_dir + "/$target_name/{{source_file_part}}" ]
- module_source_dir = target_out_dir + "/$target_name"
- module_install_name = ""
+# ets2/api执行脚本
+ohos_declaration_template("ohos_declaration_ets2") {
+ sdk_type = "ets2"
}
# ets/api/@internal/full执行脚本
ohos_copy_internal("ets_internal_api") {
- iv_input = "//interface/sdk-js/api/@internal/ets"
+ sdk_type = "ets"
+ iv_input = interface_sdk_path_ets1 + "/api/@internal/ets"
}
# ets/arkts执行脚本
-ohos_copy("bundle_arkts") {
- sources = [ "//interface/sdk-js/arkts" ]
- outputs = [ target_out_dir + "/$target_name" ]
- module_source_dir = target_out_dir + "/$target_name"
- module_install_name = ""
- license_file = "./LICENCE.md"
+ohos_copy_internal("bundle_arkts") {
+ sdk_type = "ets"
+ iv_input = interface_sdk_path_ets1 + "/arkts"
+}
+
+# ets1.2/arkts执行脚本
+ohos_copy_internal("bundle_arkts_ets1.2") {
+ sdk_type = "ets2"
+ iv_input = interface_sdk_path_ets2 + "/arkts"
+}
+
+ohos_copy_internal("ets_internal_api2") {
+ sdk_type = "ets2"
+ iv_input = interface_sdk_path_ets2 + "/api/@internal/ets"
}
if (!sdk_build_public) {
# ets/build-tools/ets-loader/declarations脚本
ohos_copy("bundle_api") {
+ sdk_type = "ets"
sources = [ "api/bundle/bundleStatusCallback.d.ts" ]
- outputs = [ target_out_dir + "/$target_name/{{source_file_part}}" ]
- module_source_dir = target_out_dir + "/$target_name"
+ outputs =
+ [ target_out_dir + "/${sdk_type}/${target_name}/{{source_file_part}}" ]
+ module_source_dir = target_out_dir + "/${sdk_type}/${target_name}"
module_install_name = ""
}
}
# ets/component执行脚本
ohos_copy_internal("ets_component") {
- iv_input = "//interface/sdk-js/api/@internal/component/ets"
+ sdk_type = "ets"
+ iv_input = interface_sdk_path_ets1 + "/api/@internal/component/ets"
+}
+
+# ets1.2/arkui/component执行脚本
+ohos_copy_internal("ets_component2") {
+ sdk_type = "ets2"
+ iv_input = "//out/arkui_transformer_api"
}
# ets/kits执行脚本
-ohos_copy("bundle_kits") {
- if (sdk_build_public || product_name == "ohos-sdk") {
- sources = [ "//out/sdk-public/public_interface/sdk-js/kits" ]
- } else {
- sources = [ "//interface/sdk-js/kits" ]
- }
- outputs = [ target_out_dir + "/$target_name" ]
- module_source_dir = target_out_dir + "/$target_name"
- module_install_name = ""
+ohos_copy_internal("bundle_kits") {
+ sdk_type = "ets"
+ iv_input = interface_sdk_path_ets1 + "/kits"
+}
+
+# ets2/kits执行脚本
+ohos_copy_internal("bundle_kits2") {
+ sdk_type = "ets2"
+ iv_input = interface_sdk_path_ets2 + "/kits"
}
# js/api执行脚本
ohos_declaration_template("ohos_declaration_common") {
+ sdk_type = "ets"
}
# js/api/@internal/full执行脚本
ohos_copy_internal("internal_full") {
- iv_input = "//interface/sdk-js/api/common/full"
+ iv_input = interface_sdk_path_ets1 + "/api/common/full"
}
# js/api/@internal/lite执行脚本呢
ohos_copy_internal("internal_lite") {
- iv_input = "//interface/sdk-js/api/common/lite"
+ iv_input = interface_sdk_path_ets1 + "/api/common/lite"
}
# js/api/config执行脚本
@@ -167,8 +237,8 @@ ohos_copy("config") {
"api/config/css",
"api/config/hml",
]
- outputs = [ target_out_dir + "/$target_name/{{source_file_part}}" ]
- module_source_dir = target_out_dir + "/$target_name"
+ outputs = [ target_out_dir + "/${target_name}/{{source_file_part}}" ]
+ module_source_dir = target_out_dir + "/${target_name}"
module_install_name = ""
}
@@ -179,15 +249,129 @@ ohos_copy("form_declaration") {
"api/form/css",
"api/form/hml",
]
- outputs = [ target_out_dir + "/$target_name/{{source_file_part}}" ]
- module_source_dir = target_out_dir + "/$target_name"
+ outputs = [ target_out_dir + "/${target_name}/{{source_file_part}}" ]
+ module_source_dir = target_out_dir + "/${target_name}"
module_install_name = ""
}
# toolchains/syscapcheck执行脚本
ohos_copy("syscap_check") {
sources = [ "api/syscapCheck/sysCapSchema.json" ]
- outputs = [ target_out_dir + "/$target_name/{{source_file_part}}" ]
- module_source_dir = target_out_dir + "/$target_name"
+ outputs = [ target_out_dir + "/${target_name}/{{source_file_part}}" ]
+ module_source_dir = target_out_dir + "/${target_name}"
module_install_name = ""
}
+
+action("ohos_ets_api_tmp") {
+ script = "//interface/sdk-js/ohos_copy_ets.py"
+
+ args = [
+ "--input",
+ rebase_path("//interface/sdk-js/api"),
+ "--output",
+ rebase_path("$ohos_ets_api_tmp_path"),
+ "--type",
+ "ets2",
+ "--source-root-dir",
+ rebase_path("//"),
+ "--node-js",
+ rebase_path(nodejs, root_build_dir),
+ ]
+
+ outputs = [ "$ohos_ets_api_tmp_path" ]
+}
+
+action("ohos_ets_arkts_tmp") {
+ script = "//interface/sdk-js/ohos_copy_ets.py"
+
+ args = [
+ "--input",
+ rebase_path("//interface/sdk-js/arkts"),
+ "--output",
+ rebase_path("$ohos_ets_arkts_tmp_path"),
+ "--type",
+ "ets2",
+ "--source-root-dir",
+ rebase_path("//"),
+ "--node-js",
+ rebase_path(nodejs, root_build_dir),
+ ]
+
+ outputs = [ "$ohos_ets_arkts_tmp_path" ]
+}
+
+action("ohos_ets_kits_tmp") {
+ script = "//interface/sdk-js/ohos_copy_ets.py"
+
+ args = [
+ "--input",
+ rebase_path("//interface/sdk-js/kits"),
+ "--output",
+ rebase_path("$ohos_ets_kits_tmp_path"),
+ "--type",
+ "ets2",
+ "--source-root-dir",
+ rebase_path("//"),
+ "--node-js",
+ rebase_path(nodejs, root_build_dir),
+ ]
+
+ outputs = [ "$ohos_ets_kits_tmp_path" ]
+}
+
+action("ohos_ets_api_arkui_tmp") {
+ deps = [ ":ohos_ets_api_tmp" ]
+ script = "//interface/sdk-js/arkui_transformer.py"
+
+ if (host_os == "mac") {
+ node_path = "//prebuilts/build-tools/common/nodejs/node-v16.20.2-darwin-x64/bin/node"
+ npm_path =
+ "//prebuilts/build-tools/common/nodejs/node-v16.20.2-darwin-x64/bin/npm"
+ } else {
+ node_path =
+ "//prebuilts/build-tools/common/nodejs/node-v16.20.2-linux-x64/bin/node"
+ npm_path =
+ "//prebuilts/build-tools/common/nodejs/node-v16.20.2-linux-x64/bin/npm"
+ }
+ args = [
+ "--input",
+ rebase_path(ohos_ets_api_tmp_path + "/@internal/component/ets",
+ root_build_dir),
+ "--output",
+ rebase_path(ohos_ets_api_tmp_path + "/arkui/component", root_build_dir),
+ "--source_root_dir",
+ rebase_path("//", root_build_dir),
+ "--npm-path",
+ rebase_path(npm_path, root_build_dir),
+ "--node-js",
+ rebase_path(node_path, root_build_dir),
+ ]
+ outputs = [ "$ohos_ets_api_arkui_tmp_path" ]
+}
+
+ohos_copy("ohos_ets_arkts") {
+ deps = [ ":ohos_ets_arkts_tmp" ]
+ sources = [ ohos_ets_arkts_tmp_path ]
+ outputs = [ ohos_ets_arkts_path ]
+ part_name = "sdk"
+ subsystem_name = "sdk"
+}
+
+ohos_copy("ohos_ets_kits") {
+ deps = [ ":ohos_ets_kits_tmp" ]
+ sources = [ ohos_ets_kits_tmp_path ]
+ outputs = [ ohos_ets_kits_path ]
+ part_name = "sdk"
+ subsystem_name = "sdk"
+}
+
+ohos_copy("ohos_ets_api") {
+ deps = [
+ ":ohos_ets_api_arkui_tmp",
+ ":ohos_ets_api_tmp",
+ ]
+ sources = [ ohos_ets_api_tmp_path ]
+ outputs = [ ohos_ets_api_path ]
+ part_name = "sdk"
+ subsystem_name = "sdk"
+}
diff --git a/OAT.xml b/OAT.xml
index 2ec3b5633794929f80ae462e639c48d22876e1ec..c3931061183e0fd0f53acbf4837b9a9681017b46 100644
--- a/OAT.xml
+++ b/OAT.xml
@@ -86,6 +86,12 @@ Note:If the text contains special characters, please escape them according to th
+
+
+
+
+
+
diff --git a/api/@internal/component/ets/action_sheet.d.ts b/api/@internal/component/ets/action_sheet.d.ts
index 3f404fc1b2c0d3d518dff90d9ea4c39c1e511e0a..166a48deb4de82564c0acfe9c66609dac60f0810 100644
--- a/api/@internal/component/ets/action_sheet.d.ts
+++ b/api/@internal/component/ets/action_sheet.d.ts
@@ -18,6 +18,19 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { Resource } from '../../global/resource';
+import {
+ VoidCallback, ResourceStr, ResourceColor, Dimension, BorderRadiuses, LocalizedEdgeColors, EdgeColors,
+ EdgeWidths, LocalizedEdgeWidths, EdgeStyles, LocalizedBorderRadiuses
+} from './units';
+import { Callback, DismissReason, Rectangle, BlurStyle, TransitionEffect, ShadowOptions, HoverModeAreaType,
+ ShadowStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions } from './common';
+import { DialogButtonStyle, BorderStyle } from './enums';
+import { DialogAlignment } from './alertDialog';
+import { LevelOrder, LevelMode, ImmersiveMode } from '../../@ohos.promptAction';
+/*** endif */
+
/**
* The information of sheet.
*
@@ -40,7 +53,8 @@
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface SheetInfo {
/**
@@ -65,7 +79,8 @@ interface SheetInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
title: string | Resource;
@@ -91,7 +106,8 @@ interface SheetInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
icon?: string | Resource;
@@ -126,7 +142,8 @@ interface SheetInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
action: VoidCallback;
}
@@ -138,7 +155,8 @@ interface SheetInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface DismissDialogAction {
/**
@@ -148,7 +166,8 @@ declare interface DismissDialogAction {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
dismiss: Callback;
@@ -159,7 +178,8 @@ declare interface DismissDialogAction {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
reason: DismissReason;
}
@@ -171,7 +191,8 @@ declare interface DismissDialogAction {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface ActionSheetButtonOptions {
/**
@@ -189,7 +210,8 @@ interface ActionSheetButtonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enabled?: boolean;
@@ -208,7 +230,8 @@ interface ActionSheetButtonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
defaultFocus?: boolean;
@@ -227,7 +250,8 @@ interface ActionSheetButtonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
style?: DialogButtonStyle;
@@ -253,7 +277,8 @@ interface ActionSheetButtonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
value: string | Resource;
@@ -288,7 +313,8 @@ interface ActionSheetButtonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
action: VoidCallback;
}
@@ -300,7 +326,8 @@ interface ActionSheetButtonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface ActionSheetOffset {
/**
@@ -310,7 +337,8 @@ interface ActionSheetOffset {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
dx: number | string | Resource;
/**
@@ -320,7 +348,8 @@ interface ActionSheetOffset {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
dy: number | string | Resource;
}
@@ -369,7 +398,8 @@ declare type ImmersiveMode = import('../api/@ohos.promptAction').ImmersiveMode;
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface ActionSheetOptions
{
@@ -395,7 +425,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
title: string | Resource;
@@ -412,7 +443,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
subtitle?: ResourceStr;
@@ -438,7 +470,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
message: string | Resource;
@@ -473,7 +506,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
confirm?: ActionSheetButtonOptions;
@@ -508,7 +542,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
cancel?: VoidCallback;
@@ -534,7 +569,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
sheets: Array;
@@ -560,7 +596,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
autoCancel?: boolean;
@@ -586,7 +623,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
alignment?: DialogAlignment;
@@ -621,7 +659,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
offset?: ActionSheetOffset;
@@ -640,7 +679,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
maskRect?: Rectangle;
@@ -661,7 +701,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
showInSubWindow?: boolean;
@@ -680,7 +721,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
isModal?: boolean;
@@ -701,7 +743,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundColor?: ResourceColor;
@@ -722,7 +765,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundBlurStyle?: BlurStyle;
@@ -733,7 +777,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundBlurStyleOptions?: BackgroundBlurStyleOptions;
@@ -744,7 +789,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundEffect?: BackgroundEffectOptions;
@@ -755,7 +801,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWillDismiss?: Callback;
@@ -766,7 +813,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
transition?: TransitionEffect;
@@ -777,7 +825,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
cornerRadius?: Dimension | BorderRadiuses | LocalizedBorderRadiuses;
@@ -788,7 +837,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
width?: Dimension;
@@ -799,7 +849,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
height?: Dimension;
@@ -810,7 +861,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
borderWidth?: Dimension | EdgeWidths | LocalizedEdgeWidths;
@@ -821,7 +873,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
borderColor?: ResourceColor | EdgeColors | LocalizedEdgeColors;
@@ -832,7 +885,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
borderStyle?: BorderStyle | EdgeStyles;
@@ -843,7 +897,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
shadow?: ShadowOptions | ShadowStyle;
@@ -855,7 +910,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableHoverMode?: boolean;
@@ -867,7 +923,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
hoverModeArea?: HoverModeAreaType;
@@ -878,7 +935,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onDidAppear?: Callback;
@@ -889,7 +947,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onDidDisappear?: Callback;
@@ -900,7 +959,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWillAppear?: Callback;
@@ -911,7 +971,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWillDisappear?: Callback;
@@ -923,7 +984,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
levelMode?: LevelMode;
@@ -934,7 +996,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
levelUniqueId?: number;
@@ -946,7 +1009,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
immersiveMode?: ImmersiveMode;
@@ -958,7 +1022,8 @@ interface ActionSheetOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
levelOrder?: LevelOrder;
}
diff --git a/api/@internal/component/ets/alert_dialog.d.ts b/api/@internal/component/ets/alert_dialog.d.ts
index 313499a3e3c02d16e527db5466377665d732dcfa..047b8a9242a5ef7314c384e865cfde8378b3de90 100644
--- a/api/@internal/component/ets/alert_dialog.d.ts
+++ b/api/@internal/component/ets/alert_dialog.d.ts
@@ -18,6 +18,17 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import {
+ ResourceStr, ResourceColor, VoidCallback, Offset, Dimension, BorderRadiuses, LocalizedBorderRadiuses, EdgeWidths,
+ LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, EdgeStyles
+} from './units';
+import { WordBreak, DialogButtonStyle, BorderStyle } from './enums';
+import { Rectangle, BlurStyle, Callback, TransitionEffect, ShadowOptions, ShadowStyle, HoverModeAreaType, DismissReason,
+ BackgroundBlurStyleOptions, BackgroundEffectOptions } from './common';
+import { LevelOrder, ImmersiveMode, LevelMode } from '../../@ohos.promptAction';
+/*** endif */
+
/**
* The alignment of dialog,
*
@@ -40,7 +51,8 @@
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum DialogAlignment {
/**
@@ -62,7 +74,8 @@ declare enum DialogAlignment {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Top,
@@ -85,7 +98,8 @@ declare enum DialogAlignment {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Center,
@@ -108,7 +122,8 @@ declare enum DialogAlignment {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Bottom,
@@ -131,7 +146,8 @@ declare enum DialogAlignment {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Default,
@@ -154,7 +170,8 @@ declare enum DialogAlignment {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TopStart,
@@ -177,7 +194,8 @@ declare enum DialogAlignment {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TopEnd,
@@ -200,7 +218,8 @@ declare enum DialogAlignment {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CenterStart,
@@ -223,7 +242,8 @@ declare enum DialogAlignment {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CenterEnd,
@@ -246,7 +266,8 @@ declare enum DialogAlignment {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BottomStart,
@@ -269,7 +290,8 @@ declare enum DialogAlignment {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BottomEnd,
}
@@ -289,7 +311,8 @@ declare enum DialogAlignment {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
-* @since 11
+* @since arkts {'1.1':'11','1.2':'20'}
+* @arkts 1.1&1.2
*/
declare enum DialogButtonDirection {
/**
@@ -305,7 +328,8 @@ declare enum DialogButtonDirection {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
AUTO = 0,
@@ -322,7 +346,8 @@ declare enum DialogButtonDirection {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
HORIZONTAL = 1,
@@ -339,7 +364,8 @@ declare enum DialogButtonDirection {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
VERTICAL = 2,
}
@@ -351,7 +377,8 @@ declare enum DialogButtonDirection {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface AlertDialogButtonBaseOptions {
/**
@@ -371,7 +398,8 @@ declare interface AlertDialogButtonBaseOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enabled?: boolean;
@@ -392,7 +420,8 @@ declare interface AlertDialogButtonBaseOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
defaultFocus?: boolean;
@@ -413,7 +442,8 @@ declare interface AlertDialogButtonBaseOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
style?: DialogButtonStyle;
@@ -432,7 +462,8 @@ declare interface AlertDialogButtonBaseOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
value: ResourceStr;
@@ -451,7 +482,8 @@ declare interface AlertDialogButtonBaseOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fontColor?: ResourceColor;
@@ -470,7 +502,8 @@ declare interface AlertDialogButtonBaseOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundColor?: ResourceColor;
@@ -498,7 +531,8 @@ declare interface AlertDialogButtonBaseOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
action: VoidCallback;
}
@@ -530,7 +564,8 @@ declare interface AlertDialogButtonBaseOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface AlertDialogButtonOptions extends AlertDialogButtonBaseOptions {
/**
@@ -540,7 +575,8 @@ declare interface AlertDialogButtonOptions extends AlertDialogButtonBaseOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
primary?: boolean;
}
@@ -552,7 +588,8 @@ declare interface AlertDialogButtonOptions extends AlertDialogButtonBaseOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface TextStyle {
/**
@@ -562,7 +599,8 @@ declare interface TextStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
wordBreak?: WordBreak;
}
@@ -600,7 +638,8 @@ declare type LevelOrder = import('../api/@ohos.promptAction').LevelOrder;
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface AlertDialogParam {
/**
@@ -625,7 +664,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
title?: ResourceStr;
@@ -642,7 +682,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
subtitle?: ResourceStr;
@@ -668,7 +709,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
message: ResourceStr;
@@ -694,7 +736,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
autoCancel?: boolean;
@@ -729,7 +772,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
cancel?: VoidCallback;
@@ -755,7 +799,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
alignment?: DialogAlignment;
@@ -781,7 +826,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
offset?: Offset;
@@ -807,7 +853,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
gridCount?: number;
@@ -826,7 +873,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
maskRect?: Rectangle;
@@ -847,7 +895,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
showInSubWindow?: boolean;
@@ -866,7 +915,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
isModal?: boolean;
@@ -887,7 +937,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundColor?: ResourceColor;
@@ -908,7 +959,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundBlurStyle?: BlurStyle;
@@ -919,7 +971,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundBlurStyleOptions?: BackgroundBlurStyleOptions;
@@ -930,7 +983,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundEffect?: BackgroundEffectOptions;
@@ -941,7 +995,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWillDismiss?: Callback;
@@ -952,7 +1007,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
transition?: TransitionEffect;
@@ -963,7 +1019,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
cornerRadius?: Dimension | BorderRadiuses | LocalizedBorderRadiuses;
@@ -974,7 +1031,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
width?: Dimension;
@@ -985,7 +1043,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
height?: Dimension;
@@ -996,7 +1055,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
borderWidth?: Dimension | EdgeWidths | LocalizedEdgeWidths;
@@ -1007,7 +1067,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
borderColor?: ResourceColor | EdgeColors | LocalizedEdgeColors;
@@ -1018,7 +1079,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
borderStyle?: BorderStyle | EdgeStyles;
@@ -1029,7 +1091,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
shadow?: ShadowOptions | ShadowStyle;
@@ -1040,7 +1103,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
textStyle?: TextStyle;
@@ -1052,7 +1116,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableHoverMode?: boolean;
@@ -1064,7 +1129,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
hoverModeArea?: HoverModeAreaType;
@@ -1075,7 +1141,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onDidAppear?: Callback;
@@ -1086,7 +1153,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onDidDisappear?: Callback;
@@ -1097,7 +1165,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWillAppear?: Callback;
@@ -1108,7 +1177,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWillDisappear?: Callback;
@@ -1120,7 +1190,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
levelMode?: LevelMode;
@@ -1131,7 +1202,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
levelUniqueId?: number;
@@ -1143,7 +1215,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
immersiveMode?: ImmersiveMode;
@@ -1155,7 +1228,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
levelOrder?: LevelOrder;
}
@@ -1185,7 +1259,8 @@ declare interface AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface AlertDialogParamWithConfirm extends AlertDialogParam {
/**
@@ -1219,7 +1294,8 @@ declare interface AlertDialogParamWithConfirm extends AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
confirm?: AlertDialogButtonBaseOptions;
}
@@ -1231,7 +1307,8 @@ declare interface AlertDialogParamWithConfirm extends AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface DismissDialogAction {
/**
@@ -1241,7 +1318,8 @@ declare interface DismissDialogAction {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
dismiss: Callback;
@@ -1252,7 +1330,8 @@ declare interface DismissDialogAction {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
reason: DismissReason;
}
@@ -1282,7 +1361,8 @@ declare interface DismissDialogAction {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface AlertDialogParamWithButtons extends AlertDialogParam {
/**
@@ -1316,7 +1396,8 @@ declare interface AlertDialogParamWithButtons extends AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
primaryButton: AlertDialogButtonBaseOptions;
@@ -1351,7 +1432,8 @@ declare interface AlertDialogParamWithButtons extends AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
secondaryButton: AlertDialogButtonBaseOptions;
}
@@ -1373,7 +1455,8 @@ declare interface AlertDialogParamWithButtons extends AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface AlertDialogParamWithOptions extends AlertDialogParam {
/**
@@ -1389,7 +1472,8 @@ declare interface AlertDialogParamWithOptions extends AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
buttons: Array;
@@ -1408,7 +1492,8 @@ declare interface AlertDialogParamWithOptions extends AlertDialogParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
buttonDirection?: DialogButtonDirection;
}
diff --git a/api/@internal/component/ets/alphabet_indexer.d.ts b/api/@internal/component/ets/alphabet_indexer.d.ts
index 46a27282cbdcd4c7c115ce73dd1ee562bc781ea4..c8003ca0f0be75d294e08c124364542d15b80cf6 100644
--- a/api/@internal/component/ets/alphabet_indexer.d.ts
+++ b/api/@internal/component/ets/alphabet_indexer.d.ts
@@ -18,6 +18,12 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { CommonMethod, BlurStyle } from './common'
+import { ResourceColor, Length, Position } from './units'
+import { Font } from './units'
+/*** endif */
+
/**
* indexer align property.
*
@@ -40,7 +46,8 @@
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum IndexerAlign {
/**
@@ -62,7 +69,8 @@ declare enum IndexerAlign {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Left,
@@ -85,7 +93,8 @@ declare enum IndexerAlign {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Right,
@@ -95,7 +104,8 @@ declare enum IndexerAlign {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
START,
@@ -105,7 +115,8 @@ declare enum IndexerAlign {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
END,
}
@@ -117,7 +128,8 @@ declare enum IndexerAlign {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface AlphabetIndexerOptions {
/**
@@ -142,7 +154,8 @@ interface AlphabetIndexerOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arrayValue: Array;
/**
@@ -167,7 +180,8 @@ interface AlphabetIndexerOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
selected: number;
}
@@ -194,7 +208,8 @@ interface AlphabetIndexerOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface AlphabetIndexerInterface {
/**
@@ -236,7 +251,8 @@ interface AlphabetIndexerInterface {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
(options: AlphabetIndexerOptions): AlphabetIndexerAttribute;
}
@@ -249,7 +265,8 @@ interface AlphabetIndexerInterface {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type OnAlphabetIndexerSelectCallback = (index: number) => void;
@@ -261,7 +278,8 @@ declare type OnAlphabetIndexerSelectCallback = (index: number) => void;
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type OnAlphabetIndexerPopupSelectCallback = (index: number) => void;
@@ -274,7 +292,8 @@ declare type OnAlphabetIndexerPopupSelectCallback = (index: number) => void;
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type OnAlphabetIndexerRequestPopupDataCallback = (index: number) => Array;
@@ -300,7 +319,8 @@ declare type OnAlphabetIndexerRequestPopupDataCallback = (index: number) => Arra
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class AlphabetIndexerAttribute extends CommonMethod {
/**
@@ -340,7 +360,8 @@ declare class AlphabetIndexerAttribute extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 7
+ * @since arkts {'1.1':'7','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class AnimatorAttribute extends CommonMethod {
/**
@@ -142,7 +156,8 @@ declare class AnimatorAttribute extends CommonMethod {
* @returns { AnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 7
+ * @since arkts {'1.1':'7','1.2':'20'}
+ * @arkts 1.1&1.2
*/
state(value: AnimationStatus): AnimatorAttribute;
@@ -153,7 +168,8 @@ declare class AnimatorAttribute extends CommonMethod {
* @returns { AnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 7
+ * @since arkts {'1.1':'7','1.2':'20'}
+ * @arkts 1.1&1.2
*/
duration(value: number): AnimatorAttribute;
@@ -164,7 +180,8 @@ declare class AnimatorAttribute extends CommonMethod {
* @returns { AnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 7
+ * @since arkts {'1.1':'7','1.2':'20'}
+ * @arkts 1.1&1.2
*/
curve(value: Curve): AnimatorAttribute;
@@ -175,7 +192,8 @@ declare class AnimatorAttribute extends CommonMethod {
* @returns { AnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 7
+ * @since arkts {'1.1':'7','1.2':'20'}
+ * @arkts 1.1&1.2
*/
delay(value: number): AnimatorAttribute;
@@ -186,7 +204,8 @@ declare class AnimatorAttribute extends CommonMethod {
* @returns { AnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 7
+ * @since arkts {'1.1':'7','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fillMode(value: FillMode): AnimatorAttribute;
@@ -197,7 +216,8 @@ declare class AnimatorAttribute extends CommonMethod {
* @returns { AnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 7
+ * @since arkts {'1.1':'7','1.2':'20'}
+ * @arkts 1.1&1.2
*/
iterations(value: number): AnimatorAttribute;
@@ -208,7 +228,8 @@ declare class AnimatorAttribute extends CommonMethod {
* @returns { AnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 7
+ * @since arkts {'1.1':'7','1.2':'20'}
+ * @arkts 1.1&1.2
*/
playMode(value: PlayMode): AnimatorAttribute;
@@ -219,7 +240,8 @@ declare class AnimatorAttribute extends CommonMethod {
* @returns { AnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 7
+ * @since arkts {'1.1':'7','1.2':'20'}
+ * @arkts 1.1&1.2
*/
motion(value: SpringMotion | FrictionMotion | ScrollMotion): AnimatorAttribute;
@@ -230,7 +252,8 @@ declare class AnimatorAttribute extends CommonMethod {
* @returns { AnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 7
+ * @since arkts {'1.1':'7','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onStart(event: () => void): AnimatorAttribute;
@@ -241,7 +264,8 @@ declare class AnimatorAttribute extends CommonMethod {
* @returns { AnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 7
+ * @since arkts {'1.1':'7','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onPause(event: () => void): AnimatorAttribute;
@@ -252,7 +276,8 @@ declare class AnimatorAttribute extends CommonMethod {
* @returns { AnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 7
+ * @since arkts {'1.1':'7','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onRepeat(event: () => void): AnimatorAttribute;
@@ -263,7 +288,8 @@ declare class AnimatorAttribute extends CommonMethod {
* @returns { AnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 7
+ * @since arkts {'1.1':'7','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onCancel(event: () => void): AnimatorAttribute;
@@ -274,7 +300,8 @@ declare class AnimatorAttribute extends CommonMethod {
* @returns { AnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 7
+ * @since arkts {'1.1':'7','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onFinish(event: () => void): AnimatorAttribute;
@@ -285,7 +312,8 @@ declare class AnimatorAttribute extends CommonMethod {
* @returns { AnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 7
+ * @since arkts {'1.1':'7','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onFrame(event: (value: number) => void): AnimatorAttribute;
}
diff --git a/api/@internal/component/ets/badge.d.ts b/api/@internal/component/ets/badge.d.ts
index 367a4b1082b7449bd68d838cc60d078c35f55616..86f5aedcca6fec0a9787868a42b63d46506f6b23 100644
--- a/api/@internal/component/ets/badge.d.ts
+++ b/api/@internal/component/ets/badge.d.ts
@@ -18,6 +18,12 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { ResourceColor, Length, Position, Resource, ResourceStr } from './units';
+import { FontWeight } from './enums';
+import { CommonMethod } from './common';
+/*** endif */
+
/**
* Defines the badge position property.
*
@@ -50,7 +56,8 @@
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum BadgePosition {
/**
@@ -81,7 +88,8 @@ declare enum BadgePosition {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
RightTop,
@@ -113,7 +121,8 @@ declare enum BadgePosition {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Right,
@@ -145,7 +154,8 @@ declare enum BadgePosition {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Left,
}
@@ -182,7 +192,8 @@ declare enum BadgePosition {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface BadgeStyle {
/**
@@ -217,7 +228,8 @@ declare interface BadgeStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
color?: ResourceColor;
@@ -255,7 +267,18 @@ declare interface BadgeStyle {
* @atomicservice
* @since 11
*/
- fontSize?: number | string;
+ /**
+ * Text size.
+ *
+ * @type { ?(number | ResourceStr) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.1&1.2
+ */
+ fontSize?: number | ResourceStr;
/**
* Size of a badge.
@@ -291,7 +314,18 @@ declare interface BadgeStyle {
* @atomicservice
* @since 11
*/
- badgeSize?: number | string;
+ /**
+ * Size of a badge.
+ *
+ * @type { ?(number | ResourceStr) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.1&1.2
+ */
+ badgeSize?: number | ResourceStr;
/**
* Color of the badge.
@@ -325,7 +359,8 @@ declare interface BadgeStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
badgeColor?: ResourceColor;
@@ -344,7 +379,8 @@ declare interface BadgeStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
borderColor?: ResourceColor;
@@ -363,7 +399,8 @@ declare interface BadgeStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
borderWidth?: Length;
@@ -384,7 +421,17 @@ declare interface BadgeStyle {
* @atomicservice
* @since 11
*/
- fontWeight?: number | FontWeight | string;
+ /**
+ * Define the font weight of the badge.
+ *
+ * @type { ?(number | FontWeight | ResourceStr) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.1&1.2
+ */
+ fontWeight?: number | FontWeight | ResourceStr;
}
/**
@@ -419,7 +466,8 @@ declare interface BadgeStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface BadgeParam {
/**
@@ -454,7 +502,8 @@ declare interface BadgeParam {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
position?: BadgePosition | Position;
@@ -490,7 +539,8 @@ declare interface BadgeParam {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
style: BadgeStyle;
}
@@ -531,7 +581,8 @@ declare interface BadgeParam {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface BadgeParamWithNumber extends BadgeParam {
/**
@@ -566,7 +617,8 @@ declare interface BadgeParamWithNumber extends BadgeParam {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
count: number;
@@ -602,7 +654,8 @@ declare interface BadgeParamWithNumber extends BadgeParam {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
maxCount?: number;
}
@@ -643,7 +696,8 @@ declare interface BadgeParamWithNumber extends BadgeParam {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface BadgeParamWithString extends BadgeParam {
/**
@@ -680,7 +734,18 @@ declare interface BadgeParamWithString extends BadgeParam {
* @atomicservice
* @since 11
*/
- value: string;
+ /**
+ * Text string of the prompt content.
+ *
+ * @type { ResourceStr }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.1&1.2
+ */
+ value: ResourceStr;
}
/**
@@ -715,7 +780,8 @@ declare interface BadgeParamWithString extends BadgeParam {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface BadgeInterface {
/**
@@ -766,7 +832,8 @@ interface BadgeInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
(value: BadgeParamWithNumber): BadgeAttribute;
@@ -818,7 +885,8 @@ interface BadgeInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
(value: BadgeParamWithString): BadgeAttribute;
}
@@ -855,9 +923,10 @@ interface BadgeInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
-declare class BadgeAttribute extends CommonMethod {}
+declare class BadgeAttribute extends CommonMethod { }
/**
* Defines Badge Component.
@@ -922,3 +991,29 @@ declare const Badge: BadgeInterface;
* @since 11
*/
declare const BadgeInstance: BadgeAttribute;
+
+/**
+ * Define BadgeParamWithString's property 'value' type
+ *
+ * @typedef { string | Resource } BadgeParamWithStringType
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare type BadgeParamWithStringType = string | Resource;
+
+/**
+ * Define BadgeStyle's size-relative properties type
+ *
+ * @typedef { number | string | Resource } BadgeStyleSizeType
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare type BadgeStyleSizeType = number | string | Resource;
\ No newline at end of file
diff --git a/api/@internal/component/ets/blank.d.ts b/api/@internal/component/ets/blank.d.ts
index 9f7182728f048faa8ecb67c34736d72643d96ee6..80958fccc971168677c02058b968d180706aaa06 100644
--- a/api/@internal/component/ets/blank.d.ts
+++ b/api/@internal/component/ets/blank.d.ts
@@ -18,6 +18,11 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { CommonMethod } from './common';
+import { ResourceColor } from './units';
+/*** endif */
+
/**
* Create Blank.
*
@@ -50,7 +55,8 @@
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface BlankInterface {
/**
@@ -89,7 +95,8 @@ interface BlankInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
(min?: number | string): BlankAttribute;
}
@@ -126,7 +133,8 @@ interface BlankInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class BlankAttribute extends CommonMethod {
/**
@@ -165,7 +173,8 @@ declare class BlankAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
color(value: ResourceColor): BlankAttribute;
}
diff --git a/api/@internal/component/ets/button.d.ts b/api/@internal/component/ets/button.d.ts
index 31894becbee97034c3ebae2ea3eb69aff129920a..0521566975c78e498e23b7822f45931b30495332 100644
--- a/api/@internal/component/ets/button.d.ts
+++ b/api/@internal/component/ets/button.d.ts
@@ -18,6 +18,13 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { Resource } from '../../global/resource';
+import { ResourceStr, ResourceColor, Length, Font } from './units';
+import { TextOverflow, FontWeight, FontStyle, TextHeightAdaptivePolicy } from './enums';
+import { CommonConfiguration, CommonMethod, ContentModifier } from './common';
+/*** endif */
+
/**
* Provides a button component.
*
@@ -50,7 +57,8 @@
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum ButtonType {
/**
@@ -81,7 +89,8 @@ declare enum ButtonType {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Capsule,
@@ -113,7 +122,8 @@ declare enum ButtonType {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Circle,
@@ -145,7 +155,8 @@ declare enum ButtonType {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Normal,
@@ -156,7 +167,8 @@ declare enum ButtonType {
* @crossplatform
* @form
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ROUNDED_RECTANGLE = 3,
}
@@ -178,7 +190,8 @@ declare enum ButtonType {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum ButtonStyleMode {
/**
@@ -196,7 +209,8 @@ declare enum ButtonStyleMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
NORMAL = 0,
@@ -215,7 +229,8 @@ declare enum ButtonStyleMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
EMPHASIZED = 1,
@@ -234,7 +249,8 @@ declare enum ButtonStyleMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TEXTUAL = 2,
}
@@ -247,7 +263,8 @@ declare enum ButtonStyleMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum ButtonRole {
/**
@@ -257,7 +274,8 @@ declare enum ButtonRole {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
NORMAL = 0,
@@ -268,7 +286,8 @@ declare enum ButtonRole {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ERROR = 1,
}
@@ -282,7 +301,8 @@ declare enum ButtonRole {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type ButtonTriggerClickCallback = (xPos: number, yPos: number) => void;
@@ -294,7 +314,8 @@ declare type ButtonTriggerClickCallback = (xPos: number, yPos: number) => void;
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ButtonConfiguration extends CommonConfiguration {
@@ -305,7 +326,8 @@ declare interface ButtonConfiguration extends CommonConfiguration {
/**
@@ -918,7 +1040,8 @@ declare class ButtonAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
type(value: ButtonType): ButtonAttribute;
@@ -958,7 +1081,8 @@ declare class ButtonAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
stateEffect(value: boolean): ButtonAttribute;
@@ -981,7 +1105,8 @@ declare class ButtonAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
buttonStyle(value: ButtonStyleMode): ButtonAttribute;
@@ -1004,7 +1129,8 @@ declare class ButtonAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
controlSize(value: ControlSize): ButtonAttribute;
@@ -1017,7 +1143,8 @@ declare class ButtonAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
role(value: ButtonRole): ButtonAttribute;
@@ -1057,7 +1184,8 @@ declare class ButtonAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fontColor(value: ResourceColor): ButtonAttribute;
@@ -1097,7 +1225,8 @@ declare class ButtonAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fontSize(value: Length): ButtonAttribute;
@@ -1137,7 +1266,8 @@ declare class ButtonAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fontWeight(value: number | FontWeight | string): ButtonAttribute;
@@ -1177,7 +1307,8 @@ declare class ButtonAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fontStyle(value: FontStyle): ButtonAttribute;
@@ -1217,7 +1348,8 @@ declare class ButtonAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fontFamily(value: string | Resource): ButtonAttribute;
@@ -1229,7 +1361,8 @@ declare class ButtonAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
contentModifier(modifier: ContentModifier): ButtonAttribute;
@@ -1254,6 +1387,19 @@ declare class ButtonAttribute extends CommonMethod {
*/
labelStyle(value: LabelStyle): ButtonAttribute;
+ /**
+ * Set button label style.
+ *
+ * @param { ButtonLabelStyle } value - The label style configuration on button.
+ * @returns { ButtonAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ labelStyle(value: ButtonLabelStyle): ButtonAttribute;
+
/**
* Sets the minimum zoom-out ratio of the button text.
*
@@ -1261,7 +1407,8 @@ declare class ButtonAttribute extends CommonMethod {
* @returns { ButtonAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
minFontScale(scale: number | Resource): ButtonAttribute;
@@ -1272,7 +1419,8 @@ declare class ButtonAttribute extends CommonMethod {
* @returns { ButtonAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
maxFontScale(scale: number | Resource): ButtonAttribute;
}
diff --git a/api/@internal/component/ets/calendar.d.ts b/api/@internal/component/ets/calendar.d.ts
index ecac65717c5fb55fb559f20f98b5ff8e78ce7ef9..90c32e3def4147ffe69efca6bf740d770e8d4fc9 100644
--- a/api/@internal/component/ets/calendar.d.ts
+++ b/api/@internal/component/ets/calendar.d.ts
@@ -18,6 +18,11 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { ResourceColor } from './units'
+import { Axis } from './enums'
+/*** endif */
+
/**
* Provides a monthly view component to display information such as date, shift break, and schedule.
*
@@ -33,7 +38,8 @@
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface CalendarDay {
/**
@@ -53,7 +59,8 @@ interface CalendarDay {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
index: number;
@@ -74,7 +81,8 @@ interface CalendarDay {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
lunarMonth: string;
@@ -93,7 +101,8 @@ interface CalendarDay {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
lunarDay: string;
@@ -112,7 +121,8 @@ interface CalendarDay {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
dayMark: string;
@@ -131,7 +141,8 @@ interface CalendarDay {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
dayMarkValue: string;
@@ -150,7 +161,8 @@ interface CalendarDay {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
year: number;
@@ -169,7 +181,8 @@ interface CalendarDay {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
month: number;
@@ -188,7 +201,8 @@ interface CalendarDay {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
day: number;
@@ -207,7 +221,8 @@ interface CalendarDay {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
isFirstOfLunar: boolean;
@@ -228,7 +243,8 @@ interface CalendarDay {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
hasSchedule: boolean;
@@ -247,7 +263,8 @@ interface CalendarDay {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
markLunarDay: boolean;
}
@@ -267,7 +284,8 @@ interface CalendarDay {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface MonthData {
/**
@@ -285,7 +303,8 @@ interface MonthData {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
year: number;
@@ -304,7 +323,8 @@ interface MonthData {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
month: number;
@@ -323,7 +343,8 @@ interface MonthData {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
data: CalendarDay[];
}
@@ -343,7 +364,8 @@ interface MonthData {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface CurrentDayStyle {
/**
@@ -361,7 +383,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
dayColor?: ResourceColor;
@@ -380,7 +403,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
lunarColor?: ResourceColor;
@@ -399,7 +423,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
markLunarColor?: ResourceColor;
@@ -418,7 +443,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
dayFontSize?: number;
@@ -437,7 +463,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
lunarDayFontSize?: number;
@@ -456,7 +483,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
dayHeight?: number;
@@ -475,7 +503,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
dayWidth?: number;
@@ -494,7 +523,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
gregorianCalendarHeight?: number;
@@ -513,7 +543,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
dayYAxisOffset?: number;
@@ -532,7 +563,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
lunarDayYAxisOffset?: number;
@@ -551,7 +583,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
underscoreXAxisOffset?: number;
@@ -570,7 +603,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
underscoreYAxisOffset?: number;
@@ -589,7 +623,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
scheduleMarkerXAxisOffset?: number;
@@ -608,7 +643,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
scheduleMarkerYAxisOffset?: number;
@@ -627,7 +663,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
colSpace?: number;
@@ -646,7 +683,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
dailyFiveRowSpace?: number;
@@ -665,7 +703,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
dailySixRowSpace?: number;
@@ -684,7 +723,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
lunarHeight?: number;
@@ -703,7 +743,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
underscoreWidth?: number;
@@ -722,7 +763,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
underscoreLength?: number;
@@ -741,7 +783,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
scheduleMarkerRadius?: number;
@@ -760,7 +803,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
boundaryRowOffset?: number;
@@ -779,7 +823,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
boundaryColOffset?: number;
}
@@ -799,7 +844,8 @@ interface CurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface NonCurrentDayStyle {
/**
@@ -817,7 +863,8 @@ interface NonCurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
nonCurrentMonthDayColor?: ResourceColor;
@@ -836,7 +883,8 @@ interface NonCurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
nonCurrentMonthLunarColor?: ResourceColor;
@@ -855,7 +903,8 @@ interface NonCurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
nonCurrentMonthWorkDayMarkColor?: ResourceColor;
@@ -874,7 +923,8 @@ interface NonCurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
nonCurrentMonthOffDayMarkColor?: ResourceColor;
}
@@ -894,7 +944,8 @@ interface NonCurrentDayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface TodayStyle {
/**
@@ -912,7 +963,8 @@ interface TodayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
focusedDayColor?: ResourceColor;
@@ -931,7 +983,8 @@ interface TodayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
focusedLunarColor?: ResourceColor;
@@ -950,7 +1003,8 @@ interface TodayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
focusedAreaBackgroundColor?: ResourceColor;
@@ -969,7 +1023,8 @@ interface TodayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
focusedAreaRadius?: number;
}
@@ -989,7 +1044,8 @@ interface TodayStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface WeekStyle {
/**
@@ -1007,7 +1063,8 @@ interface WeekStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
weekColor?: ResourceColor;
@@ -1026,7 +1083,8 @@ interface WeekStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
weekendDayColor?: ResourceColor;
@@ -1045,7 +1103,8 @@ interface WeekStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
weekendLunarColor?: ResourceColor;
@@ -1064,7 +1123,8 @@ interface WeekStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
weekFontSize?: number;
@@ -1083,7 +1143,8 @@ interface WeekStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
weekHeight?: number;
@@ -1102,7 +1163,8 @@ interface WeekStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
weekWidth?: number;
@@ -1121,7 +1183,8 @@ interface WeekStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
weekAndDayRowSpace?: number;
}
@@ -1141,7 +1204,8 @@ interface WeekStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface WorkStateStyle {
/**
@@ -1159,7 +1223,8 @@ interface WorkStateStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
workDayMarkColor?: ResourceColor;
@@ -1178,7 +1243,8 @@ interface WorkStateStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
offDayMarkColor?: ResourceColor;
@@ -1197,7 +1263,8 @@ interface WorkStateStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
workDayMarkSize?: number;
@@ -1216,7 +1283,8 @@ interface WorkStateStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
offDayMarkSize?: number;
@@ -1235,7 +1303,8 @@ interface WorkStateStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
workStateWidth?: number;
@@ -1254,7 +1323,8 @@ interface WorkStateStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
workStateHorizontalMovingDistance?: number;
@@ -1273,7 +1343,8 @@ interface WorkStateStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
workStateVerticalMovingDistance?: number;
}
@@ -1293,7 +1364,8 @@ interface WorkStateStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface CalendarSelectedDate {
/**
@@ -1311,7 +1383,8 @@ declare interface CalendarSelectedDate {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
year: number;
@@ -1330,7 +1403,8 @@ declare interface CalendarSelectedDate {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
month: number;
@@ -1349,7 +1423,8 @@ declare interface CalendarSelectedDate {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
day: number;
}
@@ -1369,7 +1444,8 @@ declare interface CalendarSelectedDate {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface CalendarRequestedData {
/**
@@ -1387,7 +1463,8 @@ declare interface CalendarRequestedData {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
year: number;
@@ -1406,7 +1483,8 @@ declare interface CalendarRequestedData {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
month: number;
@@ -1425,7 +1503,8 @@ declare interface CalendarRequestedData {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
currentYear: number;
@@ -1444,7 +1523,8 @@ declare interface CalendarRequestedData {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
currentMonth: number;
@@ -1463,11 +1543,59 @@ declare interface CalendarRequestedData {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
monthState: number;
}
+/**
+ * Defines the struct of DateOptions.
+ *
+ * @interface DateOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @systemapi
+ * @form
+ * @since 20
+ * @arkts 1.2
+ */
+interface DateOptions {
+ /**
+ * Gregorian calendar year.
+ *
+ * @type { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @systemapi
+ * @form
+ * @since 20
+ * @arkts 1.2
+ */
+ year: number;
+
+ /**
+ * Gregorian calendar month.
+ *
+ * @type { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @systemapi
+ * @form
+ * @since 20
+ * @arkts 1.2
+ */
+ month: number;
+
+ /**
+ * Gregorian calendar day.
+ *
+ * @type { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @systemapi
+ * @form
+ * @since 20
+ * @arkts 1.2
+ */
+ day: number
+}
/**
* Calendar controller.
*
@@ -1481,7 +1609,8 @@ declare interface CalendarRequestedData {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class CalendarController {
/**
@@ -1497,7 +1626,8 @@ declare class CalendarController {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor();
@@ -1518,6 +1648,17 @@ declare class CalendarController {
*/
backToToday();
+ /**
+ * Back to day.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @systemapi
+ * @form
+ * @since 20
+ * @arkts 1.2
+ */
+ backToToday():void;
+
/**
* To the specified element.
*
@@ -1536,6 +1677,88 @@ declare class CalendarController {
* @since 10
*/
goTo(value: { year: number; month: number; day: number });
+ /**
+ * To the specified element.
+ *
+ * @param { CalendarSelectedDate } date
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @systemapi
+ * @form
+ * @since 20
+ * @arkts 1.2
+ */
+ goTo(date: CalendarSelectedDate): void;
+}
+
+/**
+ * Defines the struct of CalendarRequestedMonths.
+ *
+ * @interface CalendarRequestedMonths
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @systemapi
+ * @form
+ * @since 20
+ * @arkts 1.2
+ */
+declare interface CalendarRequestedMonths {
+ /**
+ * Default selected year/month/day.
+ * @type { CalendarSelectedDate } date
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @systemapi
+ * @form
+ * @since 20
+ * @arkts 1.2
+ */
+ date: CalendarSelectedDate;
+
+ /**
+ * Dates contained in the current month.
+ *
+ * @type { MonthData } currentData
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @systemapi
+ * @form
+ * @since 20
+ * @arkts 1.2
+ */
+ currentData: MonthData;
+
+ /**
+ * Dates contained in the previous month.
+ *
+ * @type { MonthData } preData
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @systemapi
+ * @form
+ * @since 20
+ * @arkts 1.2
+ */
+ preData: MonthData;
+
+ /**
+ * Dates contained in the next month.
+ *
+ * @type { MonthData } nextData
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @systemapi
+ * @form
+ * @since 20
+ * @arkts 1.2
+ */
+ nextData: MonthData;
+
+ /**
+ * Calendar controller.
+ *
+ * @type { ?CalendarController } controller
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @systemapi
+ * @form
+ * @since 20
+ * @arkts 1.2
+ */
+ controller?: CalendarController;
}
/**
@@ -1553,7 +1776,8 @@ declare class CalendarController {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface CalendarInterface {
/**
@@ -1582,6 +1806,19 @@ interface CalendarInterface {
nextData: MonthData;
controller?: CalendarController;
}): CalendarAttribute;
+
+ /**
+ * Set value.
+ *
+ * @param { CalendarRequestedMonths } value
+ * @returns { CalendarAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @systemapi
+ * @form
+ * @since 20
+ * @arkts 1.2
+ */
+ (value: CalendarRequestedMonths): CalendarAttribute;
}
/**
@@ -1593,7 +1830,8 @@ interface CalendarInterface {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class CalendarAttribute {
/**
@@ -1613,7 +1851,8 @@ declare class CalendarAttribute {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
showLunar(value: boolean): CalendarAttribute;
@@ -1634,7 +1873,8 @@ declare class CalendarAttribute {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
showHoliday(value: boolean): CalendarAttribute;
@@ -1655,7 +1895,8 @@ declare class CalendarAttribute {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
needSlide(value: boolean): CalendarAttribute;
@@ -1676,7 +1917,8 @@ declare class CalendarAttribute {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
startOfWeek(value: number): CalendarAttribute;
@@ -1697,7 +1939,8 @@ declare class CalendarAttribute {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
offDays(value: number): CalendarAttribute;
@@ -1718,7 +1961,8 @@ declare class CalendarAttribute {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
direction(value: Axis): CalendarAttribute;
@@ -1739,7 +1983,8 @@ declare class CalendarAttribute {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
currentDayStyle(value: CurrentDayStyle): CalendarAttribute;
@@ -1760,7 +2005,8 @@ declare class CalendarAttribute {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
nonCurrentDayStyle(value: NonCurrentDayStyle): CalendarAttribute;
@@ -1781,7 +2027,8 @@ declare class CalendarAttribute {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
todayStyle(value: TodayStyle): CalendarAttribute;
@@ -1802,7 +2049,8 @@ declare class CalendarAttribute {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
weekStyle(value: WeekStyle): CalendarAttribute;
@@ -1823,7 +2071,8 @@ declare class CalendarAttribute {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
workStateStyle(value: WorkStateStyle): CalendarAttribute;
@@ -1844,7 +2093,8 @@ declare class CalendarAttribute {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onSelectChange(event: (event: CalendarSelectedDate) => void): CalendarAttribute;
@@ -1865,7 +2115,8 @@ declare class CalendarAttribute {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 10
+ * @since arkts {'1.1':'10','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onRequestData(
event: (event: CalendarRequestedData) => void,
diff --git a/api/@internal/component/ets/calendar_picker.d.ts b/api/@internal/component/ets/calendar_picker.d.ts
index fce47754f636ae7d8814abd7fa5a8b3a16423c20..64f5844db6d5be69fe59a28a94c8c6580df0cf6e 100644
--- a/api/@internal/component/ets/calendar_picker.d.ts
+++ b/api/@internal/component/ets/calendar_picker.d.ts
@@ -18,6 +18,13 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { Resource } from '../../global/resource'
+import { CommonMethod, PickerTextStyle, Callback, BlurStyle, PickerDialogButtonStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, DateRange,
+ BackgroundBlurStyleOptions, BackgroundEffectOptions, Optional } from './common'
+import { Offset, VoidCallback, ResourceColor } from './units'
+/*** endif */
+
/**
* The type of alignment between entry and calendar.
* @enum {number}
@@ -31,7 +38,8 @@
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum CalendarAlign {
/**
@@ -45,7 +53,8 @@ declare enum CalendarAlign {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
START = 0,
/**
@@ -59,7 +68,8 @@ declare enum CalendarAlign {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CENTER = 1,
/**
@@ -73,7 +83,8 @@ declare enum CalendarAlign {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
END = 2
}
@@ -91,7 +102,8 @@ declare enum CalendarAlign {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface CalendarOptions {
/**
@@ -107,7 +119,8 @@ declare interface CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
hintRadius?: number | Resource;
@@ -124,7 +137,8 @@ declare interface CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
selected?: Date;
@@ -135,7 +149,8 @@ declare interface CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
start?: Date;
@@ -146,7 +161,8 @@ declare interface CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
end?: Date;
@@ -157,7 +173,8 @@ declare interface CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'19','1.2':'20'}
+ * @arkts 1.1&1.2
*/
disabledDateRange?: DateRange[];
}
@@ -175,7 +192,8 @@ declare interface CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface CalendarPickerInterface {
/**
@@ -193,7 +211,8 @@ interface CalendarPickerInterface {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
(options?: CalendarOptions): CalendarPickerAttribute;
}
@@ -211,7 +230,8 @@ interface CalendarPickerInterface {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class CalendarPickerAttribute extends CommonMethod {
/**
@@ -231,10 +251,11 @@ declare class CalendarPickerAttribute extends CommonMethod } alignType - The type of alignment between entry and calendar dialog.
@@ -243,7 +264,8 @@ declare class CalendarPickerAttribute extends CommonMethod, offset?: Offset): CalendarPickerAttribute;
@@ -262,7 +284,8 @@ declare class CalendarPickerAttribute extends CommonMethod): CalendarPickerAttribute;
@@ -296,23 +320,26 @@ declare class CalendarPickerAttribute extends CommonMethod } callback - callback for selected date changed.
* @returns { CalendarPickerAttribute } the attribute of the CalendarPicker.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onChange(callback: Callback): CalendarPickerAttribute;
- /**
+ /**
* Callback for selected date changed.
* @param { Optional> } callback - callback for selected date changed.
* @returns { CalendarPickerAttribute } the attribute of the CalendarPicker.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onChange(callback: Optional>): CalendarPickerAttribute;
@@ -324,7 +351,8 @@ declare class CalendarPickerAttribute extends CommonMethod }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onAccept?: Callback;
@@ -389,11 +420,13 @@ declare interface CalendarDialogOptions extends CalendarOptions {
*/
/**
* Called when the Cancel button in the dialog is clicked.
+ * Anonymous Object Rectification.
* @type { ?VoidCallback }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onCancel?: VoidCallback;
@@ -414,11 +447,13 @@ declare interface CalendarDialogOptions extends CalendarOptions {
*/
/**
* This event is triggered when a date is selected in dialog.
+ * Anonymous Object Rectification.
* @type { ?Callback }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onChange?: Callback;
@@ -439,7 +474,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundColor?: ResourceColor;
@@ -460,7 +496,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundBlurStyle?: BlurStyle;
@@ -471,7 +508,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'19','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundBlurStyleOptions?: BackgroundBlurStyleOptions;
@@ -482,7 +520,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'19','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundEffect?: BackgroundEffectOptions;
@@ -493,7 +532,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
acceptButtonStyle?: PickerDialogButtonStyle;
@@ -504,7 +544,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
cancelButtonStyle?: PickerDialogButtonStyle;
@@ -519,12 +560,14 @@ declare interface CalendarDialogOptions extends CalendarOptions {
*/
/**
* Callback function when the dialog appears.
+ * Anonymous Object Rectification.
*
* @type { ?VoidCallback }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onDidAppear?: VoidCallback;
@@ -539,12 +582,14 @@ declare interface CalendarDialogOptions extends CalendarOptions {
*/
/**
* Callback function when the dialog disappears.
+ * Anonymous Object Rectification.
*
* @type { ?VoidCallback }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onDidDisappear?: VoidCallback;
@@ -559,12 +604,14 @@ declare interface CalendarDialogOptions extends CalendarOptions {
*/
/**
* Callback function before the dialog openAnimation starts.
+ * Anonymous Object Rectification.
*
* @type { ?VoidCallback }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWillAppear?: VoidCallback;
@@ -579,12 +626,14 @@ declare interface CalendarDialogOptions extends CalendarOptions {
*/
/**
* Callback function before the dialog closeAnimation starts.
+ * Anonymous Object Rectification.
*
* @type { ?VoidCallback }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWillDisappear?: VoidCallback;
@@ -595,7 +644,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
shadow?: ShadowOptions | ShadowStyle;
@@ -607,7 +657,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableHoverMode?: boolean;
@@ -619,7 +670,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
hoverModeArea?: HoverModeAreaType;
@@ -631,7 +683,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'19','1.2':'20'}
+ * @arkts 1.1&1.2
*/
markToday?: boolean;
}
@@ -647,7 +700,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class CalendarPickerDialog {
/**
@@ -663,7 +717,8 @@ declare class CalendarPickerDialog {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
static show(options?: CalendarDialogOptions): void;
}
diff --git a/api/@internal/component/ets/canvas.d.ts b/api/@internal/component/ets/canvas.d.ts
index 65124aa016c37ca2bdc341176c610922b47f5d6f..053cbe26cfed33e35c4d896c9faffdbb80f0bf7f 100644
--- a/api/@internal/component/ets/canvas.d.ts
+++ b/api/@internal/component/ets/canvas.d.ts
@@ -18,6 +18,15 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { CommonMethod, Callback, PixelMap } from './common';
+import { FrameNode } from '../FrameNode';
+import { ImageAIOptions, ImageAnalyzerConfig } from './imageCommon';
+import { Matrix2D } from './matrix2d';
+import { VoidCallback, LengthMetricsUnit, LengthMetrics } from './units';
+import { Size } from '../Graphics'
+/*** endif */
+
/**
* Import the drawing canvas type object for Canvas.
*
@@ -73,7 +82,8 @@ declare type DrawingCanvas = import('../api/@ohos.graphics.drawing').default.Can
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type CanvasFillRule = "evenodd" | "nonzero";
@@ -125,7 +135,8 @@ declare type CanvasFillRule = "evenodd" | "nonzero";
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type CanvasLineCap = "butt" | "round" | "square";
@@ -189,7 +200,8 @@ declare type CanvasLineCap = "butt" | "round" | "square";
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type CanvasLineJoin = "bevel" | "miter" | "round";
@@ -237,7 +249,8 @@ declare type CanvasLineJoin = "bevel" | "miter" | "round";
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type CanvasDirection = "inherit" | "ltr" | "rtl";
@@ -301,7 +314,8 @@ declare type CanvasDirection = "inherit" | "ltr" | "rtl";
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
@@ -369,7 +383,8 @@ declare type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
@@ -417,7 +432,8 @@ declare type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideogra
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type ImageSmoothingQuality = "high" | "low" | "medium";
@@ -460,7 +476,8 @@ declare type FrameNode = import('../api/arkui/FrameNode').FrameNode;
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class CanvasGradient {
/**
@@ -503,7 +520,8 @@ declare class CanvasGradient {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
addColorStop(offset: number, color: string): void;
}
@@ -536,7 +554,8 @@ declare class CanvasGradient {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class CanvasPath {
/**
@@ -595,7 +614,8 @@ declare class CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
@@ -647,7 +667,8 @@ declare class CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
@@ -703,7 +724,8 @@ declare class CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
@@ -735,7 +757,8 @@ declare class CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
closePath(): void;
@@ -807,7 +830,8 @@ declare class CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ellipse(
x: number,
@@ -856,7 +880,8 @@ declare class CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
lineTo(x: number, y: number): void;
@@ -896,7 +921,8 @@ declare class CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
moveTo(x: number, y: number): void;
@@ -944,7 +970,8 @@ declare class CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
@@ -992,7 +1019,8 @@ declare class CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
rect(x: number, y: number, w: number, h: number): void;
}
@@ -1029,7 +1057,8 @@ declare class CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class Path2D extends CanvasPath {
/**
@@ -1068,7 +1097,8 @@ declare class Path2D extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
addPath(path: Path2D, transform?: Matrix2D): void;
@@ -1100,7 +1130,8 @@ declare class Path2D extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor();
@@ -1112,7 +1143,8 @@ declare class Path2D extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor(unit: LengthMetricsUnit);
@@ -1148,7 +1180,8 @@ declare class Path2D extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor(path: Path2D);
@@ -1161,7 +1194,8 @@ declare class Path2D extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor(path: Path2D, unit: LengthMetricsUnit);
@@ -1197,7 +1231,8 @@ declare class Path2D extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor(d: string);
@@ -1210,7 +1245,8 @@ declare class Path2D extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor(description: string, unit: LengthMetricsUnit);
}
@@ -1247,7 +1283,8 @@ declare class Path2D extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface CanvasPattern {
/**
@@ -1282,7 +1319,8 @@ declare interface CanvasPattern {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
setTransform(transform?: Matrix2D): void;
}
@@ -1319,7 +1357,8 @@ declare interface CanvasPattern {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface TextMetrics {
/**
@@ -1362,7 +1401,8 @@ declare interface TextMetrics {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
readonly actualBoundingBoxAscent: number;
@@ -1406,7 +1446,8 @@ declare interface TextMetrics {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
readonly actualBoundingBoxDescent: number;
@@ -1450,7 +1491,8 @@ declare interface TextMetrics {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
readonly actualBoundingBoxLeft: number;
@@ -1494,7 +1536,8 @@ declare interface TextMetrics {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
readonly actualBoundingBoxRight: number;
@@ -1538,7 +1581,8 @@ declare interface TextMetrics {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
readonly alphabeticBaseline: number;
@@ -1582,7 +1626,8 @@ declare interface TextMetrics {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
readonly emHeightAscent: number;
@@ -1626,7 +1671,8 @@ declare interface TextMetrics {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
readonly emHeightDescent: number;
@@ -1670,7 +1716,8 @@ declare interface TextMetrics {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
readonly fontBoundingBoxAscent: number;
@@ -1714,7 +1761,8 @@ declare interface TextMetrics {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
readonly fontBoundingBoxDescent: number;
@@ -1758,7 +1806,8 @@ declare interface TextMetrics {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
readonly hangingBaseline: number;
@@ -1802,7 +1851,8 @@ declare interface TextMetrics {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
readonly ideographicBaseline: number;
@@ -1842,7 +1892,8 @@ declare interface TextMetrics {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
readonly width: number;
@@ -1882,7 +1933,8 @@ declare interface TextMetrics {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
readonly height: number;
}
@@ -1915,7 +1967,8 @@ declare interface TextMetrics {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class ImageBitmap {
/**
@@ -1958,6 +2011,19 @@ declare class ImageBitmap {
*/
readonly height: number;
+ /**
+ * Indicates the height of the CSS pixel unit of ImageData.
+ *
+ * @return { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get height(): number;
+
/**
* Indicates the width of the CSS pixel unit of ImageData.
*
@@ -1998,6 +2064,19 @@ declare class ImageBitmap {
*/
readonly width: number;
+ /**
+ * Indicates the width of the CSS pixel unit of ImageData.
+ *
+ * @return { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get width(): number;
+
/**
* Releases all graphics resources associated with an ImageBitmap.
*
@@ -2026,7 +2105,8 @@ declare class ImageBitmap {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
close(): void;
@@ -2116,6 +2196,19 @@ declare class ImageBitmap {
* @since 12
*/
constructor(data: PixelMap, unit: LengthMetricsUnit);
+
+ /**
+ * Create an ImageBitmap object based on the transferred image path or PixelMap object.
+ *
+ * @param { PixelMap | string } src - image path or PixelMap object
+ * @param { LengthMetricsUnit } [unit] - the unit mode
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ constructor(src: PixelMap | string, unit?: LengthMetricsUnit);
}
/**
@@ -2146,7 +2239,8 @@ declare class ImageBitmap {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class ImageData {
/**
@@ -2189,6 +2283,19 @@ declare class ImageData {
*/
readonly data: Uint8ClampedArray;
+ /**
+ * Array containing image pixel data
+ *
+ * @return { Uint8ClampedArray }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get data(): Uint8ClampedArray;
+
/**
* Width of the image.
*
@@ -2229,6 +2336,19 @@ declare class ImageData {
*/
readonly height: number;
+ /**
+ * Height of the image.
+ *
+ * @return { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get height(): number;
+
/**
* Height of the image.
*
@@ -2269,6 +2389,19 @@ declare class ImageData {
*/
readonly width: number;
+ /**
+ * Width of the image.
+ *
+ * @return { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get width(): number;
+
/**
* Create an ImageData object based on the input parameters.
*
@@ -2324,7 +2457,8 @@ declare class ImageData {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor(width: number, height: number, data?: Uint8ClampedArray, unit?: LengthMetricsUnit);
}
@@ -2357,7 +2491,8 @@ declare class ImageData {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class RenderingContextSettings {
/**
@@ -2396,6 +2531,32 @@ declare class RenderingContextSettings {
*/
antialias?: boolean;
+ /**
+ * Get the status whether anti-aliasing is enabled for canvas. The default value is false.
+ *
+ * @return { boolean | undefined }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get antialias(): boolean | undefined;
+
+ /**
+ * Set the status whether anti-aliasing is enabled for canvas. The default value is false.
+ *
+ * @param { boolean | undefined }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set antialias(antialias: boolean | undefined);
+
/**
* Create an RenderingContextSettings object based on the antialias and alpha.
*
@@ -2428,7 +2589,8 @@ declare class RenderingContextSettings {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor(antialias?: boolean);
}
@@ -2465,7 +2627,8 @@ declare class RenderingContextSettings {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class CanvasRenderer extends CanvasPath {
/**
@@ -2480,6 +2643,30 @@ declare class CanvasRenderer extends CanvasPath {
*/
letterSpacing: LengthMetrics | string;
+ /**
+ * Get spacing for letter.
+ *
+ * @return { LengthMetrics | string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get letterSpacing(): LengthMetrics | string;
+
+ /**
+ * Set spacing for letter.
+ *
+ * @param { LengthMetrics | string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set letterSpacing(letterSpacing: LengthMetrics | string);
+
/**
* Transparency. The value ranges from 0.0 (completely transparent) to 1.0 (completely opaque).
* If the value is out of range, the assignment is invalid.
@@ -2524,6 +2711,34 @@ declare class CanvasRenderer extends CanvasPath {
*/
globalAlpha: number;
+ /**
+ * Get transparency. The value ranges from 0.0 (completely transparent) to 1.0 (completely opaque).
+ * If the value is out of range, the assignment is invalid.
+ *
+ * @return { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get globalAlpha(): number;
+
+ /**
+ * Set transparency. The value ranges from 0.0 (completely transparent) to 1.0 (completely opaque).
+ * If the value is out of range, the assignment is invalid.
+ *
+ * @param { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set globalAlpha(globalAlpha: number);
+
/**
* Type of composition operation applied when drawing a new shape. The following types are supported:
* source-over: (Default) Draws a new drawing on top of an existing canvas context.
@@ -2620,6 +2835,60 @@ declare class CanvasRenderer extends CanvasPath {
*/
globalCompositeOperation: string;
+ /**
+ * Get the type of composition operation applied when drawing a new shape. The following types are supported:
+ * source-over: (Default) Draws a new drawing on top of an existing canvas context.
+ * source-in: The new drawing is drawn only where the new drawing overlaps the target canvas.
+ * Everything else is transparent.
+ * source-out: Draws a new drawing where it does not overlap with the existing canvas content.
+ * source-atop: The new drawing is drawn only where it overlaps the content of the existing canvas.
+ * destination-over: Draws a new graphic behind the existing canvas content.
+ * destination-in: Existing canvas content remains where the new drawing overlaps the existing canvas content.
+ * Everything else is transparent.
+ * destination-out: Existing content remains where the new drawing does not overlap.
+ * destination-atop: The existing canvas retains only the part that overlaps with the new drawing,
+ * which is drawn behind the canvas content.
+ * lighter: The color of two overlapping shapes is determined by adding the color values.
+ * copy: Only new graphics are displayed.
+ * xor: In the image, those overlaps and other places outside of the normal drawing are transparent.
+ *
+ * @return { string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get globalCompositeOperation(): string;
+
+ /**
+ * Set the type of composition operation applied when drawing a new shape. The following types are supported:
+ * source-over: (Default) Draws a new drawing on top of an existing canvas context.
+ * source-in: The new drawing is drawn only where the new drawing overlaps the target canvas.
+ * Everything else is transparent.
+ * source-out: Draws a new drawing where it does not overlap with the existing canvas content.
+ * source-atop: The new drawing is drawn only where it overlaps the content of the existing canvas.
+ * destination-over: Draws a new graphic behind the existing canvas content.
+ * destination-in: Existing canvas content remains where the new drawing overlaps the existing canvas content.
+ * Everything else is transparent.
+ * destination-out: Existing content remains where the new drawing does not overlap.
+ * destination-atop: The existing canvas retains only the part that overlaps with the new drawing,
+ * which is drawn behind the canvas content.
+ * lighter: The color of two overlapping shapes is determined by adding the color values.
+ * copy: Only new graphics are displayed.
+ * xor: In the image, those overlaps and other places outside of the normal drawing are transparent.
+ *
+ * @param { string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set globalCompositeOperation(globalCompositeOperation: string);
+
/**
* Draw an image on a canvas
*
@@ -2660,7 +2929,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
drawImage(image: ImageBitmap | PixelMap, dx: number, dy: number): void;
@@ -2712,7 +2982,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
drawImage(image: ImageBitmap | PixelMap, dx: number, dy: number, dw: number, dh: number): void;
@@ -2780,7 +3051,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
drawImage(
image: ImageBitmap | PixelMap,
@@ -2822,7 +3094,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
beginPath(): void;
@@ -2858,7 +3131,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
clip(fillRule?: CanvasFillRule): void;
@@ -2898,7 +3172,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
clip(path: Path2D, fillRule?: CanvasFillRule): void;
@@ -2934,7 +3209,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fill(fillRule?: CanvasFillRule): void;
@@ -2974,7 +3250,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fill(path: Path2D, fillRule?: CanvasFillRule): void;
@@ -3046,6 +3323,19 @@ declare class CanvasRenderer extends CanvasPath {
*/
stroke(path: Path2D): void;
+ /**
+ * Draws the specified path according to the current stroke style
+ *
+ * @param { Path2D } [path] - Specified stroke path object
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ stroke(path?: Path2D): void;
+
/**
* Attributes that describe the fill color and style. The options are as follows:
* color: Color String
@@ -3100,6 +3390,40 @@ declare class CanvasRenderer extends CanvasPath {
*/
fillStyle: string | number | CanvasGradient | CanvasPattern;
+ /**
+ * Get the attributes specifie the color, gradient, or pattern to use inside shapes. The options are as follows:
+ *
+ * @return { string | number | CanvasGradient | CanvasPattern }
+ * string: Color String.
+ * number: Indicates the color with number.
+ * CanvasGradient: Color gradient object. For details, see {@link CanvasGradient}.
+ * CanvasPattern: Template object. For details, see {@link CanvasPattern}.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get fillStyle(): string | number | CanvasGradient | CanvasPattern;
+
+ /**
+ * Set the attributes specifie the color, gradient, or pattern to use inside shapes. The options are as follows:
+ *
+ * @param { string | number | CanvasGradient | CanvasPattern }
+ * string: Color String.
+ * number: Indicates the color with number.
+ * CanvasGradient: Color gradient object. For details, see {@link CanvasGradient}.
+ * CanvasPattern: Template object. For details, see {@link CanvasPattern}.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set fillStyle(fillStyle: string | number | CanvasGradient | CanvasPattern);
+
/**
* Attributes of the stroke color and style. The options are as follows:
* color: Color String
@@ -3155,22 +3479,58 @@ declare class CanvasRenderer extends CanvasPath {
strokeStyle: string | number | CanvasGradient | CanvasPattern;
/**
- * Creates a linear gradient object that is specified along the parameter coordinates
+ * Get the attributes specifie the color, gradient, or pattern to use for the strokes (outlines) around shapes.
+ * The options are as follows:
*
- * @param { number } x0 - The x-axis coordinate of the start point.
- * @param { number } y0 - The y-axis coordinate of the start point.
- * @param { number } x1 - x-axis coordinate of the end point.
- * @param { number } y1 - y-axis coordinate of the end point.
- * @returns { CanvasGradient }
+ * @return { string | number | CanvasGradient | CanvasPattern }
+ * string: Color String.
+ * number: Indicates the color with number.
+ * CanvasGradient: Color gradient object. For details, see {@link CanvasGradient}.
+ * CanvasPattern: Template object. For details, see {@link CanvasPattern}.
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
*/
+ get strokeStyle(): string | number | CanvasGradient | CanvasPattern;
+
/**
- * Creates a linear gradient object that is specified along the parameter coordinates
+ * Set the attributes specifie the color, gradient, or pattern to use for the strokes (outlines) around shapes.
+ * The options are as follows:
*
- * @param { number } x0 - The x-axis coordinate of the start point.
- * @param { number } y0 - The y-axis coordinate of the start point.
- * @param { number } x1 - x-axis coordinate of the end point.
+ * @param { string | number | CanvasGradient | CanvasPattern }
+ * string: Color String.
+ * number: Indicates the color with number.
+ * CanvasGradient: Color gradient object. For details, see {@link CanvasGradient}.
+ * CanvasPattern: Template object. For details, see {@link CanvasPattern}.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set strokeStyle(strokeStyle: string | number | CanvasGradient | CanvasPattern);
+
+ /**
+ * Creates a linear gradient object that is specified along the parameter coordinates
+ *
+ * @param { number } x0 - The x-axis coordinate of the start point.
+ * @param { number } y0 - The y-axis coordinate of the start point.
+ * @param { number } x1 - x-axis coordinate of the end point.
+ * @param { number } y1 - y-axis coordinate of the end point.
+ * @returns { CanvasGradient }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Creates a linear gradient object that is specified along the parameter coordinates
+ *
+ * @param { number } x0 - The x-axis coordinate of the start point.
+ * @param { number } y0 - The y-axis coordinate of the start point.
+ * @param { number } x1 - x-axis coordinate of the end point.
* @param { number } y1 - y-axis coordinate of the end point.
* @returns { CanvasGradient }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -3202,7 +3562,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
@@ -3266,7 +3627,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
createPattern(image: ImageBitmap, repetition: string | null): CanvasPattern | null;
@@ -3326,7 +3688,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
@@ -3353,7 +3716,8 @@ declare class CanvasRenderer extends CanvasPath {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
createConicGradient(
startAngle: number,
@@ -3465,6 +3829,64 @@ declare class CanvasRenderer extends CanvasPath {
*/
filter: string;
+ /**
+ * Provides filter effects such as blur and grayscale. You can get the following filter effects:
+ * blur(): Adds a Gaussian blur effect to the drawing
+ * brightness(): Provides a linear multiplication for the drawing and adjusts the brightness level.
+ * contrast(): Adjusts the contrast of the image. When the value is 0%, the image is completely black.
+ * When the value is 100%, there is no change in the image.
+ * grayscale(): Converts the image to a gray image. When the value is 100%, the image is completely gray.
+ * When the value is 0%, there is no change in the image.
+ * hue-rotate(): Perform color rotation on an image. When the value is 0 degrees, there is no change in the image.
+ * invert(): Inverted image (representing the effect of a photographic negative). When the value is 100%,
+ * the image is completely inverted. When the value is 0%, there is no change in the image.
+ * opacity(): Transparency of the image. At 0%, the image is completely transparent.
+ * When the value is 100%, there is no change in the image.
+ * saturate(): Perform saturation processing on the image. At 0%, the image is completely un-saturated.
+ * When the value is 100%, there is no change in the image.
+ * sepia(): The image is sepia (nostalgic style). At 100%, the image turns completely sepia.
+ * When the value is 0%, there is no change in the image.
+ * none: Turn off filter effects
+ *
+ * @return { string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get filter(): string;
+
+ /**
+ * Provides filter effects such as blur and grayscale. You can set the following filter effects:
+ * blur(): Adds a Gaussian blur effect to the drawing
+ * brightness(): Provides a linear multiplication for the drawing and adjusts the brightness level.
+ * contrast(): Adjusts the contrast of the image. When the value is 0%, the image is completely black.
+ * When the value is 100%, there is no change in the image.
+ * grayscale(): Converts the image to a gray image. When the value is 100%, the image is completely gray.
+ * When the value is 0%, there is no change in the image.
+ * hue-rotate(): Perform color rotation on an image. When the value is 0 degrees, there is no change in the image.
+ * invert(): Inverted image (representing the effect of a photographic negative). When the value is 100%,
+ * the image is completely inverted. When the value is 0%, there is no change in the image.
+ * opacity(): Transparency of the image. At 0%, the image is completely transparent.
+ * When the value is 100%, there is no change in the image.
+ * saturate(): Perform saturation processing on the image. At 0%, the image is completely un-saturated.
+ * When the value is 100%, there is no change in the image.
+ * sepia(): The image is sepia (nostalgic style). At 100%, the image turns completely sepia.
+ * When the value is 0%, there is no change in the image.
+ * none: Turn off filter effects
+ *
+ * @param { string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set filter(filter: string);
+
/**
* Creates a new, empty ImageData object of the specified size
*
@@ -3505,7 +3927,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
createImageData(sw: number, sh: number): ImageData;
@@ -3549,7 +3972,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
createImageData(imagedata: ImageData): ImageData;
@@ -3601,7 +4025,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
@@ -3639,7 +4064,8 @@ declare class CanvasRenderer extends CanvasPath {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getPixelMap(sx: number, sy: number, sw: number, sh: number): PixelMap;
@@ -3683,7 +4109,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
putImageData(imagedata: ImageData, dx: number | string, dy: number | string): void;
@@ -3759,7 +4186,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
putImageData(
imagedata: ImageData,
@@ -3815,6 +4243,34 @@ declare class CanvasRenderer extends CanvasPath {
*/
imageSmoothingEnabled: boolean;
+ /**
+ * Get the status whether to smooth the image. The value true indicates that the image is smooth.
+ * The value false indicates that the image is not smooth.
+ *
+ * @return { boolean }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get imageSmoothingEnabled(): boolean;
+
+ /**
+ * Set the status whether to smooth the image. The value true indicates that the image is smooth.
+ * The value false indicates that the image is not smooth.
+ *
+ * @param { boolean }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set imageSmoothingEnabled(imageSmoothingEnabled: boolean);
+
/**
* Smoothness level of the current image. For details, see {@link ImageSmoothingQuality}.
*
@@ -3855,6 +4311,32 @@ declare class CanvasRenderer extends CanvasPath {
*/
imageSmoothingQuality: ImageSmoothingQuality;
+ /**
+ * Get the smoothness level of the current image. For details, see {@link ImageSmoothingQuality}.
+ *
+ * @return { ImageSmoothingQuality }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get imageSmoothingQuality(): ImageSmoothingQuality;
+
+ /**
+ * Set the smoothness level of the current image. For details, see {@link ImageSmoothingQuality}.
+ *
+ * @param { ImageSmoothingQuality }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set imageSmoothingQuality(imageSmoothingQuality: ImageSmoothingQuality);
+
/**
* Line segment endpoint attribute. For details, see {@link CanvasLineCap}.
*
@@ -3894,6 +4376,32 @@ declare class CanvasRenderer extends CanvasPath {
* @since 11
*/
lineCap: CanvasLineCap;
+
+ /**
+ * Get the line segment endpoint attribute. For details, see {@link CanvasLineCap}.
+ *
+ * @return { CanvasLineCap }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get lineCap(): CanvasLineCap;
+
+ /**
+ * Set the line segment endpoint attribute. For details, see {@link CanvasLineCap}.
+ *
+ * @param { CanvasLineCap }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set lineCap(lineCap: CanvasLineCap);
/**
* Dotted line offset attribute.
@@ -3935,6 +4443,32 @@ declare class CanvasRenderer extends CanvasPath {
*/
lineDashOffset: number;
+ /**
+ * Get the dotted line offset attribute.
+ *
+ * @return { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get lineDashOffset(): number;
+
+ /**
+ * Set the dotted line offset attribute.
+ *
+ * @param { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set lineDashOffset(lineDashOffset: number);
+
/**
* Line segment connection point attribute. For details, see {@link CanvasLineJoin}.
*
@@ -3975,6 +4509,32 @@ declare class CanvasRenderer extends CanvasPath {
*/
lineJoin: CanvasLineJoin;
+ /**
+ * Get the line segment connection point attribute. For details, see {@link CanvasLineJoin}.
+ *
+ * @return { CanvasLineJoin }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get lineJoin(): CanvasLineJoin;
+
+ /**
+ * Set the line segment connection point attribute. For details, see {@link CanvasLineJoin}.
+ *
+ * @param { CanvasLineJoin }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set lineJoin(lineJoin: CanvasLineJoin);
+
/**
* Line thickness attribute. The value cannot be 0 or a negative number.
*
@@ -4015,6 +4575,32 @@ declare class CanvasRenderer extends CanvasPath {
*/
lineWidth: number;
+ /**
+ * Get the line thickness attribute. The value cannot be 0 or a negative number.
+ *
+ * @return { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get lineWidth(): number;
+
+ /**
+ * Set the line thickness attribute. The value cannot be 0 or a negative number.
+ *
+ * @param { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set lineWidth(lineWidth: number);
+
/**
* The value of this parameter cannot be 0 or a negative number.
*
@@ -4055,6 +4641,32 @@ declare class CanvasRenderer extends CanvasPath {
*/
miterLimit: number;
+ /**
+ * Get the value of this parameter cannot be 0 or a negative number.
+ *
+ * @return { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get miterLimit(): number;
+
+ /**
+ * Set the value of this parameter cannot be 0 or a negative number.
+ *
+ * @param { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set miterLimit(miterLimit: number);
+
/**
* Gets the current segment style.
*
@@ -4087,7 +4699,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getLineDash(): number[];
@@ -4127,7 +4740,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
setLineDash(segments: number[]): void;
@@ -4175,7 +4789,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
clearRect(x: number, y: number, w: number, h: number): void;
@@ -4223,7 +4838,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fillRect(x: number, y: number, w: number, h: number): void;
@@ -4271,7 +4887,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
strokeRect(x: number, y: number, w: number, h: number): void;
@@ -4315,6 +4932,32 @@ declare class CanvasRenderer extends CanvasPath {
*/
shadowBlur: number;
+ /**
+ * Get the shadow blur radius. The value cannot be a negative number.
+ *
+ * @return { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get shadowBlur(): number;
+
+ /**
+ * Set the shadow blur radius. The value cannot be a negative number.
+ *
+ * @param { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set shadowBlur(shadowBlur: number);
+
/**
* Shadow color.
*
@@ -4355,6 +4998,32 @@ declare class CanvasRenderer extends CanvasPath {
*/
shadowColor: string;
+ /**
+ * Get the shadow color.
+ *
+ * @return { string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get shadowColor(): string;
+
+ /**
+ * Set the shadow color.
+ *
+ * @param { string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set shadowColor(shadowColor: string);
+
/**
* Horizontal offset distance of the shadow.
*
@@ -4395,6 +5064,32 @@ declare class CanvasRenderer extends CanvasPath {
*/
shadowOffsetX: number;
+ /**
+ * Get the horizontal offset distance of the shadow.
+ *
+ * @return { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get shadowOffsetX(): number;
+
+ /**
+ * Set the horizontal offset distance of the shadow.
+ *
+ * @param { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set shadowOffsetX(shadowOffsetX: number);
+
/**
* Vertical offset distance of the shadow.
*
@@ -4435,6 +5130,32 @@ declare class CanvasRenderer extends CanvasPath {
*/
shadowOffsetY: number;
+ /**
+ * Get the vertical offset distance of the shadow.
+ *
+ * @return { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get shadowOffsetY(): number;
+
+ /**
+ * Set the vertical offset distance of the shadow.
+ *
+ * @param { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set shadowOffsetY(shadowOffsetY: number);
+
/**
* Top of the stack pop-up state in the drawing state stack
*
@@ -4463,7 +5184,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
restore(): void;
@@ -4495,7 +5217,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
save(): void;
@@ -4543,7 +5266,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fillText(text: string, x: number, y: number, maxWidth?: number): void;
@@ -4583,7 +5307,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
measureText(text: string): TextMetrics;
@@ -4631,7 +5356,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
@@ -4675,6 +5401,32 @@ declare class CanvasRenderer extends CanvasPath {
*/
direction: CanvasDirection;
+ /**
+ * Get the text drawing direction. For details, see {@link CanvasDirection}.
+ *
+ * @return { CanvasDirection }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get direction(): CanvasDirection;
+
+ /**
+ * Set the text drawing direction. For details, see {@link CanvasDirection}.
+ *
+ * @param { CanvasDirection }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set direction(direction: CanvasDirection);
+
/**
* Font style.
*
@@ -4715,6 +5467,32 @@ declare class CanvasRenderer extends CanvasPath {
*/
font: string;
+ /**
+ * Get the font style.
+ *
+ * @return { string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get font(): string;
+
+ /**
+ * Set the font style.
+ *
+ * @param { string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set font(font: string);
+
/**
* Text alignment mode. For details, see {@link CanvasTextAlign}.
*
@@ -4755,6 +5533,32 @@ declare class CanvasRenderer extends CanvasPath {
*/
textAlign: CanvasTextAlign;
+ /**
+ * Get the text alignment mode. For details, see {@link CanvasTextAlign}.
+ *
+ * @return { CanvasTextAlign }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get textAlign(): CanvasTextAlign;
+
+ /**
+ * Set the text alignment mode. For details, see {@link CanvasTextAlign}.
+ *
+ * @param { CanvasTextAlign }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set textAlign(textAlign: CanvasTextAlign);
+
/**
* Text baseline. For details, see {@link CanvasTextBaseline}.
*
@@ -4795,6 +5599,32 @@ declare class CanvasRenderer extends CanvasPath {
*/
textBaseline: CanvasTextBaseline;
+ /**
+ * Get the text baseline. For details, see {@link CanvasTextBaseline}.
+ *
+ * @return { CanvasTextBaseline }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get textBaseline(): CanvasTextBaseline;
+
+ /**
+ * Set the text baseline. For details, see {@link CanvasTextBaseline}.
+ *
+ * @param { CanvasTextBaseline }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set textBaseline(textBaseline: CanvasTextBaseline);
+
/**
* Obtains the currently applied transformation matrix.
*
@@ -4827,7 +5657,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getTransform(): Matrix2D;
@@ -4859,7 +5690,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
resetTransform(): void;
@@ -4899,7 +5731,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
rotate(angle: number): void;
@@ -4939,7 +5772,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
scale(x: number, y: number): void;
@@ -4999,7 +5833,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
@@ -5039,7 +5874,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
setTransform(transform?: Matrix2D): void;
@@ -5099,7 +5935,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
@@ -5139,7 +5976,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
translate(x: number, y: number): void;
@@ -5165,7 +6003,8 @@ declare class CanvasRenderer extends CanvasPath {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
setPixelMap(value?: PixelMap): void;
@@ -5201,7 +6040,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
transferFromImageBitmap(bitmap: ImageBitmap): void;
@@ -5211,7 +6051,8 @@ declare class CanvasRenderer extends CanvasPath {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
saveLayer(): void;
@@ -5221,18 +6062,20 @@ declare class CanvasRenderer extends CanvasPath {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
restoreLayer(): void;
/**
- * Clear the backing buffer, drawing state stack, any defined paths, and styles.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 12
- */
+ * Clear the backing buffer, drawing state stack, any defined paths, and styles.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
reset(): void;
}
@@ -5268,7 +6111,8 @@ declare class CanvasRenderer extends CanvasPath {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class CanvasRenderingContext2D extends CanvasRenderer {
/**
@@ -5311,6 +6155,20 @@ declare class CanvasRenderingContext2D extends CanvasRenderer {
*/
readonly height: number;
+ /**
+ * The default value is 0, which is bound to the height of the specified canvas. The value is read-only.
+ *
+ * @return { number }
+ * @readonly
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get height(): number;
+
/**
* The default value is 0, which is bound to the width of the specified canvas. The value is read-only.
*
@@ -5351,6 +6209,20 @@ declare class CanvasRenderingContext2D extends CanvasRenderer {
*/
readonly width: number;
+ /**
+ * The default value is 0, which is bound to the width of the specified canvas. The value is read-only.
+ *
+ * @return { number }
+ * @readonly
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get width(): number;
+
/**
* Frame node of the canvas. The default value is null.
*
@@ -5363,6 +6235,18 @@ declare class CanvasRenderingContext2D extends CanvasRenderer {
*/
readonly canvas: FrameNode;
+ /**
+ * Frame node of the canvas. The default value is null.
+ *
+ * @return { FrameNode }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get canvas(): FrameNode;
+
/**
* Generate a character string in the data url format.
*
@@ -5411,6 +6295,22 @@ declare class CanvasRenderingContext2D extends CanvasRenderer {
*/
toDataURL(type?: string, quality?: any): string;
+ /**
+ * Generate a character string in the data url format.
+ *
+ * @param { string } [type] - Image format. The default value is image/png.
+ * @param { number } [quality] - If the image format is image/jpeg or image/webp, you can select the image quality from 0 to 1.
+ * If the value is out of the range, the default value 0.92 is used.
+ * @returns { string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ toDataURL(type?: string, quality?: number): string;
+
/**
* Start image analyzer.
*
@@ -5420,7 +6320,8 @@ declare class CanvasRenderingContext2D extends CanvasRenderer {
* @throws { BusinessError } 110002 - Image analysis is currently being executed.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
startImageAnalyzer(config: ImageAnalyzerConfig): Promise;
@@ -5428,7 +6329,8 @@ declare class CanvasRenderingContext2D extends CanvasRenderer {
* Stop image analyzer.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
stopImageAnalyzer(): void;
@@ -5477,7 +6379,8 @@ declare class CanvasRenderingContext2D extends CanvasRenderer {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor(settings?: RenderingContextSettings, unit?: LengthMetricsUnit);
@@ -5493,7 +6396,8 @@ declare class CanvasRenderingContext2D extends CanvasRenderer {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
on(type: 'onAttach', callback: Callback): void;
@@ -5509,7 +6413,8 @@ declare class CanvasRenderingContext2D extends CanvasRenderer {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
off(type: 'onAttach', callback?: Callback): void;
@@ -5525,7 +6430,8 @@ declare class CanvasRenderingContext2D extends CanvasRenderer {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
on(type: 'onDetach', callback: Callback): void;
@@ -5541,7 +6447,8 @@ declare class CanvasRenderingContext2D extends CanvasRenderer {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
off(type: 'onDetach', callback?: Callback): void;
}
@@ -5578,7 +6485,8 @@ declare class CanvasRenderingContext2D extends CanvasRenderer {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class OffscreenCanvasRenderingContext2D extends CanvasRenderer {
/**
@@ -5629,6 +6537,22 @@ declare class OffscreenCanvasRenderingContext2D extends CanvasRenderer {
*/
toDataURL(type?: string, quality?: any): string;
+ /**
+ * Generate a character string in the data url format.
+ *
+ * @param { string } [type] - Image format. The default value is image/png.
+ * @param { number } [quality] - If the image format is image/jpeg or image/webp, you can select the image quality from 0 to 1.
+ * If the value is out of the range, the default value 0.92 is used.
+ * @returns { string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ toDataURL(type?: string, quality?: number): string;
+
/**
* transfer the content to ImageBitmap
*
@@ -5661,7 +6585,8 @@ declare class OffscreenCanvasRenderingContext2D extends CanvasRenderer {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
transferToImageBitmap(): ImageBitmap;
@@ -5720,7 +6645,8 @@ declare class OffscreenCanvasRenderingContext2D extends CanvasRenderer {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor(width: number, height: number, settings?: RenderingContextSettings, unit?: LengthMetricsUnit);
}
@@ -5756,7 +6682,8 @@ declare class OffscreenCanvasRenderingContext2D extends CanvasRenderer {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class OffscreenCanvas {
/**
@@ -5795,6 +6722,32 @@ declare class OffscreenCanvas {
*/
height: number;
+ /**
+ * Get the height of the off-screen canvas.
+ *
+ * @return { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get height(): number;
+
+ /**
+ * Set the height of the off-screen canvas.
+ *
+ * @param { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set height(height: number);
+
/**
* Width of the off-screen canvas.
*
@@ -5831,6 +6784,32 @@ declare class OffscreenCanvas {
*/
width: number;
+ /**
+ * Get the width of the off-screen canvas.
+ *
+ * @return { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ get width(): number;
+
+ /**
+ * Set the width of the off-screen canvas.
+ *
+ * @param { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ set width(width: number);
+
/**
* Exports rendered content as an ImageBitmap object
*
@@ -5863,7 +6842,8 @@ declare class OffscreenCanvas {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
transferToImageBitmap(): ImageBitmap;
@@ -5888,7 +6868,8 @@ declare class OffscreenCanvas {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getContext(contextType: "2d", options?: RenderingContextSettings): OffscreenCanvasRenderingContext2D;
@@ -5945,8 +6926,24 @@ declare class OffscreenCanvas {
* @since 12
*/
constructor(width: number, height: number, unit: LengthMetricsUnit);
+
+ /**
+ * Constructor of the off-screen canvas, which is used to create an off-screen canvas object.
+ *
+ * @param { number } width - Width of the off-screen canvas.
+ * @param { number } height - Height of the off-screen canvas.
+ * @param { LengthMetricsUnit } [unit] - the unit mode
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ constructor(width: number, height: number, unit?: LengthMetricsUnit);
}
+/*** if arkts 1.1 */
/**
* Size info.
*
@@ -5954,7 +6951,8 @@ declare class OffscreenCanvas {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface Size {
/**
@@ -5964,7 +6962,8 @@ declare interface Size {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
width: number;
@@ -5975,10 +6974,12 @@ declare interface Size {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
height: number;
}
+/*** endif */
/**
* Defines DrawingRenderingContext.
@@ -5986,7 +6987,8 @@ declare interface Size {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class DrawingRenderingContext {
@@ -5997,7 +6999,8 @@ declare class DrawingRenderingContext {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
get size(): Size;
@@ -6018,7 +7021,8 @@ declare class DrawingRenderingContext {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
invalidate(): void;
@@ -6029,7 +7033,8 @@ declare class DrawingRenderingContext {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor(unit?: LengthMetricsUnit);
}
@@ -6066,7 +7071,8 @@ declare class DrawingRenderingContext {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface CanvasInterface {
/**
@@ -6116,7 +7122,8 @@ interface CanvasInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
(context?: CanvasRenderingContext2D | DrawingRenderingContext): CanvasAttribute;
@@ -6128,7 +7135,8 @@ interface CanvasInterface {
* @returns { CanvasAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
(context: CanvasRenderingContext2D | DrawingRenderingContext, imageAIOptions: ImageAIOptions): CanvasAttribute;
}
@@ -6165,7 +7173,8 @@ interface CanvasInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class CanvasAttribute extends CommonMethod {
/**
@@ -6215,7 +7224,8 @@ declare class CanvasAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onReady(event: VoidCallback): CanvasAttribute;
@@ -6226,7 +7236,8 @@ declare class CanvasAttribute extends CommonMethod {
* @returns { CanvasAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableAnalyzer(enable: boolean): CanvasAttribute;
}
diff --git a/api/@internal/component/ets/checkbox.d.ts b/api/@internal/component/ets/checkbox.d.ts
index 8a2718bdf318093a455b61ae2f33bb963f569f02..d1d796b173989e0de5b384b14784f65a1190e9a9 100644
--- a/api/@internal/component/ets/checkbox.d.ts
+++ b/api/@internal/component/ets/checkbox.d.ts
@@ -18,6 +18,13 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { CommonConfiguration, Callback, CommonMethod, ContentModifier, Optional, Bindable } from './common';
+import { CustomBuilder } from './builder';
+import { ResourceColor, MarkStyle } from './units';
+import { CheckBoxShape } from './enums';
+/*** endif */
+
/**
* Defines the options of Checkbox.
*
@@ -50,7 +57,8 @@
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface CheckboxOptions {
/**
@@ -85,7 +93,8 @@ declare interface CheckboxOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
name?: string;
@@ -121,7 +130,8 @@ declare interface CheckboxOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
group?: string;
@@ -132,7 +142,8 @@ declare interface CheckboxOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
indicatorBuilder?: CustomBuilder;
}
@@ -145,7 +156,8 @@ declare interface CheckboxOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface CheckBoxConfiguration extends CommonConfiguration {
/**
@@ -155,7 +167,8 @@ declare interface CheckBoxConfiguration extends CommonConfiguration;
}
@@ -214,7 +229,8 @@ declare interface CheckBoxConfiguration extends CommonConfiguration void;
@@ -307,7 +325,8 @@ declare type OnCheckboxChangeCallback = (value: boolean) => void;
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class CheckboxAttribute extends CommonMethod {
/**
@@ -363,6 +382,20 @@ declare class CheckboxAttribute extends CommonMethod {
*/
select(isSelected: Optional): CheckboxAttribute;
+ /**
+ * setting whether checkbox is selected.
+ *
+ * @param { boolean | undefined | Bindable } isSelected
+ * @returns { CheckboxAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ select(isSelected: boolean | undefined | Bindable): CheckboxAttribute;
+
/**
* setting the display color of checkbox.
*
@@ -399,7 +432,8 @@ declare class CheckboxAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
selectedColor(value: ResourceColor): CheckboxAttribute;
@@ -412,7 +446,8 @@ declare class CheckboxAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
selectedColor(resColor: Optional): CheckboxAttribute;
@@ -435,7 +470,8 @@ declare class CheckboxAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
shape(value: CheckBoxShape): CheckboxAttribute;
@@ -448,7 +484,8 @@ declare class CheckboxAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
shape(shape: Optional): CheckboxAttribute;
@@ -469,7 +506,8 @@ declare class CheckboxAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
unselectedColor(value: ResourceColor): CheckboxAttribute;
@@ -481,7 +519,8 @@ declare class CheckboxAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
unselectedColor(resColor: Optional): CheckboxAttribute;
@@ -502,7 +541,8 @@ declare class CheckboxAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
mark(value: MarkStyle): CheckboxAttribute;
@@ -514,7 +554,8 @@ declare class CheckboxAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
mark(style: Optional): CheckboxAttribute;
@@ -565,7 +606,8 @@ declare class CheckboxAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onChange(callback: OnCheckboxChangeCallback): CheckboxAttribute;
@@ -578,7 +620,8 @@ declare class CheckboxAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onChange(callback: Optional): CheckboxAttribute;
@@ -590,7 +633,8 @@ declare class CheckboxAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
contentModifier(modifier: ContentModifier): CheckboxAttribute;
@@ -602,7 +646,8 @@ declare class CheckboxAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
contentModifier(modifier: Optional>): CheckboxAttribute;
}
diff --git a/api/@internal/component/ets/checkboxgroup.d.ts b/api/@internal/component/ets/checkboxgroup.d.ts
index 73155224395b0ad57e5aff8ebed347ebb946fd12..8864f9d769999bfcffa745ef6a49dda4d2907ef9 100644
--- a/api/@internal/component/ets/checkboxgroup.d.ts
+++ b/api/@internal/component/ets/checkboxgroup.d.ts
@@ -18,6 +18,12 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { CommonMethod, Optional, Bindable } from './common';
+import { ResourceColor, MarkStyle } from './units';
+import { CheckBoxShape } from './enums';
+/*** endif */
+
/**
* CheckboxGroup SelectStatus
*
@@ -50,7 +56,8 @@
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum SelectStatus {
/**
@@ -81,7 +88,8 @@ declare enum SelectStatus {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
All,
/**
@@ -112,7 +120,8 @@ declare enum SelectStatus {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Part,
/**
@@ -143,7 +152,8 @@ declare enum SelectStatus {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
None,
}
@@ -180,7 +190,8 @@ declare enum SelectStatus {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface CheckboxGroupOptions {
/**
@@ -215,7 +226,8 @@ declare interface CheckboxGroupOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
group?: string;
}
@@ -252,7 +264,8 @@ declare interface CheckboxGroupOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface CheckboxGroupResult {
/**
@@ -287,7 +300,8 @@ declare interface CheckboxGroupResult {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
name: Array;
/**
@@ -322,7 +336,8 @@ declare interface CheckboxGroupResult {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
status: SelectStatus;
}
@@ -359,7 +374,8 @@ declare interface CheckboxGroupResult {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface CheckboxGroupInterface {
/**
@@ -398,7 +414,8 @@ interface CheckboxGroupInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
(options?: CheckboxGroupOptions): CheckboxGroupAttribute;
}
@@ -412,7 +429,8 @@ interface CheckboxGroupInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type OnCheckboxGroupChangeCallback = (value: CheckboxGroupResult) => void;
@@ -448,7 +466,8 @@ declare type OnCheckboxGroupChangeCallback = (value: CheckboxGroupResult) => voi
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class CheckboxGroupAttribute extends CommonMethod {
/**
@@ -504,6 +523,20 @@ declare class CheckboxGroupAttribute extends CommonMethod): CheckboxGroupAttribute;
+ /**
+ * setting whether all checkbox is selected.
+ *
+ * @param { boolean| undefined|Bindable } isAllSelected
+ * @returns { CheckboxGroupAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ selectAll(isAllSelected: boolean | undefined | Bindable): CheckboxGroupAttribute;
+
/**
* setting the display color of checkbox.
*
@@ -540,7 +573,8 @@ declare class CheckboxGroupAttribute extends CommonMethod): CheckboxGroupAttribute;
@@ -574,7 +609,8 @@ declare class CheckboxGroupAttribute extends CommonMethod): CheckboxGroupAttribute;
@@ -607,7 +644,8 @@ declare class CheckboxGroupAttribute extends CommonMethod): CheckboxGroupAttribute;
@@ -670,7 +709,8 @@ declare class CheckboxGroupAttribute extends CommonMethod): CheckboxGroupAttribute;
@@ -696,7 +737,8 @@ declare class CheckboxGroupAttribute extends CommonMethod): CheckboxGroupAttribute;
}
diff --git a/api/@internal/component/ets/circle.d.ts b/api/@internal/component/ets/circle.d.ts
index 6c7a34bde2ead163cb0e8eeadd349f75e10d76de..5805726cf100810cf04df4f3f6cf7ee4048932f7 100644
--- a/api/@internal/component/ets/circle.d.ts
+++ b/api/@internal/component/ets/circle.d.ts
@@ -18,6 +18,10 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { CommonShapeMethod,CommonMethod } from './common';
+/*** endif */
+
/**
* Defines circle options for Circle component.
*
@@ -50,7 +54,8 @@
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface CircleOptions {
/**
@@ -85,7 +90,8 @@ declare interface CircleOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
width?: string | number;
@@ -121,7 +127,8 @@ declare interface CircleOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
height?: string | number;
}
@@ -274,7 +281,8 @@ interface CircleInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class CircleAttribute extends CommonShapeMethod {}
@@ -341,3 +349,30 @@ declare const Circle: CircleInterface;
* @since 11
*/
declare const CircleInstance: CircleAttribute;
+
+/**
+ * Defines circle component.
+ *
+ * @interface CircleInterface
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+interface CircleInterface {
+ /**
+ * Set the options for circle component.
+ *
+ * @param { CircleOptions } [value] - options to create circle component.
+ * @returns { CircleAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ (value?: CircleOptions): CircleAttribute;
+}
diff --git a/api/@internal/component/ets/column.d.ts b/api/@internal/component/ets/column.d.ts
index e943a2136a32a8529db8d46e1ac1f25535f5912e..02be253b698f4b5b1f38a0e0cc4d449e3ff65a1f 100644
--- a/api/@internal/component/ets/column.d.ts
+++ b/api/@internal/component/ets/column.d.ts
@@ -18,6 +18,12 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { PointLightStyle, Optional, CommonMethod } from './common';
+import { HorizontalAlign, FlexAlign } from './enums';
+import { Resource } from './../../global/resource';
+/*** endif */
+
/**
* Defines the space property with string, number and resource unit.
*
@@ -26,7 +32,8 @@
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type SpaceType = string | number | Resource;
@@ -38,7 +45,8 @@ declare type SpaceType = string | number | Resource;
* @crossplatform
* @form
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface ColumnOptions {
/**
@@ -73,7 +81,8 @@ interface ColumnOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
space?: string | number;
}
@@ -86,7 +95,8 @@ interface ColumnOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface ColumnOptionsV2 {
/**
@@ -97,7 +107,8 @@ interface ColumnOptionsV2 {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
space?: SpaceType;
}
@@ -134,7 +145,8 @@ interface ColumnOptionsV2 {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface ColumnInterface {
/**
@@ -192,7 +204,8 @@ interface ColumnInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
(options?: ColumnOptions): ColumnAttribute;
/**
@@ -204,7 +217,8 @@ interface ColumnInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
(options?: ColumnOptions | ColumnOptionsV2): ColumnAttribute;
}
@@ -241,7 +255,8 @@ interface ColumnInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class ColumnAttribute extends CommonMethod {
/**
@@ -280,7 +295,8 @@ declare class ColumnAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
alignItems(value: HorizontalAlign): ColumnAttribute;
@@ -320,7 +336,8 @@ declare class ColumnAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
justifyContent(value: FlexAlign): ColumnAttribute;
/**
@@ -330,7 +347,8 @@ declare class ColumnAttribute extends CommonMethod {
* @returns { ColumnAttribute } The attribute of the column.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
pointLight(value: PointLightStyle): ColumnAttribute;
/**
@@ -342,7 +360,8 @@ declare class ColumnAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
reverse(isReversed: Optional): ColumnAttribute;
}
diff --git a/api/@internal/component/ets/column_split.d.ts b/api/@internal/component/ets/column_split.d.ts
index f76e6cc09da387856ea2096a1079ca28614b94c2..4ad3617ad8ed6b196c97a1b150fcbea635c855ec 100644
--- a/api/@internal/component/ets/column_split.d.ts
+++ b/api/@internal/component/ets/column_split.d.ts
@@ -18,6 +18,11 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { Dimension } from './units';
+import { CommonMethod } from './common';
+/*** endif */
+
/**
* Defines the ColumnSplit component.
*
@@ -40,7 +45,8 @@
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface ColumnSplitInterface {
/**
@@ -65,7 +71,8 @@ interface ColumnSplitInterface {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
(): ColumnSplitAttribute;
}
@@ -85,7 +92,8 @@ interface ColumnSplitInterface {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface ColumnSplitDividerStyle {
/**
@@ -105,7 +113,8 @@ interface ColumnSplitDividerStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
startMargin?: Dimension;
@@ -126,7 +135,8 @@ interface ColumnSplitDividerStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
endMargin?: Dimension;
}
@@ -153,7 +163,8 @@ interface ColumnSplitDividerStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class ColumnSplitAttribute extends CommonMethod {
/**
@@ -181,7 +192,8 @@ declare class ColumnSplitAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
resizeable(value: boolean): ColumnSplitAttribute;
@@ -202,7 +214,8 @@ declare class ColumnSplitAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
divider(value: ColumnSplitDividerStyle | null): ColumnSplitAttribute;
}
diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts
index c864a1812c96f3d479a626672a7fe117238c8300..23bd0a037819c455bfe56ad0b5290471e6aecdfb 100644
--- a/api/@internal/component/ets/common.d.ts
+++ b/api/@internal/component/ets/common.d.ts
@@ -18,6 +18,57 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import OriginalContext from '../../application/Context';
+import { Resource } from '../../global/resource';
+import pointer from '../../@ohos.multimodalInput.pointer';
+import image from '../../@ohos.multimedia.image';
+import unifiedDataChannel from '../../@ohos.data.unifiedDataChannel';
+import promptAction from '../../@ohos.promptAction';
+import uniformTypeDescriptor from '../../@ohos.data.uniformTypeDescriptor';
+import { IntentionCode } from '../../@ohos.multimodalInput.intentionCode';
+import { SymbolGlyphModifier } from '../../arkui/SymbolGlyphModifier';
+import { CircleShape, EllipseShape, PathShape, RectShape } from '../../@ohos.arkui.shape';
+import uiObserver from '../../@ohos.arkui.observer';
+import { UIContext } from '../../@ohos.arkui.UIContext';
+import { DrawContext, LengthMetrics } from '../../arkui/Graphics';
+import uiEffect from '../../@ohos.graphics.uiEffect';
+import { FocusBoxStyle, FocusPriority } from './focus';
+import { ComponentContent } from '../../arkui/ComponentContent';
+import { ResizableOptions } from './image';
+import { Theme } from '../../@ohos.arkui.theme';
+import intl from '../../@ohos.intl';
+import { ButtonType, ButtonStyleMode, ButtonRole } from './button';
+import {
+ Area, ResourceColor, Dimension, ResourceStr, Font, Length, EdgeColors,
+ LocalizedEdgeColors, BorderRadiuses, EdgeWidths, LocalizedEdgeWidths, SizeOptions, Bias,
+ EdgeStyles, Position, LocalizedBorderRadiuses, Margin, ChainWeightOptions, Padding, LocalizedPadding, LocalizedMargin,
+ BorderOptions, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition,
+ AccessibilityOptions, ConstraintSizeOptions, EdgeWidth, DirectionalEdgesT, VoidCallback
+ } from './units';
+import { BaseGestureEvent, GestureRecognizer, GestureJudgeResult, GestureType,
+ GestureMask, GestureHandler, GesturePriority, GestureInfo
+ } from './gesture';
+import { ScrollState } from './list';
+import {
+ AccessibilityHoverType, Curve, PlayMode, SharedTransitionEffectType, KeySource, BorderStyle,
+ HorizontalAlign, VerticalAlign, MouseButton, MouseAction, TransitionType, FontWeight, TouchType,
+ FontStyle, Color, ColoringStrategy, Placement, ArrowPointPosition, ClickEffectLevel, NestedScrollMode, HitTestMode,
+ Alignment, ImageRepeat, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, FunctionKey,
+ ModifierKey, ObscuredReasons, RenderFit, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, IlluminatedType, TextDecorationType,
+ TextDecorationStyle, KeyType, ResponseType, BarState, EdgeEffect, ScrollSource, InteractionHand, AxisAction, AxisModel, CrownAction,
+ FocusDrawLevel, CrownSensitivity
+} from './enums';
+import { TextRange } from './textCommon';
+import { StyledString } from './styledString';
+import { CircleAttribute } from './circle';
+import { RectAttribute } from './rect';
+import { PathAttribute } from './path';
+import { EllipseAttribute } from './ellipse';
+import { LocalStorage } from '../stateManagement/storage/localStorage';
+import { CustomBuilder, WrappedBuilder } from './builder';
+/*** endif */
+
/**
* Defines the options of Component ClassDecorator.
*
@@ -77,11 +128,12 @@ declare interface ComponentOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface InputCounterOptions {
/**
- * It is the numerator bit of the percentage and used as a threshold. If the number of characters input
+ * It is the numerator bit of the percentage and used as a threshold. If the number of characters input
* reaches the maximum number of characters multiplied by this threshold, the counter is displayed.
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -89,16 +141,17 @@ declare interface InputCounterOptions {
* @since 11
*/
/**
- * It is the numerator bit of the percentage and used as a threshold. If the number of characters input
+ * It is the numerator bit of the percentage and used as a threshold. If the number of characters input
* reaches the maximum number of characters multiplied by this threshold, the counter is displayed.
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
thresholdPercentage?: number;
-
+
/**
* If the current input character count reaches the maximum character count and users want to exceed the
* normal input, the border will turn red. If this parameter is true, the red border displayed.
@@ -116,7 +169,8 @@ declare interface InputCounterOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
highlightBorder?: boolean;
}
@@ -128,7 +182,8 @@ declare interface InputCounterOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface TextDecorationOptions {
/**
@@ -138,7 +193,8 @@ declare interface TextDecorationOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
type: TextDecorationType;
@@ -149,7 +205,8 @@ declare interface TextDecorationOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
color?: ResourceColor;
@@ -160,7 +217,8 @@ declare interface TextDecorationOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
style?: TextDecorationStyle;
}
@@ -273,11 +331,71 @@ declare interface EntryOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
useSharedStorage? : boolean,
}
+/**
+ * Provides an interface for the style of an divider including stroke width, color, start margin
+ * and end margin
+ *
+ * @interface DividerStyle
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare interface DividerStyle {
+ /**
+ * Define the stroke width of the divider
+ *
+ * @type { Length }
+ * @default 0
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ strokeWidth: Length;
+
+ /**
+ * Define the color of the divider
+ *
+ * @type { ?ResourceColor }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ color?: ResourceColor;
+
+ /**
+ * Define the start margin of the divider
+ *
+ * @type { ?Length }
+ * @default 0
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ startMargin?: Length;
+
+ /**
+ * Define the end margin of the divider
+ *
+ * @type { ?Length }
+ * @default 0
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ endMargin?: Length;
+}
+
/**
* Defines Entry ClassDecorator.
*
@@ -1067,7 +1185,8 @@ declare interface IMonitorValue {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface AnimatableArithmetic {
/**
@@ -1087,7 +1206,8 @@ declare interface IMonitorValue {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
plus(rhs: AnimatableArithmetic): AnimatableArithmetic;
@@ -1108,7 +1228,8 @@ declare interface IMonitorValue {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
subtract(rhs: AnimatableArithmetic): AnimatableArithmetic;
@@ -1129,7 +1250,8 @@ declare interface IMonitorValue {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
multiply(scale: number): AnimatableArithmetic;
@@ -1150,7 +1272,8 @@ declare interface IMonitorValue {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
equals(rhs: AnimatableArithmetic): boolean;
}
@@ -1185,7 +1308,7 @@ declare const Concurrent: MethodDecorator;
* A function with this decorator is marked as sendable, and the function can be an shareable property of sendable-class object.
* A typeAlias with this decorator is marked as sendable, and the typeAlias can be used to declare properties, variables,
* and arguments that need to be assigned with sendable-function.
- *
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
@@ -1334,7 +1457,8 @@ declare const ReusableV2: ClassDecorator;
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type ReuseIdCallback = () => string;
@@ -1345,7 +1469,8 @@ declare const ReusableV2: ClassDecorator;
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ReuseOptions {
/**
@@ -1355,7 +1480,8 @@ declare interface ReuseOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
reuseId? : ReuseIdCallback;
}
@@ -1388,6 +1514,19 @@ declare interface ReuseOptions {
*/
declare type Context = import('../api/application/Context').default;
+/**
+ * Export Context.
+ *
+ * @typedef { OriginalContext } Context
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @stagemodelonly
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+export type Context = OriginalContext;
+
/**
* Post Card Action.
*
@@ -1419,7 +1558,8 @@ declare type Context = import('../api/application/Context').default;
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare function postCardAction(component: Object, action: Object): void;
@@ -1455,7 +1595,8 @@ declare function postCardAction(component: Object, action: Object): void;
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface Configuration {
/**
@@ -1494,7 +1635,8 @@ declare interface Configuration {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
readonly colorMode: string;
@@ -1534,7 +1676,8 @@ declare interface Configuration {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
readonly fontScale: number;
}
@@ -1571,7 +1714,8 @@ declare interface Configuration {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface Rectangle {
/**
@@ -1606,7 +1750,8 @@ declare interface Rectangle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
x?: Length;
@@ -1642,7 +1787,8 @@ declare interface Rectangle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
y?: Length;
@@ -1678,7 +1824,8 @@ declare interface Rectangle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
width?: Length;
@@ -1714,7 +1861,8 @@ declare interface Rectangle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
height?: Length;
}
@@ -1741,7 +1889,8 @@ declare interface Rectangle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ExpectedFrameRateRange {
/**
@@ -1766,7 +1915,8 @@ declare interface ExpectedFrameRateRange {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
min: number,
/**
@@ -1791,7 +1941,8 @@ declare interface ExpectedFrameRateRange {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
max: number,
/**
@@ -1822,7 +1973,8 @@ declare interface ExpectedFrameRateRange {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
expected: number,
}
@@ -1871,6 +2023,21 @@ declare interface ExpectedFrameRateRange {
*/
declare function $r(value: string, ...params: any[]): Resource;
+/**
+ * global $r function
+ *
+ * @param { string } value
+ * @param { (Object | null | undefined)[] } params
+ * @returns { Resource }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare function $r(value: string, ...params: (Object | null | undefined)[]): Resource;
+
/**
* global $rawfile function
*
@@ -1907,7 +2074,8 @@ declare function $r(value: string, ...params: any[]): Resource;
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare function $rawfile(value: string): Resource;
/**
@@ -1917,7 +2085,8 @@ declare function $rawfile(value: string): Resource;
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum AccessibilitySamePageMode {
/**
@@ -1926,7 +2095,8 @@ declare enum AccessibilitySamePageMode {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SEMI_SILENT = 0,
/**
@@ -1935,7 +2105,8 @@ declare enum AccessibilitySamePageMode {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
FULL_SILENT = 1,
}
@@ -1946,7 +2117,8 @@ declare enum AccessibilitySamePageMode {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum AccessibilityRoleType {
/**
@@ -1955,7 +2127,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ACTION_SHEET = 0,
/**
@@ -1964,7 +2137,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ALERT_DIALOG = 1,
/**
@@ -1973,7 +2147,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
INDEXER_COMPONENT = 2,
/**
@@ -1982,7 +2157,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BADGE_COMPONENT = 3,
/**
@@ -1991,7 +2167,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BLANK = 4,
/**
@@ -2000,7 +2177,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BUTTON = 5,
/**
@@ -2009,7 +2187,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BACK_BUTTON = 6,
/**
@@ -2018,7 +2197,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SHEET_DRAG_BAR = 7,
/**
@@ -2027,7 +2207,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CALENDAR_PICKER = 8,
/**
@@ -2036,7 +2217,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CALENDAR = 9,
/**
@@ -2045,7 +2227,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CANVAS = 10,
/**
@@ -2054,7 +2237,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CANVAS_GRADIENT = 11,
/**
@@ -2063,7 +2247,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CANVAS_PATTERN = 12,
/**
@@ -2072,7 +2257,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CHECKBOX = 13,
/**
@@ -2081,7 +2267,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CHECKBOX_GROUP = 14,
/**
@@ -2090,7 +2277,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CIRCLE = 15,
/**
@@ -2099,7 +2287,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COLUMN_SPLIT = 16,
/**
@@ -2108,7 +2297,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COLUMN = 17,
/**
@@ -2117,7 +2307,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CANVAS_RENDERING_CONTEXT_2D = 18,
/**
@@ -2126,7 +2317,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CHART = 19,
/**
@@ -2135,7 +2327,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COUNTER = 20,
/**
@@ -2144,7 +2337,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CONTAINER_MODAL = 21,
/**
@@ -2153,7 +2347,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DATA_PANEL = 22,
/**
@@ -2162,7 +2357,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DATE_PICKER = 23,
/**
@@ -2171,7 +2367,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DIALOG = 24,
/**
@@ -2180,7 +2377,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DIVIDER = 25,
/**
@@ -2189,7 +2387,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DRAG_BAR = 26,
/**
@@ -2198,7 +2397,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
EFFECT_COMPONENT = 27,
/**
@@ -2207,7 +2407,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ELLIPSE = 28,
/**
@@ -2216,7 +2417,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
FLEX = 29,
/**
@@ -2225,7 +2427,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
FLOW_ITEM = 30,
/**
@@ -2234,7 +2437,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
FORM_COMPONENT = 31,
/**
@@ -2243,7 +2447,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
FORM_LINK = 32,
/**
@@ -2252,7 +2457,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
GAUGE = 33,
/**
@@ -2261,7 +2467,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
GRID = 34,
/**
@@ -2270,7 +2477,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
GRID_COL = 35,
/**
@@ -2279,7 +2487,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
GRID_CONTAINER = 36,
/**
@@ -2288,7 +2497,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
GRID_ITEM = 37,
/**
@@ -2297,7 +2507,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
GRID_ROW = 38,
/**
@@ -2306,7 +2517,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
HYPERLINK = 39,
/**
@@ -2315,7 +2527,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
IMAGE = 40,
/**
@@ -2324,7 +2537,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
IMAGE_ANIMATOR = 41,
/**
@@ -2333,7 +2547,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
IMAGE_BITMAP = 42,
/**
@@ -2342,7 +2557,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
IMAGE_DATA = 43,
/**
@@ -2351,7 +2567,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
IMAGE_SPAN = 44,
/**
@@ -2360,7 +2577,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
LABEL = 45,
/**
@@ -2369,7 +2587,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
LINE = 46,
/**
@@ -2378,7 +2597,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
LIST = 47,
/**
@@ -2387,7 +2607,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
LIST_ITEM = 48,
/**
@@ -2396,7 +2617,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
LIST_ITEM_GROUP = 49,
/**
@@ -2405,7 +2627,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
LOADING_PROGRESS = 50,
/**
@@ -2414,7 +2637,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
MARQUEE = 51,
/**
@@ -2423,7 +2647,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
MATRIX2D = 52,
/**
@@ -2432,7 +2657,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
MENU = 53,
/**
@@ -2441,7 +2667,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
MENU_ITEM = 54,
/**
@@ -2450,7 +2677,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
MENU_ITEM_GROUP = 55,
/**
@@ -2459,7 +2687,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
NAV_DESTINATION = 56,
/**
@@ -2468,7 +2697,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
NAV_ROUTER = 57,
/**
@@ -2477,7 +2707,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
NAVIGATION = 58,
/**
@@ -2486,7 +2717,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
NAVIGATION_BAR = 59,
/**
@@ -2495,7 +2727,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
NAVIGATION_MENU = 60,
/**
@@ -2504,7 +2737,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
NAVIGATOR = 61,
/**
@@ -2513,7 +2747,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OFFSCREEN_CANVAS = 62,
/**
@@ -2522,7 +2757,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OFFSCREEN_CANVAS_RENDERING_CONTEXT2D = 63,
/**
@@ -2531,7 +2767,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OPTION = 64,
/**
@@ -2540,7 +2777,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PANEL = 65,
/**
@@ -2549,7 +2787,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PAPER_PAGE = 66,
/**
@@ -2558,7 +2797,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PATH = 67,
/**
@@ -2567,7 +2807,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PATH2D = 68,
/**
@@ -2576,7 +2817,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PATTERN_LOCK = 69,
/**
@@ -2585,7 +2827,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PICKER = 70,
/**
@@ -2594,7 +2837,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PICKER_VIEW = 71,
/**
@@ -2603,7 +2847,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PLUGIN_COMPONENT = 72,
/**
@@ -2612,7 +2857,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
POLYGON = 73,
/**
@@ -2621,7 +2867,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
POLYLINE = 74,
/**
@@ -2630,7 +2877,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
POPUP = 75,
/**
@@ -2639,7 +2887,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PROGRESS = 76,
/**
@@ -2648,7 +2897,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
QRCODE = 77,
/**
@@ -2657,7 +2907,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
RADIO = 78,
/**
@@ -2666,7 +2917,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
RATING = 79,
/**
@@ -2675,7 +2927,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
RECT = 80,
/**
@@ -2684,7 +2937,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
REFRESH = 81,
/**
@@ -2693,7 +2947,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
RELATIVE_CONTAINER = 82,
/**
@@ -2702,7 +2957,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
REMOTE_WINDOW = 83,
/**
@@ -2711,7 +2967,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
RICH_EDITOR = 84,
/**
@@ -2720,7 +2977,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
RICH_TEXT = 85,
/**
@@ -2729,7 +2987,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ROLE_PAGER = 86,
/**
@@ -2738,7 +2997,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ROW = 87,
/**
@@ -2747,7 +3007,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ROW_SPLIT = 88,
/**
@@ -2756,7 +3017,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SCROLL = 89,
/**
@@ -2765,7 +3027,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SCROLL_BAR = 90,
/**
@@ -2774,7 +3037,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SEARCH = 91,
/**
@@ -2783,7 +3047,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SEARCH_FIELD = 92,
/**
@@ -2792,7 +3057,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SELECT = 93,
/**
@@ -2801,7 +3067,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SHAPE = 94,
/**
@@ -2810,7 +3077,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SIDEBAR_CONTAINER = 95,
/**
@@ -2819,7 +3087,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SLIDER = 96,
/**
@@ -2828,7 +3097,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SPAN = 97,
/**
@@ -2837,7 +3107,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
STACK = 98,
/**
@@ -2846,7 +3117,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
STEPPER = 99,
/**
@@ -2855,7 +3127,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
STEPPER_ITEM = 100,
/**
@@ -2864,7 +3137,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SWIPER = 101,
/**
@@ -2873,7 +3147,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SWIPER_INDICATOR = 102,
/**
@@ -2882,7 +3157,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SWITCH = 103,
/**
@@ -2891,7 +3167,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SYMBOL_GLYPH = 104,
/**
@@ -2900,7 +3177,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TAB_CONTENT = 105,
/**
@@ -2909,7 +3187,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TAB_BAR = 106,
/**
@@ -2918,7 +3197,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TABS = 107,
/**
@@ -2927,7 +3207,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TEXT = 108,
/**
@@ -2936,7 +3217,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TEXT_CLOCK = 109,
/**
@@ -2945,7 +3227,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TEXT_ENTRY = 110,
/**
@@ -2954,7 +3237,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TEXT_INPUT = 111,
/**
@@ -2963,7 +3247,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TEXT_PICKER = 112,
/**
@@ -2972,7 +3257,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TEXT_TIMER = 113,
/**
@@ -2981,7 +3267,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TEXT_AREA = 114,
/**
@@ -2990,7 +3277,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TEXT_FIELD = 115,
/**
@@ -2999,7 +3287,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TIME_PICKER = 116,
/**
@@ -3008,7 +3297,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TITLE_BAR = 117,
/**
@@ -3017,7 +3307,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TOGGLER = 118,
/**
@@ -3026,7 +3317,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
UI_EXTENSION_COMPONENT = 119,
/**
@@ -3035,7 +3327,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
VIDEO = 120,
/**
@@ -3044,7 +3337,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
WATER_FLOW = 121,
/**
@@ -3053,7 +3347,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
WEB = 122,
/**
@@ -3062,7 +3357,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
XCOMPONENT = 123,
/**
@@ -3071,7 +3367,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ROLE_NONE = 124,
}
@@ -3084,7 +3381,8 @@ declare enum AccessibilityRoleType {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type AccessibilityFocusCallback = (isFocus: boolean) => void;
@@ -3105,7 +3403,8 @@ declare type AccessibilityFocusCallback = (isFocus: boolean) => void;
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum FinishCallbackType {
/**
@@ -3123,7 +3422,8 @@ declare enum FinishCallbackType {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
REMOVED = 0,
/**
@@ -3141,7 +3441,8 @@ declare enum FinishCallbackType {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
LOGICALLY = 1,
}
@@ -3163,7 +3464,8 @@ declare enum FinishCallbackType {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum TouchTestStrategy {
/**
@@ -3181,7 +3483,8 @@ declare enum TouchTestStrategy {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DEFAULT = 0,
@@ -3200,7 +3503,8 @@ declare enum TouchTestStrategy {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
FORWARD_COMPETITION = 1,
@@ -3219,7 +3523,8 @@ declare enum TouchTestStrategy {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
FORWARD = 2
}
@@ -3256,7 +3561,8 @@ declare enum TouchTestStrategy {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface AnimateParam {
/**
@@ -3295,7 +3601,8 @@ declare interface AnimateParam {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
duration?: number;
/**
@@ -3326,7 +3633,8 @@ declare interface AnimateParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
tempo?: number;
/**
@@ -3365,7 +3673,8 @@ declare interface AnimateParam {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
curve?: Curve | string | ICurve;
@@ -3394,7 +3703,8 @@ declare interface AnimateParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
delay?: number;
@@ -3423,7 +3733,8 @@ declare interface AnimateParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
iterations?: number;
@@ -3463,7 +3774,8 @@ declare interface AnimateParam {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
playMode?: PlayMode;
@@ -3499,7 +3811,8 @@ declare interface AnimateParam {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onFinish?: () => void;
@@ -3520,7 +3833,8 @@ declare interface AnimateParam {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
finishCallbackType?: FinishCallbackType;
@@ -3537,7 +3851,8 @@ declare interface AnimateParam {
* @type { ?ExpectedFrameRateRange }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
expectedFrameRateRange?: ExpectedFrameRateRange;
}
@@ -3567,7 +3882,8 @@ declare interface AnimateParam {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface ICurve {
/**
@@ -3601,7 +3917,8 @@ interface ICurve {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interpolate(fraction: number): number;
}
@@ -3628,7 +3945,8 @@ interface ICurve {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface MotionPathOptions {
/**
@@ -3653,7 +3971,8 @@ declare interface MotionPathOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
path: string;
@@ -3682,7 +4001,8 @@ declare interface MotionPathOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
from?: number;
@@ -3711,7 +4031,8 @@ declare interface MotionPathOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
to?: number;
@@ -3740,7 +4061,8 @@ declare interface MotionPathOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
rotatable?: boolean;
}
@@ -3767,7 +4089,8 @@ declare interface MotionPathOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface sharedTransitionOptions {
/**
@@ -3795,7 +4118,8 @@ declare interface sharedTransitionOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
duration?: number;
@@ -3824,7 +4148,8 @@ declare interface sharedTransitionOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
curve?: Curve | string | ICurve;
@@ -3853,7 +4178,8 @@ declare interface sharedTransitionOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
delay?: number;
@@ -3879,7 +4205,8 @@ declare interface sharedTransitionOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
motionPath?: MotionPathOptions;
@@ -3905,7 +4232,8 @@ declare interface sharedTransitionOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
zIndex?: number;
@@ -3934,7 +4262,8 @@ declare interface sharedTransitionOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
type?: SharedTransitionEffectType;
}
@@ -3954,7 +4283,8 @@ declare interface sharedTransitionOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface GeometryTransitionOptions {
/**
@@ -3974,12 +4304,13 @@ declare interface GeometryTransitionOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
follow?: boolean;
/**
* Defines movement strategy of source and target in the hierarchy during geometry transition.
- *
+ *
* @type { ?TransitionHierarchyStrategy }
* @default TransitionHierarchyStrategy.ADAPTIVE
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -3989,12 +4320,13 @@ declare interface GeometryTransitionOptions {
*/
/**
* Defines movement strategy of source and target in the hierarchy during geometry transition.
- *
+ *
* @type { ?TransitionHierarchyStrategy }
* @default TransitionHierarchyStrategy.ADAPTIVE
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
hierarchyStrategy?: TransitionHierarchyStrategy
}
@@ -4007,7 +4339,8 @@ declare interface GeometryTransitionOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface LinearGradientOptions {
/**
@@ -4064,7 +4397,8 @@ declare interface LinearGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
angle?: number | string;
@@ -4122,7 +4456,8 @@ declare interface LinearGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
direction?: GradientDirection;
@@ -4179,7 +4514,8 @@ declare interface LinearGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
colors: Array<[ResourceColor, number]>;
@@ -4237,7 +4573,8 @@ declare interface LinearGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
repeating?: boolean;
}
@@ -4250,7 +4587,8 @@ declare interface LinearGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface SweepGradientOptions {
/**
@@ -4306,7 +4644,8 @@ declare interface SweepGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
center: [Length, Length];
@@ -4365,7 +4704,8 @@ declare interface SweepGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
start?: number | string;
@@ -4422,7 +4762,8 @@ declare interface SweepGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
end?: number | string;
@@ -4480,7 +4821,8 @@ declare interface SweepGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
rotation?: number | string;
@@ -4537,7 +4879,8 @@ declare interface SweepGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
colors: Array<[ResourceColor, number]>;
@@ -4595,7 +4938,8 @@ declare interface SweepGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
repeating?: boolean;
}
@@ -4608,7 +4952,8 @@ declare interface SweepGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface RadialGradientOptions {
/**
@@ -4664,7 +5009,8 @@ declare interface RadialGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
center: [Length, Length];
@@ -4721,7 +5067,8 @@ declare interface RadialGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
radius: Length;
@@ -4778,7 +5125,8 @@ declare interface RadialGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
colors: Array<[ResourceColor, number]>;
@@ -4836,7 +5184,8 @@ declare interface RadialGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
repeating?: boolean;
}
@@ -4862,7 +5211,8 @@ declare interface RadialGradientOptions {
* @enum { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum TransitionHierarchyStrategy {
/**
@@ -4880,7 +5230,8 @@ declare enum TransitionHierarchyStrategy {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
NONE = 0,
@@ -4901,7 +5252,8 @@ declare enum TransitionHierarchyStrategy {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ADAPTIVE = 1,
}
@@ -4938,7 +5290,8 @@ declare enum TransitionHierarchyStrategy {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface TranslateOptions {
/**
@@ -4973,7 +5326,8 @@ declare interface TranslateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
x?: number | string;
@@ -5009,7 +5363,8 @@ declare interface TranslateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
y?: number | string;
@@ -5045,7 +5400,8 @@ declare interface TranslateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
z?: number | string;
}
@@ -5082,7 +5438,8 @@ declare interface TranslateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ScaleOptions {
/**
@@ -5117,7 +5474,8 @@ declare interface ScaleOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
x?: number;
@@ -5153,7 +5511,8 @@ declare interface ScaleOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
y?: number;
@@ -5189,7 +5548,8 @@ declare interface ScaleOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
z?: number;
@@ -5225,7 +5585,8 @@ declare interface ScaleOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
centerX?: number | string;
@@ -5261,11 +5622,155 @@ declare interface ScaleOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
centerY?: number | string;
}
+/**
+ * Defines the align rule options of relative container.
+ *
+ * @interface AlignRuleParam
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare interface AlignRuleParam {
+ /**
+ * The param of anchor.
+ *
+ * @type { ?string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ anchor: string;
+ /**
+ * The param of align.
+ *
+ * @type { T }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ align: T
+}
+
+/**
+ * Defines the align rule options of relative container.
+ *
+ * @interface AlignRuleOption
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare interface AlignRuleOption {
+ /**
+ * The param of left align.
+ *
+ * @type { ?AlignRuleParam }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ left?:AlignRuleParam;
+
+ /**
+ * The param of right align.
+ *
+ * @type { ?AlignRuleParam }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ right?: AlignRuleParam;
+
+ /**
+ * The param of middle align.
+ *
+ * @type { ?AlignRuleParam }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ middle?: AlignRuleParam;
+
+ /**
+ * The param of top align.
+ *
+ * @type { ?AlignRuleParam }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ top?: AlignRuleParam;
+
+ /**
+ * The param of bottom align.
+ *
+ * @type { ?AlignRuleParam }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ bottom?: AlignRuleParam;
+
+ /**
+ * The param of center align.
+ *
+ * @type { ?AlignRuleParam }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ center?: AlignRuleParam;
+
+ /**
+ * Defines the bias ratio in horizontal and vertical direction.
+ *
+ * @type { ?Bias }
+ * @default {horizontal:0.5,vertical:0.5}
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ bias?: Bias;
+}
+
+
/**
* Defines the align rule options of relative container.
*
@@ -5497,7 +6002,8 @@ declare interface AlignRuleOption {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface LocalizedHorizontalAlignParam {
/**
@@ -5507,8 +6013,9 @@ declare interface LocalizedHorizontalAlignParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
- */
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
anchor: string;
/**
@@ -5518,8 +6025,9 @@ declare interface LocalizedHorizontalAlignParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
- */
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
align: HorizontalAlign;
}
@@ -5530,7 +6038,8 @@ declare interface LocalizedHorizontalAlignParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface LocalizedVerticalAlignParam {
/**
@@ -5540,8 +6049,9 @@ declare interface LocalizedVerticalAlignParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
- */
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
anchor: string;
/**
@@ -5551,8 +6061,9 @@ declare interface LocalizedVerticalAlignParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
- */
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
align: VerticalAlign;
}
@@ -5563,7 +6074,8 @@ declare interface LocalizedVerticalAlignParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface LocalizedAlignRuleOptions {
/**
@@ -5573,7 +6085,8 @@ declare interface LocalizedAlignRuleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
start?: LocalizedHorizontalAlignParam;
@@ -5584,7 +6097,8 @@ declare interface LocalizedAlignRuleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
end?: LocalizedHorizontalAlignParam;
@@ -5595,7 +6109,8 @@ declare interface LocalizedAlignRuleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
middle?: LocalizedHorizontalAlignParam;
@@ -5606,7 +6121,8 @@ declare interface LocalizedAlignRuleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
top?: LocalizedVerticalAlignParam;
@@ -5617,7 +6133,8 @@ declare interface LocalizedAlignRuleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
bottom?: LocalizedVerticalAlignParam;
@@ -5628,7 +6145,8 @@ declare interface LocalizedAlignRuleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
center?: LocalizedVerticalAlignParam;
@@ -5640,7 +6158,8 @@ declare interface LocalizedAlignRuleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
bias?: Bias;
}
@@ -5652,7 +6171,8 @@ declare interface LocalizedAlignRuleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum ChainStyle {
/**
@@ -5661,7 +6181,8 @@ declare enum ChainStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SPREAD,
@@ -5671,7 +6192,8 @@ declare enum ChainStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SPREAD_INSIDE,
@@ -5681,7 +6203,8 @@ declare enum ChainStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PACKED,
}
@@ -5718,7 +6241,8 @@ declare enum ChainStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface RotateOptions {
/**
@@ -5753,7 +6277,8 @@ declare interface RotateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
x?: number;
@@ -5789,7 +6314,8 @@ declare interface RotateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
y?: number;
@@ -5825,7 +6351,8 @@ declare interface RotateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
z?: number;
@@ -5861,7 +6388,8 @@ declare interface RotateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
centerX?: number | string;
@@ -5896,7 +6424,8 @@ declare interface RotateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
centerY?: number | string;
@@ -5919,7 +6448,8 @@ declare interface RotateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
centerZ?: number;
@@ -5940,7 +6470,8 @@ declare interface RotateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
perspective?: number;
@@ -5976,7 +6507,8 @@ declare interface RotateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
angle: number | string;
}
@@ -6055,7 +6587,8 @@ declare interface TransitionOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum TransitionEdge {
/**
@@ -6073,7 +6606,8 @@ declare enum TransitionEdge {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TOP,
@@ -6092,7 +6626,8 @@ declare enum TransitionEdge {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BOTTOM,
@@ -6111,7 +6646,8 @@ declare enum TransitionEdge {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
START,
@@ -6130,7 +6666,8 @@ declare enum TransitionEdge {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
END
}
@@ -6168,13 +6705,53 @@ declare type TransitionEffects = {
};
};
+/**
+ * Defines the option of asymmetric transition.
+ *
+ * @interface AsymmetricTransitionOption
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare interface AsymmetricTransitionOption {
+ /**
+ * TransitionEffect used for appearing
+ *
+ * @type { TransitionEffect }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ appear: TransitionEffect;
+
+ /**
+ * TransitionEffect used for disappearing
+ *
+ * @type { TransitionEffect }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ disappear: TransitionEffect;
+}
+
/**
* Defined the draw modifier of node. Provides draw callbacks for the associated Node.
- *
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class DrawModifier {
/**
@@ -6189,7 +6766,19 @@ declare class DrawModifier {
drawBehind?(drawContext: DrawContext): void;
/**
- * drawContent Method. Executed when associated Node is drawing, the default drawContent method will be replaced
+ * drawBehind Method. Executed before drawing associated Node.
+ *
+ * @param { DrawContext } drawContext - The drawContext used to draw.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ drawBehind(drawContext: DrawContext): void;
+
+ /**
+ * drawContent Method. Executed when associated Node is drawing, the default drawContent method will be replaced
* if this method is set.
*
* @param { DrawContext } drawContext - The drawContext used to draw.
@@ -6199,7 +6788,21 @@ declare class DrawModifier {
* @since 12
*/
drawContent?(drawContext: DrawContext): void;
-
+
+ /**
+ * drawContent Method. Executed when associated Node is drawing, the default drawContent method will be replaced
+ * if this method is set.
+ *
+ * @param { DrawContext } drawContext - The drawContext used to draw.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ drawContent(drawContext: DrawContext): void;
+
+
/**
* drawFront Method. Executed after drawing associated Node.
*
@@ -6210,14 +6813,27 @@ declare class DrawModifier {
* @since 12
*/
drawFront?(drawContext: DrawContext): void;
-
+
+ /**
+ * drawFront Method. Executed after drawing associated Node.
+ *
+ * @param { DrawContext } drawContext - The drawContext used to draw.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ drawFront(drawContext: DrawContext): void;
+
/**
* Invalidate the component, which will cause a re-render of the component.
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
invalidate(): void;
}
@@ -6333,9 +6949,9 @@ declare class TransitionEffect<
>;
/**
- * Specify a transition effect where the element enters by shrinking first and then expanding as it slides in from the right,
- * and exits by shrinking first and then expanding as it slides out to the left, with a minimum scale ratio of 0.8.
- * It comes with default animation parameters, which can also be overridden.
+ * Specify a transition effect where the element enters by shrinking first and then expanding as it slides in from the right,
+ * and exits by shrinking first and then expanding as it slides out to the left, with a minimum scale ratio of 0.8.
+ * It comes with default animation parameters, which can also be overridden.
* The default animation duration is set to 600ms, and the specified animation curve is cubicBezierCurve(0.24, 0.0, 0.50, 1.0).
*
* @type { TransitionEffect<"slideSwitch"> }
@@ -6347,9 +6963,9 @@ declare class TransitionEffect<
* @since 10
*/
/**
- * Specify a transition effect where the element enters by shrinking first and then expanding as it slides in from the right,
- * and exits by shrinking first and then expanding as it slides out to the left, with a minimum scale ratio of 0.8.
- * It comes with default animation parameters, which can also be overridden.
+ * Specify a transition effect where the element enters by shrinking first and then expanding as it slides in from the right,
+ * and exits by shrinking first and then expanding as it slides out to the left, with a minimum scale ratio of 0.8.
+ * It comes with default animation parameters, which can also be overridden.
* The default animation duration is set to 600ms, and the specified animation curve is cubicBezierCurve(0.24, 0.0, 0.50, 1.0).
*
* @type { TransitionEffect<"slideSwitch"> }
@@ -6390,7 +7006,7 @@ declare class TransitionEffect<
* Creates a rotation transition effect
*
* @param { RotateOptions } options - rotate options
- * Set the rotation effect for component transitions when inserting and deleting.
+ * Set the rotation effect for component transitions when inserting and deleting.
* The value represents the starting rotation point for the inserting animation and the ending rotation point for the deleting animation.
* -x: Horizontal component of the rotational vector.
* -y: Vertical component of the rotational vector.
@@ -6410,7 +7026,7 @@ declare class TransitionEffect<
* Creates a rotation transition effect
*
* @param { RotateOptions } options - rotate options
- * Set the rotation effect for component transitions when inserting and deleting.
+ * Set the rotation effect for component transitions when inserting and deleting.
* The value represents the starting rotation point for the inserting animation and the ending rotation point for the deleting animation.
* -x: Horizontal component of the rotational vector.
* -y: Vertical component of the rotational vector.
@@ -6609,43 +7225,347 @@ declare class TransitionEffect<
}
/**
- * Define Preview property
- *
- * @interface PreviewParams
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
-/**
- * Define Preview property
+ * Defines the transition effect
*
- * @interface PreviewParams
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since 20
+ * @arkts 1.2
*/
-interface PreviewParams {
+declare class TransitionEffect {
+
/**
- * Define Preview title
+ * Disables the transition effect
*
- * @type { ?string }
+ * @type { TransitionEffect }
+ * @readonly
+ * @static
* @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
* @form
- * @since 9
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
*/
+ static readonly IDENTITY: TransitionEffect;
+
/**
- * Define Preview title
+ * Specifies a transition effect with transparency of 0, which is equivalent to TransitionEffect.opacity(0).
*
- * @type { ?string }
+ * @type { TransitionEffect }
+ * @readonly
+ * @static
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since 20
+ * @arkts 1.2
*/
- title?: string;
+ static readonly OPACITY: TransitionEffect;
+
+ /**
+ * Defines a slide transition effect
+ *
+ * @type { TransitionEffect }
+ * @readonly
+ * @static
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ static readonly SLIDE: TransitionEffect;
+
+ /**
+ * Specify a transition effect where the element enters by shrinking first and then expanding as it slides in from the right,
+ * and exits by shrinking first and then expanding as it slides out to the left, with a minimum scale ratio of 0.8.
+ * It comes with default animation parameters, which can also be overridden.
+ * The default animation duration is set to 600ms, and the specified animation curve is cubicBezierCurve(0.24, 0.0, 0.50, 1.0).
+ *
+ * @type { TransitionEffect }
+ * @readonly
+ * @static
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ static readonly SLIDE_SWITCH: TransitionEffect;
+
+ /**
+ * Creates a translate transition effect
+ *
+ * @param { TranslateOptions } options - translate options
+ * @returns { TransitionEffect }
+ * @static
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ static translate(options: TranslateOptions): TransitionEffect;
+
+ /**
+ * Creates a rotation transition effect
+ *
+ * @param { RotateOptions } options - rotate options
+ * Set the rotation effect for component transitions when inserting and deleting.
+ * The value represents the starting rotation point for the inserting animation and the ending rotation point for the deleting animation.
+ * -x: Horizontal component of the rotational vector.
+ * -y: Vertical component of the rotational vector.
+ * -z: Vertical component of the rotational vector.
+ * -centerX, centerY specify the rotation center point, with default values of "50%",
+ * meaning that the default rotation center point is the center point of the component.
+ * -The center point of (0, 0) represents the upper-left corner of the component.
+ * -centerZ refers to the Z-axis anchor point. The default value of centerZ is 0.
+ * -perspective indicates the visual distance. The perspective property does not support transition animation.
+ * @returns { TransitionEffect }
+ * @static
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ static rotate(options: RotateOptions): TransitionEffect;
+
+ /**
+ * Creates a scale transition effect
+ *
+ * @param { ScaleOptions } options - scale options
+ * @returns { TransitionEffect }
+ * @static
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ static scale(options: ScaleOptions): TransitionEffect;
+
+ /**
+ * Creates an opacity transition effect with alpha value
+ *
+ * @param { number } alpha - opacity alpha value, value range [0, 1].
+ * Illegal values less than 0 are treated as 0, and illegal values greater than 1 are treated as 1.
+ * @returns { TransitionEffect }
+ * @static
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ static opacity(alpha: number): TransitionEffect;
+
+ /**
+ * Creates a move transition effect
+ *
+ * @param { TransitionEdge } edge - the edge that component will move to
+ * @returns { TransitionEffect }
+ * @static
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ static move(edge: TransitionEdge): TransitionEffect;
+
+ /**
+ * Creates an asymmetric transition effect
+ *
+ * @param { TransitionEffect } appear - the transition which will be attached when the component is appear
+ * @param { TransitionEffect } disappear - the transition which will be attached when the component is disappear
+ * @returns { TransitionEffect }
+ * @static
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ static asymmetric(appear: TransitionEffect, disappear: TransitionEffect): TransitionEffect;
+
+ /**
+ * identity or slideSwitch TransitionEffect constructor
+ *
+ * @param { 'identity' | 'slideSwitch' } type - transition type
+ * @param { undefined } effect - transition options
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ constructor(type: 'identity' | 'slideSwitch', effect: undefined);
+
+ /**
+ * opacity TransitionEffect constructor
+ *
+ * @param { 'opacity' } type - transition type
+ * @param { number } effect - transition options
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ constructor(type: 'opacity', effect: number);
+
+ /**
+ * move TransitionEffect constructor
+ *
+ * @param { 'move' } type - transition type
+ * @param { TransitionEdge } effect - transition options
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ constructor(type: 'move', effect: TransitionEdge);
+
+ /**
+ * translate TransitionEffect constructor
+ *
+ * @param { 'translate' } type - transition type
+ * @param { TranslateOptions } effect - transition options
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ constructor(type: 'translate', effect:TranslateOptions);
+
+ /**
+ * rotate TransitionEffect constructor
+ *
+ * @param { 'rotate' } type - transition type
+ * @param { RotateOptions } effect - transition options
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ constructor(type: 'rotate', effect: RotateOptions);
+
+ /**
+ * scale TransitionEffect constructor
+ *
+ * @param { 'scale' } type - transition type
+ * @param { ScaleOptions } effect - transition options
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ constructor(type: 'scale', effect: ScaleOptions);
+
+ /**
+ * asymmetric TransitionEffect constructor
+ *
+ * @param { 'asymmetric' } type - transition type
+ * @param { AsymmetricTransitionOption } effect - transition options
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ constructor(type: 'asymmetric', effect: AsymmetricTransitionOption);
+
+ /**
+ * Set the animation of current transition effect
+ *
+ * @param { AnimateParam } value - animation parameters
+ * @returns { TransitionEffect }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ animation(value: AnimateParam): TransitionEffect;
+
+ /**
+ * Combines another transition effect
+ *
+ * @param { TransitionEffect } transitionEffect - transition effect which is be combined
+ * @returns { TransitionEffect } combined transition effect
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ combine(transitionEffect: TransitionEffect): TransitionEffect;
+}
+
+/**
+ * Define Preview property
+ *
+ * @interface PreviewParams
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Define Preview property
+ *
+ * @interface PreviewParams
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+interface PreviewParams {
+ /**
+ * Define Preview title
+ *
+ * @type { ?string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * Define Preview title
+ *
+ * @type { ?string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ title?: string;
/**
* Define Preview width
@@ -6825,7 +7745,8 @@ interface PreviewParams {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ItemDragInfo {
/**
@@ -6850,7 +7771,8 @@ declare interface ItemDragInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
x: number;
@@ -6876,7 +7798,8 @@ declare interface ItemDragInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
y: number;
}
@@ -6887,7 +7810,8 @@ declare interface ItemDragInfo {
* @enum { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum EffectType {
/**
@@ -6895,7 +7819,8 @@ declare enum EffectType {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DEFAULT = 0,
/**
@@ -6903,7 +7828,8 @@ declare enum EffectType {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
WINDOW_EFFECT = 1,
}
@@ -6914,7 +7840,8 @@ declare enum EffectType {
* @enum { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum PreDragStatus {
/**
@@ -6922,7 +7849,8 @@ declare enum PreDragStatus {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ACTION_DETECTING_STATUS = 0,
@@ -6931,7 +7859,8 @@ declare enum PreDragStatus {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
READY_TO_TRIGGER_DRAG_ACTION = 1,
@@ -6940,7 +7869,8 @@ declare enum PreDragStatus {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PREVIEW_LIFT_STARTED = 2,
@@ -6949,7 +7879,8 @@ declare enum PreDragStatus {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PREVIEW_LIFT_FINISHED = 3,
@@ -6958,7 +7889,8 @@ declare enum PreDragStatus {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PREVIEW_LANDING_STARTED = 4,
@@ -6967,7 +7899,8 @@ declare enum PreDragStatus {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PREVIEW_LANDING_FINISHED = 5,
@@ -6976,7 +7909,8 @@ declare enum PreDragStatus {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ACTION_CANCELED_BEFORE_DRAG = 6,
@@ -6985,7 +7919,8 @@ declare enum PreDragStatus {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PREPARING_FOR_DRAG_DETECTION = 7,
}
@@ -7012,7 +7947,8 @@ declare enum PreDragStatus {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface DragItemInfo {
/**
@@ -7037,7 +7973,8 @@ declare interface DragItemInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts{'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
pixelMap?: PixelMap;
@@ -7063,7 +8000,8 @@ declare interface DragItemInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
builder?: CustomBuilder;
@@ -7089,7 +8027,8 @@ declare interface DragItemInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
extraInfo?: string;
}
@@ -7130,7 +8069,8 @@ declare interface DragItemInfo {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
* @deprecated since 18
* @useinstead ohos.arkui.UIContext.UIContext#animateTo
*/
@@ -7144,7 +8084,8 @@ declare function animateTo(value: AnimateParam, event: () => void): void;
* and the system will automatically insert transition animations for state changes caused by the closure function.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare function animateToImmediately(value: AnimateParam, event: () => void): void;
@@ -7184,7 +8125,8 @@ declare function animateToImmediately(value: AnimateParam, event: () => void): v
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
* @deprecated since 18
* @useinstead ohos.arkui.UIContext.UIContext#vp2px
*/
@@ -7226,7 +8168,8 @@ declare function vp2px(value: number): number;
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
* @deprecated since 18
* @useinstead ohos.arkui.UIContext.UIContext#px2vp
*/
@@ -7417,7 +8360,8 @@ declare function px2lpx(value: number): number;
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare namespace focusControl {
/**
@@ -7445,7 +8389,8 @@ declare namespace focusControl {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
function requestFocus(value: string): boolean;
}
@@ -7467,6 +8412,17 @@ declare namespace focusControl {
*/
declare type PointerStyle = import('../api/@ohos.multimodalInput.pointer').default.PointerStyle;
+/**
+ * Import the PointerStyle type object for setCursor.
+ *
+ * @typedef { pointer.PointerStyle } PointerStyle
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare type PointerStyle = pointer.PointerStyle;
+
/**
* CursorControl
*
@@ -7480,7 +8436,8 @@ declare type PointerStyle = import('../api/@ohos.multimodalInput.pointer').defau
* @namespace cursorControl
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare namespace cursorControl {
@@ -7499,7 +8456,8 @@ declare namespace cursorControl {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
function setCursor(value: PointerStyle): void;
@@ -7516,7 +8474,8 @@ declare namespace cursorControl {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
function restoreDefault(): void;
}
@@ -7553,7 +8512,8 @@ declare namespace cursorControl {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface EventTarget {
/**
@@ -7588,7 +8548,8 @@ declare interface EventTarget {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
area: Area;
@@ -7600,7 +8561,8 @@ declare interface EventTarget {
* @crossplatform
* @form
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
id?: string;
}
@@ -7627,7 +8589,8 @@ declare interface EventTarget {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum SourceType {
/**
@@ -7649,7 +8612,8 @@ declare enum SourceType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Unknown,
@@ -7672,7 +8636,8 @@ declare enum SourceType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Mouse,
@@ -7695,7 +8660,8 @@ declare enum SourceType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TouchScreen,
}
@@ -7722,7 +8688,8 @@ declare enum SourceType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum SourceTool {
/**
@@ -7744,7 +8711,8 @@ declare enum SourceTool {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Unknown,
@@ -7767,7 +8735,8 @@ declare enum SourceTool {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Finger,
@@ -7790,7 +8759,8 @@ declare enum SourceTool {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Pen,
@@ -7800,7 +8770,8 @@ declare enum SourceTool {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
MOUSE,
@@ -7810,7 +8781,8 @@ declare enum SourceTool {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TOUCHPAD,
@@ -7820,7 +8792,8 @@ declare enum SourceTool {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
JOYSTICK,
}
@@ -7850,7 +8823,8 @@ declare enum SourceTool {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum RepeatMode {
/**
@@ -7875,7 +8849,8 @@ declare enum RepeatMode {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Repeat,
@@ -7901,7 +8876,8 @@ declare enum RepeatMode {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Stretch,
@@ -7927,7 +8903,8 @@ declare enum RepeatMode {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Round,
@@ -7953,7 +8930,8 @@ declare enum RepeatMode {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Space,
}
@@ -7983,7 +8961,8 @@ declare enum RepeatMode {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum BlurStyle {
/**
@@ -8008,7 +8987,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Thin,
@@ -8034,7 +9014,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Regular,
@@ -8060,7 +9041,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Thick,
@@ -8078,7 +9060,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BACKGROUND_THIN,
@@ -8096,7 +9079,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BACKGROUND_REGULAR,
@@ -8114,7 +9098,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BACKGROUND_THICK,
@@ -8132,7 +9117,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BACKGROUND_ULTRA_THICK,
@@ -8151,9 +9137,10 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
- */
- NONE,
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ NONE,
/**
* Defines the ultra thin component material.
@@ -8170,7 +9157,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COMPONENT_ULTRA_THIN = 8,
@@ -8189,7 +9177,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COMPONENT_THIN = 9,
@@ -8208,7 +9197,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COMPONENT_REGULAR = 10,
@@ -8227,7 +9217,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COMPONENT_THICK = 11,
@@ -8246,7 +9237,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COMPONENT_ULTRA_THICK = 12,
}
@@ -8258,7 +9250,8 @@ declare enum BlurStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum BlurStyleActivePolicy {
/**
@@ -8267,7 +9260,8 @@ declare enum BlurStyleActivePolicy {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
FOLLOWS_WINDOW_ACTIVE_STATE = 0,
@@ -8277,7 +9271,8 @@ declare enum BlurStyleActivePolicy {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ALWAYS_ACTIVE = 1,
@@ -8287,7 +9282,8 @@ declare enum BlurStyleActivePolicy {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ALWAYS_INACTIVE = 2,
}
@@ -8307,7 +9303,8 @@ declare enum BlurStyleActivePolicy {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum ThemeColorMode {
/**
@@ -8323,7 +9320,8 @@ declare enum ThemeColorMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SYSTEM,
@@ -8340,7 +9338,8 @@ declare enum ThemeColorMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
LIGHT,
@@ -8357,7 +9356,8 @@ declare enum ThemeColorMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DARK,
}
@@ -8377,7 +9377,8 @@ declare enum ThemeColorMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum AdaptiveColor {
/**
@@ -8393,7 +9394,8 @@ declare enum AdaptiveColor {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DEFAULT,
@@ -8410,7 +9412,8 @@ declare enum AdaptiveColor {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
AVERAGE,
}
@@ -8430,7 +9433,8 @@ declare enum AdaptiveColor {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum ModalTransition {
/**
@@ -8446,7 +9450,8 @@ declare enum ModalTransition {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DEFAULT,
@@ -8463,7 +9468,8 @@ declare enum ModalTransition {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
NONE,
@@ -8480,7 +9486,8 @@ declare enum ModalTransition {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ALPHA,
}
@@ -8502,7 +9509,8 @@ declare enum ModalTransition {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface BackgroundBlurStyleOptions extends BlurStyleOptions {
/**
@@ -8513,7 +9521,8 @@ declare interface BackgroundBlurStyleOptions extends BlurStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
policy?: BlurStyleActivePolicy;
@@ -8525,7 +9534,8 @@ declare interface BackgroundBlurStyleOptions extends BlurStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
inactiveColor?: ResourceColor;
}
@@ -8547,7 +9557,8 @@ declare interface BackgroundBlurStyleOptions extends BlurStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ForegroundBlurStyleOptions extends BlurStyleOptions {}
@@ -8567,7 +9578,8 @@ declare interface ForegroundBlurStyleOptions extends BlurStyleOptions {}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface BlurOptions {
/**
@@ -8583,7 +9595,8 @@ declare interface BlurOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
grayscale: [number, number];
}
@@ -8596,18 +9609,20 @@ declare interface BlurOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface SystemAdaptiveOptions {
/**
* Whether to disable system adaptive.
- *
+ *
* @type { ?boolean }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
disableSystemAdaptation?: boolean;
}
@@ -8627,7 +9642,8 @@ declare interface SystemAdaptiveOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface BlurStyleOptions {
/**
@@ -8646,7 +9662,8 @@ declare interface BlurStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
colorMode?: ThemeColorMode;
@@ -8666,7 +9683,8 @@ declare interface BlurStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
adaptiveColor?: AdaptiveColor;
@@ -8679,7 +9697,8 @@ declare interface BlurStyleOptions {
* @default 1.0
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
scale?: number;
@@ -8700,7 +9719,8 @@ declare interface BlurStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
blurOptions?: BlurOptions;
}
@@ -8720,7 +9740,8 @@ declare interface BlurStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface BackgroundEffectOptions {
@@ -8739,7 +9760,8 @@ declare interface BackgroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
radius: number;
@@ -8760,7 +9782,8 @@ declare interface BackgroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
saturation?: number;
@@ -8781,7 +9804,8 @@ declare interface BackgroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
brightness?: number;
@@ -8802,7 +9826,8 @@ declare interface BackgroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
color?: ResourceColor;
@@ -8823,7 +9848,8 @@ declare interface BackgroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
adaptiveColor?: AdaptiveColor;
@@ -8844,7 +9870,8 @@ declare interface BackgroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
blurOptions?: BlurOptions;
@@ -8856,7 +9883,8 @@ declare interface BackgroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
policy?: BlurStyleActivePolicy;
@@ -8868,7 +9896,8 @@ declare interface BackgroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
inactiveColor?: ResourceColor;
}
@@ -8880,10 +9909,11 @@ declare interface BackgroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ForegroundEffectOptions {
-
+
/**
* Define the radius size of ForegroundEffect.The range of this value is [0, ∞)
*
@@ -8891,7 +9921,8 @@ declare interface ForegroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
radius: number;
}
@@ -8911,7 +9942,8 @@ declare interface ForegroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface PickerTextStyle {
/**
@@ -8929,7 +9961,8 @@ declare interface PickerTextStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
color?: ResourceColor;
@@ -8950,7 +9983,8 @@ declare interface PickerTextStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
font?: Font;
}
@@ -8962,7 +9996,8 @@ declare interface PickerTextStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface PickerDialogButtonStyle {
/**
@@ -8972,7 +10007,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
type?: ButtonType;
@@ -8983,7 +10019,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
style?: ButtonStyleMode;
@@ -8994,7 +10031,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
role?: ButtonRole;
@@ -9005,7 +10043,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fontSize?: Length;
@@ -9016,7 +10055,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fontColor?: ResourceColor;
@@ -9027,7 +10067,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fontWeight?: FontWeight | number | string;
@@ -9038,7 +10079,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fontStyle?: FontStyle;
@@ -9049,7 +10091,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fontFamily?: Resource | string;
@@ -9060,7 +10103,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundColor?: ResourceColor;
@@ -9071,7 +10115,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
borderRadius?: Length | BorderRadiuses;
@@ -9082,7 +10127,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
primary?: boolean;
}
@@ -9102,7 +10148,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum ShadowType {
/**
@@ -9118,7 +10165,8 @@ declare enum ShadowType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COLOR,
@@ -9135,7 +10183,8 @@ declare enum ShadowType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BLUR,
}
@@ -9172,7 +10221,8 @@ declare enum ShadowType {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ShadowOptions {
/**
@@ -9207,7 +10257,8 @@ declare interface ShadowOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
radius: number | Resource;
@@ -9228,7 +10279,8 @@ declare interface ShadowOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
type?: ShadowType;
@@ -9264,7 +10316,8 @@ declare interface ShadowOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
color?: Color | string | Resource | ColoringStrategy;
@@ -9300,7 +10353,8 @@ declare interface ShadowOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
offsetX?: number | Resource;
@@ -9336,7 +10390,8 @@ declare interface ShadowOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
offsetY?: number | Resource;
@@ -9357,7 +10412,8 @@ declare interface ShadowOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fill?: boolean;
}
@@ -9377,7 +10433,8 @@ declare interface ShadowOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum ShadowStyle {
/**
@@ -9393,7 +10450,8 @@ declare enum ShadowStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OUTER_DEFAULT_XS,
@@ -9410,7 +10468,8 @@ declare enum ShadowStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OUTER_DEFAULT_SM,
@@ -9427,7 +10486,8 @@ declare enum ShadowStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OUTER_DEFAULT_MD,
@@ -9444,7 +10504,8 @@ declare enum ShadowStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OUTER_DEFAULT_LG,
@@ -9461,7 +10522,8 @@ declare enum ShadowStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OUTER_FLOATING_SM,
@@ -9478,7 +10540,8 @@ declare enum ShadowStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OUTER_FLOATING_MD,
}
@@ -9498,12 +10561,13 @@ declare enum ShadowStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface MultiShadowOptions {
/**
* Current shadow radius.
- *
+ *
* @type { ?(number | Resource) }
* @default 5
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -9512,19 +10576,20 @@ declare interface MultiShadowOptions {
*/
/**
* Current shadow radius.
- *
+ *
* @type { ?(number | Resource) }
* @default 20
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
radius?: number | Resource;
/**
* Current shadow offsetX.
- *
+ *
* @type { ?(number | Resource) }
* @default 5
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -9533,19 +10598,20 @@ declare interface MultiShadowOptions {
*/
/**
* Current shadow offsetX.
- *
+ *
* @type { ?(number | Resource) }
* @default 5
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
offsetX?: number | Resource;
/**
* Current shadow offsetY
- *
+ *
* @type { ?(number | Resource) }
* @default 5
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -9554,13 +10620,14 @@ declare interface MultiShadowOptions {
*/
/**
* Current shadow offsetY
- *
+ *
* @type { ?(number | Resource) }
* @default 5
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
offsetY?: number | Resource;
}
@@ -9579,7 +10646,8 @@ declare interface MultiShadowOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum SafeAreaType {
/**
@@ -9594,7 +10662,8 @@ declare enum SafeAreaType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SYSTEM,
@@ -9610,7 +10679,8 @@ declare enum SafeAreaType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CUTOUT,
@@ -9626,7 +10696,8 @@ declare enum SafeAreaType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
KEYBOARD
}
@@ -9645,7 +10716,8 @@ declare enum SafeAreaType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum SafeAreaEdge {
/**
@@ -9660,7 +10732,8 @@ declare enum SafeAreaEdge {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TOP,
@@ -9676,7 +10749,8 @@ declare enum SafeAreaEdge {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BOTTOM,
@@ -9692,7 +10766,8 @@ declare enum SafeAreaEdge {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
START,
@@ -9708,7 +10783,8 @@ declare enum SafeAreaEdge {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
END
}
@@ -9720,7 +10796,8 @@ declare enum SafeAreaEdge {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum LayoutSafeAreaType {
/**
@@ -9729,7 +10806,8 @@ declare enum LayoutSafeAreaType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SYSTEM = 0,
}
@@ -9741,7 +10819,8 @@ declare enum LayoutSafeAreaType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum LayoutSafeAreaEdge {
/**
@@ -9750,7 +10829,8 @@ declare enum LayoutSafeAreaEdge {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TOP = 0,
@@ -9760,7 +10840,8 @@ declare enum LayoutSafeAreaEdge {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BOTTOM = 1,
}
@@ -9780,7 +10861,8 @@ declare enum LayoutSafeAreaEdge {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum SheetSize {
/**
@@ -9796,7 +10878,8 @@ declare enum SheetSize {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
MEDIUM,
@@ -9813,7 +10896,8 @@ declare enum SheetSize {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
LARGE,
@@ -9830,11 +10914,26 @@ declare enum SheetSize {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
FIT_CONTENT = 2,
}
+/**
+ * The modifier key state query function block.
+ *
+ * @typedef { function } ModifierKeyStateGetter
+ * @param { Array } keys - Indicate the modifier keys to query.
+ * @returns { boolean } - the query result
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare type ModifierKeyStateGetter = (keys: Array) => boolean;
+
/**
* Defines the base event.
*
@@ -9867,7 +10966,8 @@ declare enum SheetSize {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface BaseEvent {
/**
@@ -9902,7 +11002,8 @@ declare interface BaseEvent {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
target: EventTarget;
@@ -9938,7 +11039,8 @@ declare interface BaseEvent {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
timestamp: number;
@@ -9974,7 +11076,8 @@ declare interface BaseEvent {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
source: SourceType;
@@ -9986,7 +11089,8 @@ declare interface BaseEvent {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
axisHorizontal?: number;
@@ -9998,7 +11102,8 @@ declare interface BaseEvent {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
axisVertical?: number;
@@ -10027,7 +11132,8 @@ declare interface BaseEvent {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
pressure: number;
@@ -10056,7 +11162,8 @@ declare interface BaseEvent {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
tiltX: number;
@@ -10085,7 +11192,8 @@ declare interface BaseEvent {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
tiltY: number;
@@ -10097,7 +11205,8 @@ declare interface BaseEvent {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'17','1.2':'20'}
+ * @arkts 1.1&1.2
*/
rollAngle?: number;
@@ -10126,7 +11235,8 @@ declare interface BaseEvent {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
sourceTool: SourceTool;
@@ -10143,6 +11253,18 @@ declare interface BaseEvent {
*/
getModifierKeyState?(keys: Array): boolean;
+ /**
+ * Query the modifier key press state, support 'ctrl'|'alt'|'shift'
+ *
+ * @type { ?ModifierKeyStateGetter }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ getModifierKeyState?: ModifierKeyStateGetter;
+
/**
* Indicates the ID of the input device that triggers the current event.
*
@@ -10150,7 +11272,8 @@ declare interface BaseEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
deviceId?: number;
@@ -10161,7 +11284,8 @@ declare interface BaseEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
targetDisplayId?: number;
}
@@ -10191,7 +11315,8 @@ declare interface BaseEvent {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface BorderImageOption {
/**
@@ -10229,7 +11354,8 @@ declare interface BorderImageOption {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
slice?: Length | EdgeWidths | LocalizedEdgeWidths,
@@ -10258,7 +11384,8 @@ declare interface BorderImageOption {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
repeat?: RepeatMode,
@@ -10291,6 +11418,19 @@ declare interface BorderImageOption {
*/
source?: string | Resource | LinearGradient,
+ /**
+ * Border image source
+ *
+ * @type { ?(string | Resource | LinearGradientOptions) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ source?: string | Resource | LinearGradientOptions,
+
/**
* Border image width
*
@@ -10326,7 +11466,8 @@ declare interface BorderImageOption {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
width?: Length | EdgeWidths | LocalizedEdgeWidths,
@@ -10365,7 +11506,8 @@ declare interface BorderImageOption {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
outset?: Length | EdgeWidths | LocalizedEdgeWidths,
@@ -10394,7 +11536,8 @@ declare interface BorderImageOption {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fill?: boolean
}
@@ -10406,7 +11549,8 @@ declare interface BorderImageOption {
* @crossplatform
* @form
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class LayoutPolicy {
/**
@@ -10418,8 +11562,9 @@ declare class LayoutPolicy {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
- * @atomicservice
- * @since 15
+ * @atomicservice
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
static readonly matchParent: LayoutPolicy;
}
@@ -10460,7 +11605,8 @@ declare class LayoutPolicy {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ClickEvent extends BaseEvent {
/**
@@ -10478,7 +11624,8 @@ declare interface ClickEvent extends BaseEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
displayX: number;
@@ -10497,7 +11644,8 @@ declare interface ClickEvent extends BaseEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
displayY: number;
@@ -10516,7 +11664,8 @@ declare interface ClickEvent extends BaseEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
windowX: number;
@@ -10535,7 +11684,8 @@ declare interface ClickEvent extends BaseEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
windowY: number;
@@ -10593,7 +11743,8 @@ declare interface ClickEvent extends BaseEvent {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
x: number;
@@ -10629,7 +11780,8 @@ declare interface ClickEvent extends BaseEvent {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
y: number;
@@ -10640,7 +11792,8 @@ declare interface ClickEvent extends BaseEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
hand?: InteractionHand;
@@ -10651,7 +11804,8 @@ declare interface ClickEvent extends BaseEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
preventDefault: () => void;
}
@@ -10671,7 +11825,8 @@ declare interface ClickEvent extends BaseEvent {
* @interface HoverEvent
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface HoverEvent extends BaseEvent {
/**
@@ -10680,7 +11835,8 @@ declare interface HoverEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
x?: number;
@@ -10690,7 +11846,8 @@ declare interface HoverEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
y?: number;
@@ -10700,7 +11857,8 @@ declare interface HoverEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
windowX?: number;
@@ -10710,7 +11868,8 @@ declare interface HoverEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
windowY?: number;
@@ -10720,7 +11879,8 @@ declare interface HoverEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
displayX?: number;
@@ -10730,7 +11890,8 @@ declare interface HoverEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
displayY?: number;
@@ -10747,7 +11908,8 @@ declare interface HoverEvent extends BaseEvent {
* @type { function }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
stopPropagation: () => void;
}
@@ -10767,7 +11929,8 @@ declare interface HoverEvent extends BaseEvent {
* @interface MouseEvent
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface MouseEvent extends BaseEvent {
/**
@@ -10783,7 +11946,8 @@ declare interface MouseEvent extends BaseEvent {
* @type { MouseButton }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
button: MouseButton;
@@ -10800,7 +11964,8 @@ declare interface MouseEvent extends BaseEvent {
* @type { MouseAction }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
action: MouseAction;
@@ -10817,7 +11982,8 @@ declare interface MouseEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
displayX: number;
@@ -10834,7 +12000,8 @@ declare interface MouseEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
displayY: number;
@@ -10851,7 +12018,8 @@ declare interface MouseEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
windowX: number;
@@ -10868,7 +12036,8 @@ declare interface MouseEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
windowY: number;
@@ -10907,7 +12076,8 @@ declare interface MouseEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
x: number;
@@ -10924,7 +12094,8 @@ declare interface MouseEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
y: number;
@@ -10941,7 +12112,8 @@ declare interface MouseEvent extends BaseEvent {
* @type { function }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
stopPropagation: () => void;
@@ -10952,7 +12124,8 @@ declare interface MouseEvent extends BaseEvent {
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
rawDeltaX?: number;
@@ -10963,17 +12136,19 @@ declare interface MouseEvent extends BaseEvent {
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
rawDeltaY?: number;
-
+
/**
* The pressed buttons of the mouse event.
*
* @type { ?MouseButton[] }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
pressedButtons?: MouseButton[];
}
@@ -10985,7 +12160,8 @@ declare interface MouseEvent extends BaseEvent {
* @typedef AccessibilityHoverEvent
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface AccessibilityHoverEvent extends BaseEvent {
/**
@@ -10994,7 +12170,8 @@ declare interface AccessibilityHoverEvent extends BaseEvent {
* @type { AccessibilityHoverType }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
type: AccessibilityHoverType;
@@ -11004,7 +12181,8 @@ declare interface AccessibilityHoverEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
x: number;
@@ -11014,7 +12192,8 @@ declare interface AccessibilityHoverEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
y: number;
@@ -11024,7 +12203,8 @@ declare interface AccessibilityHoverEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
displayX: number;
@@ -11034,7 +12214,8 @@ declare interface AccessibilityHoverEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
displayY: number;
@@ -11044,7 +12225,8 @@ declare interface AccessibilityHoverEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
windowX: number;
@@ -11054,7 +12236,8 @@ declare interface AccessibilityHoverEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
windowY: number;
}
@@ -11081,7 +12264,8 @@ declare interface AccessibilityHoverEvent extends BaseEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface TouchObject {
/**
@@ -11106,7 +12290,8 @@ declare interface TouchObject {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
type: TouchType;
@@ -11132,7 +12317,8 @@ declare interface TouchObject {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
id: number;
@@ -11151,7 +12337,8 @@ declare interface TouchObject {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
displayX: number;
@@ -11170,7 +12357,8 @@ declare interface TouchObject {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
displayY: number;
@@ -11189,7 +12377,8 @@ declare interface TouchObject {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
windowX: number;
@@ -11208,7 +12397,8 @@ declare interface TouchObject {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
windowY: number;
@@ -11256,7 +12446,8 @@ declare interface TouchObject {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
x: number;
@@ -11282,7 +12473,8 @@ declare interface TouchObject {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
y: number;
@@ -11293,7 +12485,8 @@ declare interface TouchObject {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
hand?: InteractionHand;
@@ -11304,7 +12497,8 @@ declare interface TouchObject {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
pressedTime?: number;
/**
@@ -11314,7 +12508,8 @@ declare interface TouchObject {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
pressure?: number;
@@ -11325,7 +12520,8 @@ declare interface TouchObject {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
width?: number;
@@ -11336,7 +12532,8 @@ declare interface TouchObject {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
height?: number;
}
@@ -11356,7 +12553,8 @@ declare interface TouchObject {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface HistoricalPoint {
/**
@@ -11374,7 +12572,8 @@ declare interface HistoricalPoint {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
touchObject: TouchObject;
@@ -11393,7 +12592,8 @@ declare interface HistoricalPoint {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
size: number;
@@ -11412,7 +12612,8 @@ declare interface HistoricalPoint {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
force: number;
@@ -11431,7 +12632,8 @@ declare interface HistoricalPoint {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
timestamp: number;
}
@@ -11461,7 +12663,8 @@ declare interface HistoricalPoint {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface TouchEvent extends BaseEvent {
/**
@@ -11486,7 +12689,8 @@ declare interface TouchEvent extends BaseEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
type: TouchType;
@@ -11512,7 +12716,8 @@ declare interface TouchEvent extends BaseEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
touches: TouchObject[];
@@ -11538,7 +12743,8 @@ declare interface TouchEvent extends BaseEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
changedTouches: TouchObject[];
@@ -11564,7 +12770,8 @@ declare interface TouchEvent extends BaseEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
stopPropagation: () => void;
@@ -11583,7 +12790,8 @@ declare interface TouchEvent extends BaseEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getHistoricalPoints(): Array;
@@ -11594,7 +12802,8 @@ declare interface TouchEvent extends BaseEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
preventDefault: () => void;
}
@@ -11606,7 +12815,8 @@ declare interface TouchEvent extends BaseEvent {
* @interface AxisEvent
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface AxisEvent extends BaseEvent {
/**
@@ -11615,7 +12825,8 @@ declare interface AxisEvent extends BaseEvent {
* @type { AxisAction }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
action: AxisAction;
@@ -11625,7 +12836,8 @@ declare interface AxisEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
displayX: number;
@@ -11635,7 +12847,8 @@ declare interface AxisEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
displayY: number;
@@ -11645,7 +12858,8 @@ declare interface AxisEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
windowX: number;
@@ -11655,7 +12869,8 @@ declare interface AxisEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
windowY: number;
@@ -11665,7 +12880,8 @@ declare interface AxisEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
x: number;
@@ -11675,7 +12891,8 @@ declare interface AxisEvent extends BaseEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
y: number;
@@ -11685,7 +12902,8 @@ declare interface AxisEvent extends BaseEvent {
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
scrollStep?: number;
@@ -11695,7 +12913,8 @@ declare interface AxisEvent extends BaseEvent {
* @type { Callback }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
propagation: Callback;
@@ -11705,7 +12924,8 @@ declare interface AxisEvent extends BaseEvent {
* @returns { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getHorizontalAxisValue(): number;
@@ -11715,7 +12935,8 @@ declare interface AxisEvent extends BaseEvent {
* @returns { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getVerticalAxisValue(): number;
}
@@ -11730,7 +12951,8 @@ declare interface AxisEvent extends BaseEvent {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type SizeChangeCallback = (oldValue: SizeOptions, newValue: SizeOptions) => void;
@@ -11745,7 +12967,8 @@ declare type SizeChangeCallback = (oldValue: SizeOptions, newValue: SizeOptions)
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type GestureRecognizerJudgeBeginCallback = (event: BaseGestureEvent, current: GestureRecognizer, recognizers: Array) => GestureJudgeResult;
@@ -11759,20 +12982,22 @@ declare type GestureRecognizerJudgeBeginCallback = (event: BaseGestureEvent, cur
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type ShouldBuiltInRecognizerParallelWithCallback = (current: GestureRecognizer, others: Array) => GestureRecognizer;
/**
* Defines the finish callback type used in transition.
- *
+ *
* @typedef { function } TransitionFinishCallback
* @param { boolean } transitionIn - a boolean value indicates whether it is the callback of transitionIn or transitionOut.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type TransitionFinishCallback = (transitionIn: boolean) => void;
@@ -11800,13 +13025,26 @@ declare type TransitionFinishCallback = (transitionIn: boolean) => void;
*/
declare type PixelMap = import('../api/@ohos.multimedia.image').default.PixelMap;
+/**
+ * Defines the PixelMap type object for ui component.
+ *
+ * @typedef { image.PixelMap } PixelMap
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare type PixelMap = image.PixelMap;
+
/**
* pixelmap object with release function.
*
* @interface PixelMapMock
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 7
+ * @since arkts {'1.1':'7','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface PixelMapMock {
/**
@@ -11814,7 +13052,8 @@ declare interface PixelMapMock {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 7
+ * @since arkts {'1.1':'7','1.2':'20'}
+ * @arkts 1.1&1.2
*/
release(): void;
}
@@ -11841,7 +13080,8 @@ declare interface PixelMapMock {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum DragBehavior {
/**
@@ -11863,7 +13103,8 @@ declare enum DragBehavior {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COPY,
/**
@@ -11885,7 +13126,8 @@ declare enum DragBehavior {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
MOVE
}
@@ -11909,6 +13151,18 @@ declare enum DragBehavior {
*/
declare type UnifiedData = import('../api/@ohos.data.unifiedDataChannel').default.UnifiedData;
+/**
+ * Import the UnifiedData type object for ui component.
+ *
+ * @typedef { unifiedDataChannel.UnifiedData } UnifiedData
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare type UnifiedData = unifiedDataChannel.UnifiedData;
+
/**
* Import the Summary type object for ui component.
*
@@ -11926,6 +13180,17 @@ declare type UnifiedData = import('../api/@ohos.data.unifiedDataChannel').defaul
*/
declare type Summary = import('../api/@ohos.data.unifiedDataChannel').default.Summary;
+/**
+ * Import the Summary type object for ui component.
+ *
+ * @typedef { unifiedDataChannel.Summary } Summary
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare type Summary = unifiedDataChannel.Summary;
+
/**
* Import the UniformDataType type object for ui component.
*
@@ -11954,6 +13219,17 @@ declare type UniformDataType = import('../api/@ohos.data.uniformTypeDescriptor')
*/
declare type DataSyncOptions = import('../api/@ohos.data.unifiedDataChannel').default.GetDataParams;
+/**
+ * Import the UniformDataType type object for ui component.
+ *
+ * @typedef { uniformTypeDescriptor.UniformDataType } UniformDataType
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare type UniformDataType = uniformTypeDescriptor.UniformDataType;
+
/**
* Enum for Drag Result.
*
@@ -11976,9 +13252,20 @@ declare type DataSyncOptions = import('../api/@ohos.data.unifiedDataChannel').de
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum DragResult {
+ /**
+ * If the drag is not finished and the result is not set by receiver, return DragResult.UNKNOWN.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.1&1.2
+ */
+ UNKNOWN = -1,
/**
* If the drag is successful, return DragResult.DRAG_SUCCESSFUL.
*
@@ -11998,7 +13285,8 @@ declare enum DragResult {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DRAG_SUCCESSFUL = 0,
/**
@@ -12020,7 +13308,8 @@ declare enum DragResult {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DRAG_FAILED = 1,
/**
@@ -12034,7 +13323,8 @@ declare enum DragResult {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DRAG_CANCELED = 2,
/**
@@ -12048,7 +13338,8 @@ declare enum DragResult {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DROP_ENABLED = 3,
/**
@@ -12062,14 +13353,15 @@ declare enum DragResult {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DROP_DISABLED = 4
}
/**
* Enum for BlendMode.
- * Blend modes for compositing current component
+ * Blend modes for compositing current component
* with overlapping content. Use overlapping content
* as dst, current component as src.
*
@@ -12090,7 +13382,8 @@ declare enum DragResult {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum BlendMode {
/**
@@ -12108,7 +13401,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
NONE = 0,
/**
@@ -12126,7 +13420,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CLEAR = 1,
/**
@@ -12144,7 +13439,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SRC = 2,
/**
@@ -12162,7 +13458,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DST = 3,
/**
@@ -12180,7 +13477,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SRC_OVER = 4,
/**
@@ -12198,7 +13496,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DST_OVER = 5,
/**
@@ -12216,7 +13515,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SRC_IN = 6,
/**
@@ -12234,7 +13534,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DST_IN = 7,
/**
@@ -12252,7 +13553,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SRC_OUT = 8,
/**
@@ -12270,7 +13572,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DST_OUT = 9,
/**
@@ -12288,7 +13591,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SRC_ATOP = 10,
/**
@@ -12306,7 +13610,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DST_ATOP = 11,
/**
@@ -12324,7 +13629,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
XOR = 12,
/**
@@ -12342,7 +13648,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PLUS = 13,
/**
@@ -12360,7 +13667,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
MODULATE = 14,
/**
@@ -12378,7 +13686,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SCREEN = 15,
/**
@@ -12396,7 +13705,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OVERLAY = 16,
/**
@@ -12414,7 +13724,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DARKEN = 17,
/**
@@ -12432,7 +13743,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
LIGHTEN = 18,
/**
@@ -12450,7 +13762,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COLOR_DODGE = 19,
/**
@@ -12468,7 +13781,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COLOR_BURN = 20,
/**
@@ -12486,7 +13800,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
HARD_LIGHT = 21,
/**
@@ -12504,7 +13819,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SOFT_LIGHT = 22,
/**
@@ -12522,7 +13838,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DIFFERENCE = 23,
/**
@@ -12540,7 +13857,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
EXCLUSION = 24,
/**
@@ -12558,7 +13876,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
MULTIPLY = 25,
/**
@@ -12576,7 +13895,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
HUE = 26,
/**
@@ -12594,7 +13914,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SATURATION = 27,
/**
@@ -12612,7 +13933,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COLOR = 28,
/**
@@ -12630,7 +13952,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
LUMINOSITY = 29
}
@@ -12656,7 +13979,8 @@ declare enum BlendMode {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum BlendApplyType {
/**
@@ -12674,7 +13998,8 @@ declare enum BlendApplyType {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
FAST = 0,
@@ -12695,7 +14020,8 @@ declare enum BlendApplyType {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OFFSCREEN = 1,
}
@@ -12722,7 +14048,8 @@ declare enum BlendApplyType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface DragEvent {
/**
@@ -12747,7 +14074,8 @@ declare interface DragEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getDisplayX(): number;
@@ -12773,7 +14101,8 @@ declare interface DragEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getDisplayY(): number;
@@ -12799,7 +14128,8 @@ declare interface DragEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getWindowX(): number;
@@ -12825,7 +14155,8 @@ declare interface DragEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getWindowY(): number;
@@ -12873,7 +14204,8 @@ declare interface DragEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
dragBehavior: DragBehavior;
@@ -12890,7 +14222,8 @@ declare interface DragEvent {
* @type { boolean }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
useCustomDropAnimation: boolean;
@@ -12909,7 +14242,8 @@ declare interface DragEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
setData(unifiedData: UnifiedData): void;
@@ -12932,7 +14266,8 @@ declare interface DragEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getData(): UnifiedData;
@@ -12951,7 +14286,8 @@ declare interface DragEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getSummary(): Summary;
@@ -12977,7 +14313,8 @@ declare interface DragEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
setResult(dragResult: DragResult): void;
@@ -13003,7 +14340,8 @@ declare interface DragEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getResult(): DragResult;
@@ -13029,7 +14367,8 @@ declare interface DragEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getPreviewRect(): Rectangle;
@@ -13048,7 +14387,8 @@ declare interface DragEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getVelocityX(): number;
@@ -13067,7 +14407,8 @@ declare interface DragEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getVelocityY(): number;
@@ -13086,7 +14427,8 @@ declare interface DragEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getVelocity(): number;
@@ -13113,6 +14455,18 @@ declare interface DragEvent {
*/
getModifierKeyState?(keys: Array): boolean;
+ /**
+ * Query the modifier key press state, support 'ctrl'|'alt'|'shift'
+ *
+ * @type { ?ModifierKeyStateGetter }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ getModifierKeyState?: ModifierKeyStateGetter;
+
/**
* Setup one drop animation execution callback, which will be triggered by system when user drops.
* Use this way to implement the custom drop animation instead of doing it in onDrop, as the system
@@ -13125,7 +14479,8 @@ declare interface DragEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
executeDropAnimation(customDropAnimation: Callback): void;
@@ -13152,7 +14507,8 @@ declare interface DragEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type OnDragEventCallback = (event: DragEvent, extraParams?: string) => void;
@@ -13163,7 +14519,8 @@ declare type OnDragEventCallback = (event: DragEvent, extraParams?: string) => v
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface DropOptions {
@@ -13181,7 +14538,8 @@ declare interface DropOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
disableDataPrefetch?: boolean;
}
@@ -13225,7 +14583,8 @@ declare type IntentionCode = import('../api/@ohos.multimodalInput.intentionCode'
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface KeyEvent {
/**
@@ -13250,7 +14609,8 @@ declare interface KeyEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
type: KeyType;
@@ -13276,7 +14636,8 @@ declare interface KeyEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
keyCode: number;
@@ -13302,7 +14663,8 @@ declare interface KeyEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
keyText: string;
@@ -13328,7 +14690,8 @@ declare interface KeyEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
keySource: KeySource;
@@ -13354,7 +14717,8 @@ declare interface KeyEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
deviceId: number;
@@ -13383,7 +14747,8 @@ declare interface KeyEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
metaKey: number;
@@ -13409,7 +14774,8 @@ declare interface KeyEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
timestamp: number;
@@ -13435,7 +14801,8 @@ declare interface KeyEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
stopPropagation: () => void;
@@ -13454,7 +14821,8 @@ declare interface KeyEvent {
* @default IntentionCode.INTENTION_UNKNOWN
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
intentionCode: IntentionCode;
@@ -13481,13 +14849,26 @@ declare interface KeyEvent {
*/
getModifierKeyState?(keys: Array): boolean;
+ /**
+ * Query the modifier key press state, support 'ctrl'|'alt'|'shift'
+ *
+ * @type { ?ModifierKeyStateGetter }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ getModifierKeyState?: ModifierKeyStateGetter;
+
/**
* Unicode of a key
*
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
unicode?: number;
}
@@ -13499,7 +14880,8 @@ declare interface KeyEvent {
* @interface FocusAxisEvent
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface FocusAxisEvent extends BaseEvent {
/**
@@ -13508,7 +14890,8 @@ declare interface FocusAxisEvent extends BaseEvent {
* @type { Map }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
axisMap: Map;
@@ -13518,7 +14901,8 @@ declare interface FocusAxisEvent extends BaseEvent {
* @type { Callback }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
stopPropagation: Callback;
}
@@ -13529,7 +14913,8 @@ declare interface FocusAxisEvent extends BaseEvent {
* @interface CrownEvent
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface CrownEvent {
/**
@@ -13538,7 +14923,8 @@ declare interface CrownEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
timestamp: number;
@@ -13548,7 +14934,8 @@ declare interface CrownEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
angularVelocity: number;
@@ -13558,7 +14945,8 @@ declare interface CrownEvent {
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
degree: number;
@@ -13568,7 +14956,8 @@ declare interface CrownEvent {
* @type { CrownAction }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
action: CrownAction;
@@ -13578,7 +14967,8 @@ declare interface CrownEvent {
* @type { Callback }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
stopPropagation: Callback;
}
@@ -13598,7 +14988,8 @@ declare interface CrownEvent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface BindOptions {
/**
@@ -13616,7 +15007,8 @@ declare interface BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundColor?: ResourceColor;
@@ -13635,7 +15027,8 @@ declare interface BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onAppear?: () => void;
@@ -13654,7 +15047,8 @@ declare interface BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onDisappear?: () => void;
@@ -13665,7 +15059,8 @@ declare interface BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWillAppear?: () => void;
@@ -13676,7 +15071,8 @@ declare interface BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWillDisappear?: () => void;
}
@@ -13714,6 +15110,42 @@ declare interface DismissContentCoverAction {
reason: DismissReason;
}
+/**
+ * Component content cover dismiss
+ *
+ * @interface DismissContentCoverAction
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @arkts 1.2
+ * @since 20
+ */
+declare interface DismissContentCoverAction {
+ /**
+ * Defines content cover dismiss function
+ *
+ * @type { VoidCallback }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @arkts 1.2
+ * @since 20
+ */
+ dismiss: VoidCallback;
+
+ /**
+ * Defines content cover dismiss reason
+ *
+ * @type { DismissReason }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @arkts 1.2
+ * @since 20
+ */
+ reason: DismissReason;
+}
+
/**
* Component content cover options
*
@@ -13731,7 +15163,8 @@ declare interface DismissContentCoverAction {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ContentCoverOptions extends BindOptions {
/**
@@ -13751,7 +15184,8 @@ declare interface ContentCoverOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
modalTransition?: ModalTransition,
@@ -13762,7 +15196,8 @@ declare interface ContentCoverOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWillDismiss?: Callback;
@@ -13773,7 +15208,8 @@ declare interface ContentCoverOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
transition?: TransitionEffect;
}
@@ -13793,7 +15229,8 @@ declare interface ContentCoverOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface SheetTitleOptions {
/**
@@ -13811,7 +15248,8 @@ declare interface SheetTitleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
title: ResourceStr;
@@ -13830,7 +15268,8 @@ declare interface SheetTitleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
subtitle?: ResourceStr;
}
@@ -13850,7 +15289,8 @@ declare interface SheetTitleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum SheetType {
/**
@@ -13866,8 +15306,9 @@ declare enum SheetType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
- */
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
BOTTOM = 0,
/**
@@ -13883,7 +15324,8 @@ declare enum SheetType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CENTER = 1,
@@ -13900,7 +15342,8 @@ declare enum SheetType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
POPUP = 2,
}
@@ -13912,7 +15355,8 @@ declare enum SheetType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum SheetMode {
/**
@@ -13921,7 +15365,8 @@ declare enum SheetMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OVERLAY = 0,
@@ -13931,7 +15376,8 @@ declare enum SheetMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
EMBEDDED = 1,
}
@@ -13943,7 +15389,8 @@ declare enum SheetMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum ScrollSizeMode {
/**
@@ -13952,7 +15399,8 @@ declare enum ScrollSizeMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
FOLLOW_DETENT = 0,
@@ -13962,7 +15410,8 @@ declare enum ScrollSizeMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CONTINUOUS = 1,
}
@@ -13974,7 +15423,8 @@ declare enum ScrollSizeMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum SheetKeyboardAvoidMode {
/**
@@ -13983,7 +15433,8 @@ declare enum SheetKeyboardAvoidMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
NONE = 0,
@@ -13994,7 +15445,8 @@ declare enum SheetKeyboardAvoidMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TRANSLATE_AND_RESIZE = 1,
@@ -14004,7 +15456,8 @@ declare enum SheetKeyboardAvoidMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
RESIZE_ONLY = 2,
@@ -14015,7 +15468,8 @@ declare enum SheetKeyboardAvoidMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TRANSLATE_AND_SCROLL = 3,
}
@@ -14058,6 +15512,30 @@ declare interface SheetDismiss {
dismiss: () => void;
}
+/**
+ * Component sheet dismiss
+ *
+ * @interface SheetDismiss
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare interface SheetDismiss {
+ /**
+ * Defines sheet dismiss function
+ *
+ * @type { VoidCallback }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ dismiss: VoidCallback;
+}
+
/**
* Component sheet dismiss
*
@@ -14093,7 +15571,44 @@ declare interface DismissSheetAction {
}
/**
- * Defines sheet spring back action
+ * Component sheet dismiss
+ *
+ * @interface DismissSheetAction
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare interface DismissSheetAction {
+
+ /**
+ * Defines sheet dismiss function
+ *
+ * @type { VoidCallback }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ dismiss: VoidCallback;
+
+ /**
+ * Dismiss reason type.
+ *
+ * @type { DismissReason }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ reason: DismissReason;
+}
+
+/**
+ * Defines sheet spring back action
*
* @interface SpringBackAction
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -14111,7 +15626,31 @@ declare interface SpringBackAction {
* @atomicservice
* @since 12
*/
- springBack: Callback;
+ springBack: Callback;
+}
+
+/**
+ * Defines sheet spring back action
+ *
+ * @interface SpringBackAction
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare interface SpringBackAction {
+ /**
+ * Defines spring back function
+ *
+ * @type { VoidCallback }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ springBack: VoidCallback;
}
/**
@@ -14131,7 +15670,8 @@ declare interface SpringBackAction {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface SheetOptions extends BindOptions {
/**
@@ -14151,7 +15691,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
height?: SheetSize | Length;
@@ -14172,13 +15713,14 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
dragBar?: boolean;
/**
* Defines sheet maskColor
- *
+ *
* @type { ?ResourceColor }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -14186,12 +15728,13 @@ declare interface SheetOptions extends BindOptions {
*/
/**
* Defines sheet maskColor
- *
+ *
* @type { ?ResourceColor }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
maskColor?: ResourceColor;
@@ -14214,9 +15757,21 @@ declare interface SheetOptions extends BindOptions {
*/
detents?: [(SheetSize | Length), (SheetSize | Length)?, (SheetSize | Length)?];
+ /**
+ * Defines sheet detents
+ *
+ * @type { ?[(SheetSize | Length), (SheetSize | Length)?, (SheetSize | Length)?] }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ detents?: [(SheetSize | Length), SheetSize | Length | undefined, SheetSize | Length | undefined];
+
/**
* Defines sheet background blur Style
- *
+ *
* @type { ?BlurStyle }
* @default BlurStyle.NONE
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -14225,13 +15780,14 @@ declare interface SheetOptions extends BindOptions {
*/
/**
* Defines sheet background blur Style
- *
+ *
* @type { ?BlurStyle }
* @default BlurStyle.NONE
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
blurStyle?: BlurStyle;
@@ -14252,7 +15808,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
showClose?: boolean | Resource;
@@ -14271,7 +15828,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
preferType?: SheetType;
@@ -14290,7 +15848,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
title?: SheetTitleOptions | CustomBuilder;
@@ -14309,7 +15868,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
shouldDismiss?: (sheetDismiss: SheetDismiss) => void;
@@ -14320,7 +15880,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWillDismiss?: Callback;
@@ -14331,7 +15892,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWillSpringBackWhenDismiss?: Callback;
@@ -14352,7 +15914,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableOutsideInteractive?: boolean;
@@ -14363,7 +15926,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
width?: Dimension;
@@ -14374,7 +15938,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
borderWidth?: Dimension | EdgeWidths | LocalizedEdgeWidths;
@@ -14385,7 +15950,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
borderColor?: ResourceColor | EdgeColors | LocalizedEdgeColors;
@@ -14396,7 +15962,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
borderStyle?: BorderStyle | EdgeStyles;
@@ -14407,7 +15974,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
shadow?: ShadowOptions | ShadowStyle;
@@ -14418,7 +15986,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onHeightDidChange?: Callback;
@@ -14430,7 +15999,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
mode?: SheetMode;
@@ -14442,7 +16012,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
scrollSizeMode?: ScrollSizeMode;
@@ -14454,7 +16025,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onDetentsDidChange?: Callback;
@@ -14465,7 +16037,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWidthDidChange?: Callback;
@@ -14476,7 +16049,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onTypeDidChange?: Callback;
@@ -14487,7 +16061,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
uiContext?: UIContext;
@@ -14499,7 +16074,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
keyboardAvoidMode?: SheetKeyboardAvoidMode;
@@ -14511,7 +16087,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableHoverMode?: boolean;
@@ -14523,7 +16100,8 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
hoverModeArea?: HoverModeAreaType;
@@ -14533,7 +16111,8 @@ declare interface SheetOptions extends BindOptions {
* @type { ?Position }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
offset?: Position
@@ -14545,18 +16124,20 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
effectEdge?: number
/**
* Defines sheet radius
- *
+ *
* @type { ?(LengthMetrics | BorderRadiuses | LocalizedBorderRadiuses) }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
radius?: LengthMetrics | BorderRadiuses | LocalizedBorderRadiuses;
@@ -14568,19 +16149,21 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
detentSelection?: SheetSize | Length;
/**
- * Whether to display in the sub window
+ * Whether to display in the sub window
*
- * @type { ?boolean }
+ * @type { ?boolean }
* @default false
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
showInSubWindow?: boolean;
@@ -14593,23 +16176,38 @@ declare interface SheetOptions extends BindOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
placement?: Placement;
/**
* placement On target node
*
- * @type { ?boolean }
+ * @type { ?boolean }
* @default true
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
placementOnTarget?: boolean;
}
+/**
+ * The custom styles function block.
+ *
+ * @typedef { function } CustomStyles
+ * @param { CommonMethod } instance - The component instance which can be used to set common attributes.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare type CustomStyles = (instance: CommonMethod) => void;
+
/**
* Component State Styles.
*
@@ -14642,7 +16240,8 @@ declare interface SheetOptions extends BindOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface StateStyles {
/**
@@ -14681,6 +16280,20 @@ declare interface StateStyles {
*/
normal?: any;
+
+ /**
+ * Defines normal state styles.
+ *
+ * @type { ?CustomStyles }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ normal?: CustomStyles;
+
/**
* Defines pressed state styles.
*
@@ -14717,6 +16330,19 @@ declare interface StateStyles {
*/
pressed?: any;
+ /**
+ * Defines pressed state styles.
+ *
+ * @type { ?CustomStyles }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ pressed?: CustomStyles;
+
/**
* Defines disabled state styles.
*
@@ -14753,6 +16379,19 @@ declare interface StateStyles {
*/
disabled?: any;
+ /**
+ * Defines disabled state styles.
+ *
+ * @type { ?CustomStyles }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ disabled?: CustomStyles;
+
/**
* Defines focused state styles.
*
@@ -14789,6 +16428,19 @@ declare interface StateStyles {
*/
focused?: any;
+ /**
+ * Defines focused state styles.
+ *
+ * @type { ?CustomStyles }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ focused?: CustomStyles;
+
/**
* Defines clicked state styles.
*
@@ -14825,6 +16477,19 @@ declare interface StateStyles {
*/
clicked?: any;
+ /**
+ * Defines clicked state styles.
+ *
+ * @type { ?CustomStyles }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ clicked?: CustomStyles;
+
/**
* Defines selected state styles.
*
@@ -14845,6 +16510,20 @@ declare interface StateStyles {
* @since 11
*/
selected?: object;
+
+ /**
+ * Defines selected state styles.
+ *
+ * @type { ?CustomStyles }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ selected?: CustomStyles;
+
}
/**
@@ -14862,7 +16541,8 @@ declare interface StateStyles {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface PopupMessageOptions {
/**
@@ -14880,7 +16560,8 @@ declare interface PopupMessageOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
textColor?: ResourceColor;
@@ -14899,7 +16580,8 @@ declare interface PopupMessageOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
font?: Font;
}
@@ -14911,16 +16593,18 @@ declare interface PopupMessageOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
-declare enum DismissReason {
+declare enum DismissReason {
/**
* Press back
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PRESS_BACK = 0,
@@ -14930,7 +16614,8 @@ declare enum DismissReason {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TOUCH_OUTSIDE = 1,
@@ -14940,7 +16625,8 @@ declare enum DismissReason {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CLOSE_BUTTON = 2,
@@ -14950,7 +16636,8 @@ declare enum DismissReason {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SLIDE_DOWN = 3
}
@@ -14962,7 +16649,8 @@ declare enum DismissReason {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface DismissPopupAction {
/**
@@ -14972,7 +16660,8 @@ declare interface DismissPopupAction {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
dismiss: Callback;
@@ -14983,7 +16672,8 @@ declare interface DismissPopupAction {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
reason: DismissReason;
}
@@ -14995,17 +16685,20 @@ declare interface DismissPopupAction {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface PopupStateChangeParam {
/**
* is Visible.
+ * Anonymous Object Rectification.
*
* @type { boolean }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
isVisible: boolean;
}
@@ -15018,7 +16711,8 @@ declare interface PopupStateChangeParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type PopupStateChangeCallback = (event: PopupStateChangeParam) => void;
@@ -15029,7 +16723,8 @@ declare type PopupStateChangeCallback = (event: PopupStateChangeParam) => void;
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface PopupMaskType {
/**
@@ -15039,7 +16734,8 @@ declare interface PopupMaskType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
color: ResourceColor;
}
@@ -15051,7 +16747,8 @@ declare interface PopupMaskType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface PopupCommonOptions {
/**
@@ -15062,7 +16759,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
placement?: Placement;
@@ -15073,7 +16771,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
popupColor?: ResourceColor;
@@ -15085,7 +16784,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableArrow?: boolean;
@@ -15097,18 +16797,20 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
autoCancel?: boolean;
/**
* on State Change
*
- * @type { ?function }
+ * @type { ?PopupStateChangeCallback }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onStateChange?: PopupStateChangeCallback;
@@ -15119,7 +16821,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arrowOffset?: Length;
@@ -15130,7 +16833,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
showInSubWindow?: boolean;
@@ -15143,7 +16847,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
mask?: boolean | PopupMaskType;
@@ -15154,7 +16859,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
targetSpace?: Length;
@@ -15165,7 +16871,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
offset?: Position;
@@ -15176,7 +16883,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
width?: Dimension;
@@ -15187,7 +16895,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arrowPointPosition?: ArrowPointPosition;
@@ -15199,7 +16908,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arrowWidth?: Dimension;
@@ -15211,7 +16921,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arrowHeight?: Dimension;
@@ -15223,7 +16934,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
radius?: Dimension;
@@ -15235,7 +16947,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
shadow?: ShadowOptions | ShadowStyle;
@@ -15247,7 +16960,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundBlurStyle?: BlurStyle;
@@ -15259,7 +16973,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
focusable?: boolean;
@@ -15270,7 +16985,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
transition?: TransitionEffect;
@@ -15282,7 +16998,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWillDismiss?: boolean | Callback;
@@ -15294,7 +17011,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableHoverMode?: boolean;
@@ -15306,7 +17024,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
followTransformOfTarget?: boolean;
}
@@ -15318,7 +17037,8 @@ declare interface PopupCommonOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface TipsOptions {
@@ -15329,7 +17049,8 @@ declare interface TipsOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
appearingTime?: number;
@@ -15340,7 +17061,8 @@ declare interface TipsOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
disappearingTime?: number;
@@ -15351,7 +17073,8 @@ declare interface TipsOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
appearingTimeWithContinuousOperation?: number;
@@ -15362,7 +17085,8 @@ declare interface TipsOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
disappearingTimeWithContinuousOperation?: number;
@@ -15374,7 +17098,8 @@ declare interface TipsOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableArrow?: boolean;
@@ -15385,7 +17110,8 @@ declare interface TipsOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arrowPointPosition?: ArrowPointPosition;
@@ -15397,7 +17123,8 @@ declare interface TipsOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arrowWidth?: Dimension;
@@ -15409,11 +17136,49 @@ declare interface TipsOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arrowHeight?: Dimension;
}
+/**
+ * Defines the popup button.
+ *
+ * @interface PopupButton
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare interface PopupButton {
+
+ /**
+ * Button text value
+ *
+ * @type { string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ value: string;
+
+ /**
+ * action
+ *
+ * @type { Callback }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ action: Callback;
+}
+
/**
* Defines the popup options.
*
@@ -15436,7 +17201,8 @@ declare interface TipsOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface PopupOptions {
/**
@@ -15461,7 +17227,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
message: string;
@@ -15495,7 +17262,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
placement?: Placement;
@@ -15577,6 +17345,17 @@ declare interface PopupOptions {
action: () => void;
};
+ /**
+ * The first button.
+ *
+ * @type { ?PopupButton }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ primaryButton?: PopupButton;
/**
* The second button.
*
@@ -15655,6 +17434,18 @@ declare interface PopupOptions {
action: () => void;
};
+ /**
+ * The second button.
+ *
+ * @type { ?PopupButton }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ secondaryButton?:PopupButton
+
/**
* on State Change
*
@@ -15700,6 +17491,18 @@ declare interface PopupOptions {
isVisible: boolean
}) => void;
+ /**
+ * on State Change
+ *
+ * @type { ?PopupStateChangeCallback }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ onStateChange?: PopupStateChangeCallback;
+
/**
* The offset of the sharp corner of popup.
*
@@ -15722,7 +17525,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arrowOffset?: Length;
@@ -15748,7 +17552,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
showInSubWindow?: boolean;
@@ -15775,6 +17580,20 @@ declare interface PopupOptions {
*/
mask?: boolean | { color: ResourceColor };
+ /**
+ * The mask to block gesture events of popup.
+ * When mask is set false, gesture events are not blocked.
+ * When mask is set true, gesture events are blocked and mask color is transparent.
+ *
+ * @type { ?(boolean | PopupMaskType) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ mask?: boolean | PopupMaskType;
+
/**
* Sets the options of popup message.
*
@@ -15790,7 +17609,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
messageOptions?: PopupMessageOptions
@@ -15809,7 +17629,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
targetSpace?: Length
@@ -15829,7 +17650,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableArrow?: boolean;
/**
@@ -15847,7 +17669,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
offset?: Position
@@ -15866,7 +17689,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
popupColor?: Color | string | Resource | number;
@@ -15887,7 +17711,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
autoCancel?: boolean;
@@ -15906,7 +17731,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
width?: Dimension;
@@ -15925,7 +17751,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arrowPointPosition?: ArrowPointPosition;
@@ -15946,7 +17773,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arrowWidth?: Dimension;
@@ -15967,7 +17795,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arrowHeight?: Dimension;
@@ -15988,7 +17817,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
radius?: Dimension;
@@ -16009,7 +17839,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
shadow?: ShadowOptions | ShadowStyle;
@@ -16030,7 +17861,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundBlurStyle?: BlurStyle;
@@ -16041,7 +17873,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
transition?: TransitionEffect;
@@ -16052,10 +17885,11 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWillDismiss?: boolean | Callback;
-
+
/**
* Determine if it is compatible popup's half folded.
*
@@ -16064,7 +17898,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableHoverMode?: boolean;
@@ -16076,7 +17911,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
followTransformOfTarget?: boolean;
@@ -16088,7 +17924,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
keyboardAvoidMode?: KeyboardAvoidMode;
}
@@ -16115,7 +17952,8 @@ declare interface PopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface CustomPopupOptions {
/**
@@ -16140,7 +17978,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
builder: CustomBuilder;
@@ -16166,7 +18005,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
placement?: Placement;
@@ -16203,7 +18043,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
popupColor?: Color | string | Resource | number;
@@ -16229,7 +18070,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableArrow?: boolean;
@@ -16255,7 +18097,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
autoCancel?: boolean;
@@ -16304,6 +18147,18 @@ declare interface CustomPopupOptions {
isVisible: boolean
}) => void;
+ /**
+ * on State Change
+ *
+ * @type { ?PopupStateChangeCallback }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ onStateChange?: PopupStateChangeCallback;
+
/**
* The offset of the sharp corner of popup.
*
@@ -16326,7 +18181,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arrowOffset?: Length;
@@ -16352,7 +18208,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
showInSubWindow?: boolean;
@@ -16379,6 +18236,20 @@ declare interface CustomPopupOptions {
*/
mask?: boolean | { color: ResourceColor };
+ /**
+ * The mask to block gesture events of popup.
+ * When mask is set false, gesture events are not blocked.
+ * When mask is set true, gesture events are blocked and mask color is transparent.
+ *
+ * @type { ?(boolean | PopupMaskType) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ mask?: boolean | PopupMaskType;
+
/**
* Sets the space of between the popup and target.
*
@@ -16394,7 +18265,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
targetSpace?: Length
@@ -16413,7 +18285,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
offset?: Position
@@ -16432,7 +18305,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
width?: Dimension;
@@ -16451,7 +18325,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arrowPointPosition?: ArrowPointPosition;
@@ -16472,7 +18347,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arrowWidth?: Dimension;
@@ -16493,7 +18369,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arrowHeight?: Dimension;
@@ -16514,7 +18391,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
radius?: Dimension;
@@ -16535,7 +18413,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
shadow?: ShadowOptions | ShadowStyle;
@@ -16556,7 +18435,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundBlurStyle?: BlurStyle;
@@ -16577,7 +18457,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
focusable?: boolean;
@@ -16588,7 +18469,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
transition?: TransitionEffect;
@@ -16599,7 +18481,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWillDismiss?: boolean | Callback;
@@ -16611,7 +18494,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableHoverMode?: boolean;
@@ -16623,7 +18507,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
followTransformOfTarget?: boolean;
@@ -16635,7 +18520,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
keyboardAvoidMode?: KeyboardAvoidMode;
}
@@ -16655,7 +18541,8 @@ declare interface CustomPopupOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum MenuPreviewMode {
/**
@@ -16671,8 +18558,9 @@ declare enum MenuPreviewMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
- */
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
NONE = 0,
/**
* Defines image type preview content.
@@ -16687,7 +18575,8 @@ declare enum MenuPreviewMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
IMAGE = 1
}
@@ -16711,6 +18600,18 @@ declare enum MenuPreviewMode {
*/
declare type AnimationRange = [from: T, to: T];
+/**
+ * Defines the animator range of start and end property.
+ *
+ * @typedef { [number, number] } AnimationNumberRange
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare type AnimationNumberRange = [number, number];
+
/**
* Defines the ContextMenu's preview animator options.
*
@@ -16726,7 +18627,8 @@ declare type AnimationRange = [from: T, to: T];
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface ContextMenuAnimationOptions {
/**
@@ -16749,6 +18651,19 @@ interface ContextMenuAnimationOptions {
* @since 12
*/
scale?: AnimationRange;
+
+ /**
+ * Sets the start animator scale and end animator scale.
+ *
+ * @type { ?AnimationNumberRange }
+ * @default -
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ scale?: AnimationNumberRange;
/**
* Defines the transition effect of menu preview opening and closing.
*
@@ -16756,7 +18671,8 @@ interface ContextMenuAnimationOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
transition?: TransitionEffect;
@@ -16770,6 +18686,18 @@ interface ContextMenuAnimationOptions {
* @since 12
*/
hoverScale?: AnimationRange;
+
+ /**
+ * Sets the scale start and end animator of the image displayed before the custom builder preview is displayed.
+ *
+ * @type { ?AnimationNumberRange }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ hoverScale?: AnimationNumberRange;
}
/**
@@ -16779,7 +18707,8 @@ interface ContextMenuAnimationOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
type BorderRadiusType = Length | BorderRadiuses | LocalizedBorderRadiuses;
@@ -16790,7 +18719,8 @@ type BorderRadiusType = Length | BorderRadiuses | LocalizedBorderRadiuses;
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum HapticFeedbackMode {
/**
@@ -16799,8 +18729,9 @@ declare enum HapticFeedbackMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
- */
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
DISABLED = 0,
/**
* Defines menu always haptic feedback.
@@ -16808,7 +18739,8 @@ declare enum HapticFeedbackMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ENABLED = 1,
/**
@@ -16817,7 +18749,8 @@ declare enum HapticFeedbackMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
AUTO = 2
}
@@ -16837,7 +18770,8 @@ declare enum HapticFeedbackMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ContextMenuOptions {
/**
@@ -16857,7 +18791,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
offset?: Position;
@@ -16878,7 +18813,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
placement?: Placement;
@@ -16898,7 +18834,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableArrow?: boolean;
@@ -16918,13 +18855,14 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
arrowOffset?: Length;
-
+
/**
* The preview content of context menu.
- *
+ *
* @type { ?(MenuPreviewMode | CustomBuilder) }
* @default MenuPreviewMode.NONE
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -16933,13 +18871,14 @@ declare interface ContextMenuOptions {
*/
/**
* The preview content of context menu.
- *
+ *
* @type { ?(MenuPreviewMode | CustomBuilder) }
* @default MenuPreviewMode.NONE
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
preview?: MenuPreviewMode | CustomBuilder;
@@ -16950,7 +18889,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
previewBorderRadius?: BorderRadiusType;
@@ -16961,7 +18901,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
borderRadius?: Length | BorderRadiuses | LocalizedBorderRadiuses;
@@ -16980,7 +18921,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onAppear?: () => void;
@@ -16999,7 +18941,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onDisappear?: () => void;
@@ -17018,7 +18961,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
aboutToAppear?: () => void;
@@ -17037,10 +18981,11 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
aboutToDisappear?: () => void;
-
+
/**
* The margin of menu's layoutRegion.
*
@@ -17048,10 +18993,11 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
layoutRegionMargin?: Margin;
-
+
/**
* The preview animator options.
*
@@ -17067,7 +19013,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
previewAnimationOptions?: ContextMenuAnimationOptions;
@@ -17088,7 +19035,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundColor?: ResourceColor;
@@ -17109,7 +19057,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundBlurStyle?: BlurStyle;
@@ -17120,7 +19069,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundBlurStyleOptions?: BackgroundBlurStyleOptions;
@@ -17131,7 +19081,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundEffect?: BackgroundEffectOptions;
@@ -17142,7 +19093,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
transition?: TransitionEffect;
@@ -17154,7 +19106,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableHoverMode?: boolean;
@@ -17165,7 +19118,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
outlineColor?: ResourceColor | EdgeColors;
@@ -17176,7 +19130,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
outlineWidth?: Dimension | EdgeOutlineWidths;
@@ -17188,7 +19143,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
hapticFeedbackMode?: HapticFeedbackMode;
}
@@ -17210,7 +19166,8 @@ declare interface ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface MenuOptions extends ContextMenuOptions {
/**
@@ -17228,7 +19185,8 @@ declare interface MenuOptions extends ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
title?: ResourceStr;
@@ -17247,7 +19205,8 @@ declare interface MenuOptions extends ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
showInSubWindow?: boolean;
}
@@ -17265,7 +19224,8 @@ declare interface MenuOptions extends ContextMenuOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class ProgressMask {
/**
@@ -17287,7 +19247,8 @@ declare class ProgressMask {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor(value: number, total: number, color: ResourceColor);
@@ -17306,7 +19267,8 @@ declare class ProgressMask {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
updateProgress(value: number): void;
@@ -17325,10 +19287,11 @@ declare class ProgressMask {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
updateColor(value: ResourceColor): void;
-
+
/**
* Enable the breathe animation of mask.
*
@@ -17336,7 +19299,8 @@ declare class ProgressMask {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableBreathingAnimation(value: boolean): void;
}
@@ -17354,7 +19318,8 @@ declare class ProgressMask {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class TouchTestInfo {
/**
@@ -17372,7 +19337,8 @@ declare class TouchTestInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
windowX: number;
@@ -17391,7 +19357,8 @@ declare class TouchTestInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
windowY: number;
@@ -17410,7 +19377,8 @@ declare class TouchTestInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
parentX: number;
@@ -17429,7 +19397,8 @@ declare class TouchTestInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
parentY: number;
@@ -17448,7 +19417,8 @@ declare class TouchTestInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
x: number;
@@ -17467,7 +19437,8 @@ declare class TouchTestInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
y: number;
@@ -17486,7 +19457,8 @@ declare class TouchTestInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
rect: RectResult;
@@ -17505,7 +19477,8 @@ declare class TouchTestInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
id: string;
}
@@ -17523,7 +19496,8 @@ declare class TouchTestInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class TouchResult {
/**
@@ -17541,7 +19515,8 @@ declare class TouchResult {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
strategy: TouchTestStrategy;
@@ -17560,7 +19535,8 @@ declare class TouchResult {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
id?: string;
}
@@ -17582,7 +19558,8 @@ declare class TouchResult {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface PixelStretchEffectOptions {
/**
@@ -17604,7 +19581,8 @@ declare interface PixelStretchEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
top?: Length;
@@ -17627,7 +19605,8 @@ declare interface PixelStretchEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
bottom?: Length;
@@ -17650,7 +19629,8 @@ declare interface PixelStretchEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
left?: Length;
@@ -17673,7 +19653,8 @@ declare interface PixelStretchEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
right?: Length;
}
@@ -17693,7 +19674,8 @@ declare interface PixelStretchEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ClickEffect {
/**
@@ -17711,7 +19693,8 @@ declare interface ClickEffect {
* @default ClickEffectLevel.Light
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
level: ClickEffectLevel;
@@ -17730,7 +19713,8 @@ declare interface ClickEffect {
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
scale?: number;
}
@@ -17742,7 +19726,8 @@ declare interface ClickEffect {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface FadingEdgeOptions {
/**
@@ -17753,7 +19738,8 @@ declare interface FadingEdgeOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fadingEdgeLength?: LengthMetrics;
}
@@ -17771,7 +19757,8 @@ declare interface FadingEdgeOptions {
* @interface NestedScrollOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface NestedScrollOptions {
/**
@@ -17788,7 +19775,8 @@ declare interface NestedScrollOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
scrollForward: NestedScrollMode;
@@ -17806,7 +19794,8 @@ declare interface NestedScrollOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
scrollBackward: NestedScrollMode;
}
@@ -17833,7 +19822,8 @@ declare interface NestedScrollOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface MenuElement {
/**
@@ -17858,7 +19848,8 @@ declare interface MenuElement {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
value: ResourceStr;
@@ -17877,7 +19868,8 @@ declare interface MenuElement {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
icon?: ResourceStr;
@@ -17887,7 +19879,8 @@ declare interface MenuElement {
* @type { ?SymbolGlyphModifier }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
symbolIcon?: SymbolGlyphModifier;
@@ -17910,7 +19903,8 @@ declare interface MenuElement {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enabled?: boolean;
@@ -17936,14 +19930,15 @@ declare interface MenuElement {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
action: () => void;
}
/**
* Defines the attribute modifier.
- *
+ *
* @interface AttributeModifier
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -17951,7 +19946,7 @@ declare interface MenuElement {
*/
/**
* Defines the attribute modifier.
- *
+ *
* @interface AttributeModifier
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -17962,7 +19957,7 @@ declare interface AttributeModifier {
/**
* Defines the normal update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -17970,7 +19965,7 @@ declare interface AttributeModifier {
*/
/**
* Defines the normal update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -17981,7 +19976,7 @@ declare interface AttributeModifier {
/**
* Defines the pressed update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -17989,7 +19984,7 @@ declare interface AttributeModifier {
*/
/**
* Defines the pressed update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -18000,7 +19995,7 @@ declare interface AttributeModifier {
/**
* Defines the focused update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -18008,7 +20003,7 @@ declare interface AttributeModifier {
*/
/**
* Defines the focused update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -18019,7 +20014,7 @@ declare interface AttributeModifier {
/**
* Defines the disabled update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -18027,7 +20022,7 @@ declare interface AttributeModifier {
*/
/**
* Defines the disabled update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -18038,7 +20033,7 @@ declare interface AttributeModifier {
/**
* Defines the selected update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -18046,7 +20041,7 @@ declare interface AttributeModifier {
*/
/**
* Defines the selected update attribute function.
- *
+ *
* @param { T } instance
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -18056,20 +20051,93 @@ declare interface AttributeModifier {
applySelectedAttribute?(instance: T) : void;
}
+
+/**
+ * Defines the attribute modifier.
+ *
+ * @interface AttributeModifier
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare interface AttributeModifier {
+
+
+ /**
+ * Defines the normal update attribute function.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ applyNormalAttribute?:(instance: T) => void;
+
+
+ /**
+ * Defines the pressed update attribute function.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ applyPressedAttribute?:(instance: T) => void;
+
+ /**
+ * Defines the focused update attribute function.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ applyFocusedAttribute?:(instance: T) => void;
+
+
+ /**
+ * Defines the disabled update attribute function.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ applyDisabledAttribute?:(instance: T) => void;
+
+
+ /**
+ * Defines the selected update attribute function.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ applySelectedAttribute?:(instance: T) => void;
+}
/**
* Defines the content modifier.
- *
+ *
* @interface ContentModifier
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ContentModifier {
/**
* Defining applyContent function.
- *
+ *
* @returns { WrappedBuilder<[T]> }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -18077,19 +20145,32 @@ declare interface ContentModifier {
* @since 12
*/
applyContent(): WrappedBuilder<[T]>
+
+ /**
+ * Defining applyContent function.
+ *
+ * @returns { WrappedBuilder<[T]> }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ applyContent(): WrappedBuilder>
}
/**
* Defines the common configuration.
- *
+ *
* @interface CommonConfiguration
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface CommonConfiguration {
-
+
/**
* If the value is true, the contentModifier is available and can respond to operations such as triggerChange.
* If it is set to false, triggerChange operations are not responded.
@@ -18098,18 +20179,20 @@ declare interface CommonConfiguration {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enabled: boolean,
/**
* Obtains the contentModifier instance object
- *
+ *
* @type { ContentModifier }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
contentModifier: ContentModifier
}
@@ -18131,7 +20214,8 @@ declare interface CommonConfiguration {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum OutlineStyle {
/**
@@ -18149,7 +20233,8 @@ declare enum OutlineStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SOLID = 0,
@@ -18168,7 +20253,8 @@ declare enum OutlineStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DASHED = 1,
@@ -18187,7 +20273,8 @@ declare enum OutlineStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DOTTED = 2,
}
@@ -18214,7 +20301,8 @@ declare enum OutlineStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum DragPreviewMode {
/**
@@ -18236,7 +20324,8 @@ declare enum DragPreviewMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
AUTO = 1,
/**
@@ -18258,7 +20347,8 @@ declare enum DragPreviewMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DISABLE_SCALE = 2,
/**
@@ -18274,7 +20364,8 @@ declare enum DragPreviewMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ENABLE_DEFAULT_SHADOW = 3,
/**
@@ -18290,7 +20381,8 @@ declare enum DragPreviewMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ENABLE_DEFAULT_RADIUS = 4,
/**
@@ -18298,7 +20390,8 @@ declare enum DragPreviewMode {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ENABLE_DRAG_ITEM_GRAY_EFFECT = 5,
/**
@@ -18306,7 +20399,8 @@ declare enum DragPreviewMode {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ENABLE_MULTI_TILE_EFFECT = 6,
/**
@@ -18314,7 +20408,8 @@ declare enum DragPreviewMode {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ENABLE_TOUCH_POINT_CALCULATION_BASED_ON_FINAL_PREVIEW = 7,
}
@@ -18325,7 +20420,8 @@ declare enum DragPreviewMode {
* @enum { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum DraggingSizeChangeEffect {
/**
@@ -18333,7 +20429,8 @@ declare enum DraggingSizeChangeEffect {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DEFAULT = 0,
@@ -18342,7 +20439,8 @@ declare enum DraggingSizeChangeEffect {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SIZE_TRANSITION = 1,
@@ -18351,7 +20449,8 @@ declare enum DraggingSizeChangeEffect {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SIZE_CONTENT_TRANSITION = 2,
}
@@ -18363,7 +20462,8 @@ declare enum DraggingSizeChangeEffect {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum MenuPolicy {
/**
@@ -18372,7 +20472,8 @@ declare enum MenuPolicy {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DEFAULT = 0,
@@ -18382,7 +20483,8 @@ declare enum MenuPolicy {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
HIDE = 1,
@@ -18392,7 +20494,8 @@ declare enum MenuPolicy {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SHOW = 2,
}
@@ -18440,7 +20543,8 @@ declare type SymbolGlyphModifier = import('../api/arkui/SymbolGlyphModifier').Sy
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface DragPreviewOptions {
/**
@@ -18465,7 +20569,8 @@ declare interface DragPreviewOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
mode?: DragPreviewMode | Array;
@@ -18503,7 +20608,8 @@ declare interface DragPreviewOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
numberBadge?: boolean | number;
@@ -18513,7 +20619,8 @@ declare interface DragPreviewOptions {
* @type { ?DraggingSizeChangeEffect }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
sizeChangeEffect?: DraggingSizeChangeEffect;
}
@@ -18524,7 +20631,8 @@ declare interface DragPreviewOptions {
* @interface DragInteractionOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface DragInteractionOptions {
/**
@@ -18533,17 +20641,19 @@ declare interface DragInteractionOptions {
* @type { ?boolean }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
isMultiSelectionEnabled?: boolean;
-
+
/**
* Define whether to execute animation before preview floating.
*
* @type { ?boolean }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
defaultAnimationBeforeLifting?: boolean;
@@ -18553,7 +20663,8 @@ declare interface DragInteractionOptions {
* @type { ?boolean }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableEdgeAutoScroll?: boolean;
@@ -18563,7 +20674,8 @@ declare interface DragInteractionOptions {
* @type { ?boolean }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableHapticFeedback?: boolean;
@@ -18574,7 +20686,8 @@ declare interface DragInteractionOptions {
* @default false
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
isLiftingDisabled?: boolean;
}
@@ -18585,7 +20698,8 @@ declare interface DragInteractionOptions {
* @interface PreviewConfiguration
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface PreviewConfiguration {
/**
@@ -18595,7 +20709,8 @@ declare interface PreviewConfiguration {
* @default false
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onlyForLifting?: boolean;
@@ -18606,7 +20721,8 @@ declare interface PreviewConfiguration {
* @default false
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
delayCreating?: boolean;
}
@@ -18624,13 +20740,14 @@ declare interface PreviewConfiguration {
* @interface InvertOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface InvertOptions {
/**
* Defines the low value of threshold
- *
+ *
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -18638,18 +20755,19 @@ declare interface InvertOptions {
*/
/**
* Defines the low value of threshold
- *
+ *
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
low: number;
/**
* Defines the high value of threshold
- *
+ *
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -18657,18 +20775,19 @@ declare interface InvertOptions {
*/
/**
* Defines the high value of threshold
- *
+ *
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
high: number;
/**
* Defines the threshold
- *
+ *
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -18676,18 +20795,19 @@ declare interface InvertOptions {
*/
/**
* Defines the threshold
- *
+ *
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
threshold: number;
-
+
/**
*Defines the threshold range
- *
+ *
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -18695,19 +20815,20 @@ declare interface InvertOptions {
*/
/**
*Defines the threshold range
- *
+ *
* @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
thresholdRange: number;
}
/**
* Import the CircleShape type object for common method.
- *
+ *
* @typedef { import('../api/@ohos.arkui.shape').CircleShape } CircleShape
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -18719,7 +20840,7 @@ declare type CircleShape = import('../api/@ohos.arkui.shape').CircleShape;
/**
* Import the EllipseShape type object for common method.
- *
+ *
* @typedef { import('../api/@ohos.arkui.shape').EllipseShape } EllipseShape
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -18731,7 +20852,7 @@ declare type EllipseShape = import('../api/@ohos.arkui.shape').EllipseShape;
/**
* Import the PathShape type object for common method.
- *
+ *
* @typedef { import('../api/@ohos.arkui.shape').PathShape } PathShape
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -18743,7 +20864,7 @@ declare type PathShape = import('../api/@ohos.arkui.shape').PathShape;
/**
* Import the RectShape type object for common method.
- *
+ *
* @typedef { import('../api/@ohos.arkui.shape').RectShape } RectShape
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
@@ -18761,7 +20882,8 @@ declare type RectShape = import('../api/@ohos.arkui.shape').RectShape;
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type Optional = T | undefined;
@@ -18772,7 +20894,8 @@ declare type Optional = T | undefined;
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare type TipsMessageType = ResourceStr | StyledString;
@@ -18784,7 +20907,8 @@ declare type TipsMessageType = ResourceStr | StyledString;
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface BackgroundImageOptions {
/**
@@ -18797,7 +20921,8 @@ interface BackgroundImageOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
syncLoad?: boolean;
/**
@@ -18809,11 +20934,36 @@ interface BackgroundImageOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
repeat?: ImageRepeat;
}
+/**
+ * Define the options of background
+ *
+ * @interface BackgroundOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare interface BackgroundOptions {
+ /**
+ *Defines the align
+ *
+ * @type { ?Alignment }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ align?: Alignment
+}
+
/**
* CommonMethod.
*
@@ -18842,7 +20992,8 @@ interface BackgroundImageOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class CommonMethod {
/**
@@ -18858,7 +21009,8 @@ declare class CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @form
- * @since 9
+ * @since arkts {'1.1':'9','1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor();
@@ -18898,7 +21050,8 @@ declare class CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
width(value: Length): T;
/**
@@ -18910,7 +21063,8 @@ declare class CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
width(widthValue: Length | LayoutPolicy): T;
@@ -18950,7 +21104,8 @@ declare class CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
height(value: Length): T;
/**
@@ -18962,10 +21117,11 @@ declare class CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
height(heightValue: Length | LayoutPolicy): T;
-
+
/**
* Sets the drawModifier of the current component.
*
@@ -18974,7 +21130,8 @@ declare class CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
drawModifier(modifier: DrawModifier | undefined): T;
@@ -18987,7 +21144,8 @@ declare class CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
customProperty(name: string, value: Optional