diff --git a/api/@internal/component/ets/badge.d.ts b/api/@internal/component/ets/badge.d.ts
index 729160f93e50905c48746a2c5c2b3e889b77b258..b70912408a191f5f36b97c2243f551004a670079 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,969 +56,996 @@
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare enum BadgePosition {
- /**
- * The dot is displayed vertically centered on the right.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * The dot is displayed vertically centered on the right.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * The dot is displayed vertically centered on the right.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * The badge is displayed in the upper right corner of the parent component.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- RightTop,
-
- /**
- * Dots are displayed in the upper right corner.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Dots are displayed in the upper right corner.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Dots are displayed in the upper right corner.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * The badge is vertically centered on the right of the parent component.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- Right,
-
- /**
- * The dot is displayed in the left vertical center.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * The dot is displayed in the left vertical center.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * The dot is displayed in the left vertical center.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * The badge is vertically centered on the left of the parent component.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- Left,
- }
-
- /**
- * BadgeStyle object
- *
- * @interface BadgeStyle
+declare enum BadgePosition {
+ /**
+ * The dot is displayed vertically centered on the right.
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * BadgeStyle object
+ * The dot is displayed vertically centered on the right.
*
- * @interface BadgeStyle
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * BadgeStyle object
+ * The dot is displayed vertically centered on the right.
*
- * @interface BadgeStyle
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * BadgeStyle object
+ * The badge is displayed in the upper right corner of the parent component.
*
- * @interface BadgeStyle
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare interface BadgeStyle {
- /**
- * Text Color
- *
- * @type { ?ResourceColor }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Text Color
- *
- * @type { ?ResourceColor }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Text Color
- *
- * @type { ?ResourceColor }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Font color.
- *
- * @type { ?ResourceColor }
- * @default Color.White
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- color?: ResourceColor;
-
- /**
- * Text size.
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Text size.
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Text size.
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Text size.
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- /**
- * Font size.
- * For the string type, only numeric string values with optional units.
- * The value must be greater than or equal to 0. If the value is less than 0, the default value is used.
- * Unit: fp
- *
- *
NOTE:
- *
This parameter cannot be set in percentage.
- *
- *
- * @type { ?(number | ResourceStr) }
- * @default 10
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- */
- fontSize?: number | ResourceStr;
-
- /**
- * Size of a badge.
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Size of a badge.
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Size of a badge.
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Size of a badge.
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- /**
- * Badge size.
- * For the string type, numeric string values with optional units.
- * The value must be greater than or equal to 0. If the value is less than 0, the default value is used.
- * Unit: vp
- *
- * NOTE:
- *
This parameter cannot be set in percentage.
- *
If it is set to an invalid value, the default value is used.
- *
- *
- * @type { ?(number | ResourceStr) }
- * @default 16
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- */
- badgeSize?: number | ResourceStr;
-
- /**
- * Color of the badge.
- *
- * @type { ?ResourceColor }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Color of the badge.
- *
- * @type { ?ResourceColor }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Color of the badge.
- *
- * @type { ?ResourceColor }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Badge color.
- *
- * @type { ?ResourceColor }
- * @default Color.Red
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- badgeColor?: ResourceColor;
-
- /**
- * Define the border color of the badge.
- *
- * @type { ?ResourceColor }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Border color of the background.
- *
- * @type { ?ResourceColor }
- * @default Color.Red
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- borderColor?: ResourceColor;
-
- /**
- * Define the border width of the badge.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Border width of the background.
- * This parameter cannot be set in percentage.
- * Unit: vp
- *
- * @type { ?Length }
- * @default 1
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- borderWidth?: Length;
-
- /**
- * Define the font weight of the badge.
- *
- * @type { ?(number | FontWeight | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Define the font weight of the badge.
- *
- * @type { ?(number | FontWeight | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- /**
- * Font weight of the text.
- * For the number type, the value ranges from 100 to 900, at an interval of 100. Default value: 400
- * A larger value indicates a heavier font weight.
- * For the string type, only strings that represent a number. Default value: FontWeight.Normal
- *
- * NOTE:
- *
This parameter cannot be set in percentage.
- *
- *
- * @type { ?(number | FontWeight | ResourceStr) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- */
- fontWeight?: number | FontWeight | ResourceStr;
- }
-
- /**
- * Defines the base param of badge.
- *
- * @interface BadgeParam
+ RightTop,
+
+ /**
+ * Dots are displayed in the upper right corner.
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Defines the base param of badge.
+ * Dots are displayed in the upper right corner.
*
- * @interface BadgeParam
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Defines the base param of badge.
+ * Dots are displayed in the upper right corner.
*
- * @interface BadgeParam
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Provides basic parameters for creating a badge.
+ * The badge is vertically centered on the right of the parent component.
*
- * @interface BadgeParam
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare interface BadgeParam {
- /**
- * Set the display position of the prompt point.
- *
- * @type { ?(BadgePosition) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Set the display position of the prompt point.
- *
- * @type { ?(BadgePosition) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Set the display position of the prompt point.
- *
- * @type { ?(BadgePosition | Position) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Position to display the badge relative to the parent component.
- *
- * NOTE:
- *
With the Position type, percentage values are not supported.
- *
If an invalid value is set, the default value (0,0),
- * which indicates the upper left corner of the component, will be used.
- *
With the BadgePosition type, the position is mirrored based on the Direction property.
- *
- *
- * @type { ?(BadgePosition | Position) }
- * @default BadgePosition.RightTop
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- position?: BadgePosition | Position;
-
- /**
- * Defines the style of the Badge component, including the text color, size, dot color, and size.
- *
- * @type { BadgeStyle }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Defines the style of the Badge component, including the text color, size, dot color, and size.
- *
- * @type { BadgeStyle }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Defines the style of the Badge component, including the text color, size, dot color, and size.
- *
- * @type { BadgeStyle }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Style of the badge, including the font color, font size, badge color, and badge size.
- *
- * @type { BadgeStyle }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- style: BadgeStyle;
- }
-
- /**
- * Defines the badge param with count and maxCount.
- *
- * @extends BadgeParam
- * @interface BadgeParamWithNumber
+ Right,
+
+ /**
+ * The dot is displayed in the left vertical center.
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Defines the badge param with count and maxCount.
+ * The dot is displayed in the left vertical center.
*
- * @extends BadgeParam
- * @interface BadgeParamWithNumber
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Defines the badge param with count and maxCount.
+ * The dot is displayed in the left vertical center.
*
- * @extends BadgeParam
- * @interface BadgeParamWithNumber
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Inherits from BadgeParam and has all attributes of BadgeParam.
+ * The badge is vertically centered on the left of the parent component.
*
- * @extends BadgeParam
- * @interface BadgeParamWithNumber
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare interface BadgeParamWithNumber extends BadgeParam {
- /**
- * Set the number of reminder messages.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Set the number of reminder messages.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Set the number of reminder messages.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Number of notifications.
- *
- * NOTE:
- *
If the value is less than or equal to 0 and less than the value of maxCount, no badge is displayed.
- *
Value range: [-2147483648, 2147483647]
- *
If the value is out of the range,
- * it will be adjusted by adding or subtracting 4294967296 to bring it back within the range.
- *
If the value is not an integer, it is rounded off to the nearest integer.
- *
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- count: number;
-
- /**
- * Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Maximum number of notifications. When the maximum number is reached, only maxCount+ is displayed.
- *
- * NOTE:
- *
Value range: [-2147483648, 2147483647]
- *
If the value is out of the range,
- * it will be adjusted by adding or subtracting 4294967296 to bring it back within the range.
- *
If the value is not an integer, it is rounded off to the nearest integer.
- *
- *
- * @type { ?number }
- * @default 99
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- maxCount?: number;
- }
-
- /**
- * Defines the badge param with string value.
- *
- * @extends BadgeParam
- * @interface BadgeParamWithString
+ Left,
+}
+
+/**
+ * BadgeStyle object
+ *
+ * @interface BadgeStyle
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+/**
+ * BadgeStyle object
+ *
+ * @interface BadgeStyle
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * BadgeStyle object
+ *
+ * @interface BadgeStyle
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * BadgeStyle object
+ *
+ * @interface BadgeStyle
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare interface BadgeStyle {
+ /**
+ * Text Color
+ *
+ * @type { ?ResourceColor }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Defines the badge param with string value.
+ * Text Color
*
- * @extends BadgeParam
- * @interface BadgeParamWithString
+ * @type { ?ResourceColor }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Defines the badge param with string value.
+ * Text Color
*
- * @extends BadgeParam
- * @interface BadgeParamWithString
+ * @type { ?ResourceColor }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Inherits from BadgeParam and has all attributes of BadgeParam.
+ * Font color.
*
- * @extends BadgeParam
- * @interface BadgeParamWithString
+ * @type { ?ResourceColor }
+ * @default Color.White
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare interface BadgeParamWithString extends BadgeParam {
- /**
- * Text string of the prompt content.
- *
- * @type { string }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Text string of the prompt content.
- *
- * @type { string }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Text string of the prompt content.
- *
- * @type { string }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Text string of the prompt content.
- *
- * @type { string }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- /**
- * Prompt content.
- *
- * @type { ResourceStr }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- */
- value: ResourceStr;
- }
-
- /**
- * Defines Badge Component.
- *
- * @interface BadgeInterface
+ color?: ResourceColor;
+
+ /**
+ * Text size.
+ *
+ * @type { ?(number | string) }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Defines Badge Component.
+ * Text size.
*
- * @interface BadgeInterface
+ * @type { ?(number | string) }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Defines Badge Component.
+ * Text size.
*
- * @interface BadgeInterface
+ * @type { ?(number | string) }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Defines Badge Component.
+ * Text size.
*
- * @interface BadgeInterface
+ * @type { ?(number | string) }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
- interface BadgeInterface {
- /**
- * position: Set the display position of the prompt point.
- * maxCount: Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
- * count: Set the number of reminder messages.
- * style: You can set the style of the Badge component, including the text color, size, dot color, and size.
- *
- * @param { BadgeParamWithNumber } value
- * @returns { BadgeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * position: Set the display position of the prompt point.
- * maxCount: Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
- * count: Set the number of reminder messages.
- * style: You can set the style of the Badge component, including the text color, size, dot color, and size.
- *
- * @param { BadgeParamWithNumber } value
- * @returns { BadgeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * position: Set the display position of the prompt point.
- * maxCount: Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
- * count: Set the number of reminder messages.
- * style: You can set the style of the Badge component, including the text color, size, dot color, and size.
- *
- * @param { BadgeParamWithNumber } value
- * @returns { BadgeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * position: Set the display position of the prompt point.
- * maxCount: Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
- * count: Set the number of reminder messages.
- * style: You can set the style of the Badge component, including the text color, size, dot color, and size.
- *
- * @param { BadgeParamWithNumber } value
- * @returns { BadgeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- (value: BadgeParamWithNumber): BadgeAttribute;
-
- /**
- * value: Text string of the prompt content.
- * position: Set the display position of the prompt point.
- * maxCount: Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
- * style: You can set the style of the Badge component, including the text color, size, dot color, and size.
- *
- * @param { BadgeParamWithString } value
- * @returns { BadgeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * value: Text string of the prompt content.
- * position: Set the display position of the prompt point.
- * maxCount: Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
- * style: You can set the style of the Badge component, including the text color, size, dot color, and size.
- *
- * @param { BadgeParamWithString } value
- * @returns { BadgeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * value: Text string of the prompt content.
- * position: Set the display position of the prompt point.
- * maxCount: Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
- * style: You can set the style of the Badge component, including the text color, size, dot color, and size.
- *
- * @param { BadgeParamWithString } value
- * @returns { BadgeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * value: Text string of the prompt content.
- * position: Set the display position of the prompt point.
- * maxCount: Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
- * style: You can set the style of the Badge component, including the text color, size, dot color, and size.
- *
- * @param { BadgeParamWithString } value
- * @returns { BadgeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- (value: BadgeParamWithString): BadgeAttribute;
- }
-
- /**
- * Defines Badge Component attribute.
- *
- * @extends CommonMethod
+ /**
+ * Font size.
+ * For the string type, only numeric string values with optional units.
+ * The value must be greater than or equal to 0. If the value is less than 0, the default value is used.
+ * Unit: fp
+ *
+ * NOTE:
+ *
This parameter cannot be set in percentage.
+ *
+ *
+ * @type { ?(number | ResourceStr) }
+ * @default 10
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.1&1.2
+ */
+ fontSize?: number | ResourceStr;
+
+ /**
+ * Size of a badge.
+ *
+ * @type { ?(number | string) }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Defines Badge Component attribute.
+ * Size of a badge.
*
- * @extends CommonMethod
+ * @type { ?(number | string) }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Defines Badge Component attribute.
+ * Size of a badge.
*
- * @extends CommonMethod
+ * @type { ?(number | string) }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Defines Badge Component attribute.
+ * Size of a badge.
*
- * @extends CommonMethod
+ * @type { ?(number | string) }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
- declare class BadgeAttribute extends CommonMethod {}
-
/**
- * Defines Badge Component.
+ * Badge size.
+ * For the string type, numeric string values with optional units.
+ * The value must be greater than or equal to 0. If the value is less than 0, the default value is used.
+ * Unit: vp
+ *
+ * NOTE:
+ *
This parameter cannot be set in percentage.
+ *
If it is set to an invalid value, the default value is used.
+ *
*
+ * @type { ?(number | ResourceStr) }
+ * @default 16
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.1&1.2
+ */
+ badgeSize?: number | ResourceStr;
+
+ /**
+ * Color of the badge.
+ *
+ * @type { ?ResourceColor }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Defines Badge Component.
+ * Color of the badge.
*
+ * @type { ?ResourceColor }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Defines Badge Component.
+ * Color of the badge.
*
+ * @type { ?ResourceColor }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Defines Badge Component.
+ * Badge color.
*
+ * @type { ?ResourceColor }
+ * @default Color.Red
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ badgeColor?: ResourceColor;
+
+ /**
+ * Define the border color of the badge.
+ *
+ * @type { ?ResourceColor }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Border color of the background.
+ *
+ * @type { ?ResourceColor }
+ * @default Color.Red
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ borderColor?: ResourceColor;
+
+ /**
+ * Define the border width of the badge.
+ *
+ * @type { ?Length }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Border width of the background.
+ * This parameter cannot be set in percentage.
+ * Unit: vp
+ *
+ * @type { ?Length }
+ * @default 1
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ borderWidth?: Length;
+
+ /**
+ * Define the font weight of the badge.
+ *
+ * @type { ?(number | FontWeight | string) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Define the font weight of the badge.
+ *
+ * @type { ?(number | FontWeight | string) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
* @since 11
*/
- declare const Badge: BadgeInterface;
-
/**
- * Defines Badge Component instance.
+ * Font weight of the text.
+ * For the number type, the value ranges from 100 to 900, at an interval of 100. Default value: 400
+ * A larger value indicates a heavier font weight.
+ * For the string type, only strings that represent a number. Default value: FontWeight.Normal
+ *
+ * NOTE:
+ *
This parameter cannot be set in percentage.
+ *
*
+ * @type { ?(number | FontWeight | ResourceStr) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.1&1.2
+ */
+ fontWeight?: number | FontWeight | ResourceStr;
+}
+
+/**
+ * Defines the base param of badge.
+ *
+ * @interface BadgeParam
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+/**
+ * Defines the base param of badge.
+ *
+ * @interface BadgeParam
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Defines the base param of badge.
+ *
+ * @interface BadgeParam
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Provides basic parameters for creating a badge.
+ *
+ * @interface BadgeParam
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare interface BadgeParam {
+ /**
+ * Set the display position of the prompt point.
+ *
+ * @type { ?(BadgePosition) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Set the display position of the prompt point.
+ *
+ * @type { ?(BadgePosition) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * Set the display position of the prompt point.
+ *
+ * @type { ?(BadgePosition | Position) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Position to display the badge relative to the parent component.
+ *
+ * NOTE:
+ *
With the Position type, percentage values are not supported.
+ *
If an invalid value is set, the default value (0,0),
+ * which indicates the upper left corner of the component, will be used.
+ *
With the BadgePosition type, the position is mirrored based on the Direction property.
+ *
+ *
+ * @type { ?(BadgePosition | Position) }
+ * @default BadgePosition.RightTop
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ position?: BadgePosition | Position;
+
+ /**
+ * Defines the style of the Badge component, including the text color, size, dot color, and size.
+ *
+ * @type { BadgeStyle }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Defines the style of the Badge component, including the text color, size, dot color, and size.
+ *
+ * @type { BadgeStyle }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * Defines the style of the Badge component, including the text color, size, dot color, and size.
+ *
+ * @type { BadgeStyle }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Style of the badge, including the font color, font size, badge color, and badge size.
+ *
+ * @type { BadgeStyle }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ style: BadgeStyle;
+}
+
+/**
+ * Defines the badge param with count and maxCount.
+ *
+ * @extends BadgeParam
+ * @interface BadgeParamWithNumber
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+/**
+ * Defines the badge param with count and maxCount.
+ *
+ * @extends BadgeParam
+ * @interface BadgeParamWithNumber
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Defines the badge param with count and maxCount.
+ *
+ * @extends BadgeParam
+ * @interface BadgeParamWithNumber
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Inherits from BadgeParam and has all attributes of BadgeParam.
+ *
+ * @extends BadgeParam
+ * @interface BadgeParamWithNumber
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare interface BadgeParamWithNumber extends BadgeParam {
+ /**
+ * Set the number of reminder messages.
+ *
+ * @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Defines Badge Component instance.
+ * Set the number of reminder messages.
*
+ * @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Defines Badge Component instance.
+ * Set the number of reminder messages.
*
+ * @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Defines Badge Component instance.
+ * Number of notifications.
+ *
+ * NOTE:
+ *
If the value is less than or equal to 0 and less than the value of maxCount, no badge is displayed.
+ *
Value range: [-2147483648, 2147483647]
+ *
If the value is out of the range,
+ * it will be adjusted by adding or subtracting 4294967296 to bring it back within the range.
+ *
If the value is not an integer, it is rounded off to the nearest integer.
+ *
*
+ * @type { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ count: number;
+
+ /**
+ * Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
+ *
+ * @type { ?number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
+ *
+ * @type { ?number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
+ *
+ * @type { ?number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Maximum number of notifications. When the maximum number is reached, only maxCount+ is displayed.
+ *
+ * NOTE:
+ *
Value range: [-2147483648, 2147483647]
+ *
If the value is out of the range,
+ * it will be adjusted by adding or subtracting 4294967296 to bring it back within the range.
+ *
If the value is not an integer, it is rounded off to the nearest integer.
+ *
+ *
+ * @type { ?number }
+ * @default 99
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ maxCount?: number;
+}
+
+/**
+ * Defines the badge param with string value.
+ *
+ * @extends BadgeParam
+ * @interface BadgeParamWithString
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+/**
+ * Defines the badge param with string value.
+ *
+ * @extends BadgeParam
+ * @interface BadgeParamWithString
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Defines the badge param with string value.
+ *
+ * @extends BadgeParam
+ * @interface BadgeParamWithString
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Inherits from BadgeParam and has all attributes of BadgeParam.
+ *
+ * @extends BadgeParam
+ * @interface BadgeParamWithString
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare interface BadgeParamWithString extends BadgeParam {
+ /**
+ * Text string of the prompt content.
+ *
+ * @type { string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Text string of the prompt content.
+ *
+ * @type { string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * Text string of the prompt content.
+ *
+ * @type { string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Text string of the prompt content.
+ *
+ * @type { string }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
- declare const BadgeInstance: BadgeAttribute;
-
\ No newline at end of file
+ /**
+ * Prompt content.
+ *
+ * @type { ResourceStr }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.1&1.2
+ */
+ value: ResourceStr;
+}
+
+/**
+ * Defines Badge Component.
+ *
+ * @interface BadgeInterface
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+/**
+ * Defines Badge Component.
+ *
+ * @interface BadgeInterface
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Defines Badge Component.
+ *
+ * @interface BadgeInterface
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Defines Badge Component.
+ *
+ * @interface BadgeInterface
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ * @noninterop
+ */
+interface BadgeInterface {
+ /**
+ * position: Set the display position of the prompt point.
+ * maxCount: Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
+ * count: Set the number of reminder messages.
+ * style: You can set the style of the Badge component, including the text color, size, dot color, and size.
+ *
+ * @param { BadgeParamWithNumber } value
+ * @returns { BadgeAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * position: Set the display position of the prompt point.
+ * maxCount: Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
+ * count: Set the number of reminder messages.
+ * style: You can set the style of the Badge component, including the text color, size, dot color, and size.
+ *
+ * @param { BadgeParamWithNumber } value
+ * @returns { BadgeAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * position: Set the display position of the prompt point.
+ * maxCount: Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
+ * count: Set the number of reminder messages.
+ * style: You can set the style of the Badge component, including the text color, size, dot color, and size.
+ *
+ * @param { BadgeParamWithNumber } value
+ * @returns { BadgeAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * position: Set the display position of the prompt point.
+ * maxCount: Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
+ * count: Set the number of reminder messages.
+ * style: You can set the style of the Badge component, including the text color, size, dot color, and size.
+ *
+ * @param { BadgeParamWithNumber } value
+ * @returns { BadgeAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ (value: BadgeParamWithNumber): BadgeAttribute;
+
+ /**
+ * value: Text string of the prompt content.
+ * position: Set the display position of the prompt point.
+ * maxCount: Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
+ * style: You can set the style of the Badge component, including the text color, size, dot color, and size.
+ *
+ * @param { BadgeParamWithString } value
+ * @returns { BadgeAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * value: Text string of the prompt content.
+ * position: Set the display position of the prompt point.
+ * maxCount: Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
+ * style: You can set the style of the Badge component, including the text color, size, dot color, and size.
+ *
+ * @param { BadgeParamWithString } value
+ * @returns { BadgeAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * value: Text string of the prompt content.
+ * position: Set the display position of the prompt point.
+ * maxCount: Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
+ * style: You can set the style of the Badge component, including the text color, size, dot color, and size.
+ *
+ * @param { BadgeParamWithString } value
+ * @returns { BadgeAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * value: Text string of the prompt content.
+ * position: Set the display position of the prompt point.
+ * maxCount: Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
+ * style: You can set the style of the Badge component, including the text color, size, dot color, and size.
+ *
+ * @param { BadgeParamWithString } value
+ * @returns { BadgeAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ (value: BadgeParamWithString): BadgeAttribute;
+}
+
+/**
+ * Defines Badge Component attribute.
+ *
+ * @extends CommonMethod
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+/**
+ * Defines Badge Component attribute.
+ *
+ * @extends CommonMethod
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Defines Badge Component attribute.
+ *
+ * @extends CommonMethod
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Defines Badge Component attribute.
+ *
+ * @extends CommonMethod
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ * @noninterop
+ */
+declare class BadgeAttribute extends CommonMethod {}
+
+/**
+ * Defines Badge Component.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+/**
+ * Defines Badge Component.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Defines Badge Component.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Defines Badge Component.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ * @noninterop
+ */
+declare const Badge: BadgeInterface;
+
+/**
+ * Defines Badge Component instance.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+/**
+ * Defines Badge Component instance.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Defines Badge Component instance.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Defines Badge Component instance.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ * @noninterop
+ */
+declare const BadgeInstance: BadgeAttribute;
diff --git a/api/@internal/component/ets/calendar_picker.d.ts b/api/@internal/component/ets/calendar_picker.d.ts
index 2ae7c8c787cde6ac58eb41bc6fa7850ffb1c0d2e..87198423ba6a04a464ae483e940c583ee83bcff2 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 19
+ * @since arkts {'1.1':'19','1.2':'20'}
+ * @arkts 1.1&1.2
*/
disabledDateRange?: DateRange[];
}
@@ -175,7 +192,9 @@ 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
+ * @noninterop
*/
interface CalendarPickerInterface {
/**
@@ -193,7 +212,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 +231,9 @@ interface CalendarPickerInterface {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ * @noninterop
*/
declare class CalendarPickerAttribute extends CommonMethod {
/**
@@ -231,7 +253,8 @@ declare class CalendarPickerAttribute extends CommonMethod, offset?: Offset): CalendarPickerAttribute;
@@ -262,7 +286,8 @@ declare class CalendarPickerAttribute extends CommonMethod): CalendarPickerAttribute;
@@ -302,7 +328,8 @@ declare class CalendarPickerAttribute extends CommonMethod): CalendarPickerAttribute;
@@ -313,7 +340,8 @@ declare class CalendarPickerAttribute extends CommonMethod>): CalendarPickerAttribute;
@@ -325,7 +353,8 @@ declare class CalendarPickerAttribute extends CommonMethod;
@@ -396,7 +427,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onCancel?: VoidCallback;
@@ -422,7 +454,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onChange?: Callback;
@@ -443,7 +476,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;
@@ -464,7 +498,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;
@@ -475,7 +510,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 19
+ * @since arkts {'1.1':'19','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundBlurStyleOptions?: BackgroundBlurStyleOptions;
@@ -486,7 +522,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 19
+ * @since arkts {'1.1':'19','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundEffect?: BackgroundEffectOptions;
@@ -497,7 +534,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;
@@ -508,7 +546,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;
@@ -529,7 +568,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onDidAppear?: VoidCallback;
@@ -550,7 +590,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onDidDisappear?: VoidCallback;
@@ -571,7 +612,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWillAppear?: VoidCallback;
@@ -592,7 +634,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onWillDisappear?: VoidCallback;
@@ -603,7 +646,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;
@@ -615,7 +659,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;
@@ -627,7 +672,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;
@@ -639,7 +685,8 @@ declare interface CalendarDialogOptions extends CalendarOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 19
+ * @since arkts {'1.1':'19','1.2':'20'}
+ * @arkts 1.1&1.2
*/
markToday?: boolean;
}
@@ -655,7 +702,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 {
/**
@@ -671,7 +719,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;
}
@@ -688,6 +737,7 @@ declare class CalendarPickerDialog {
* @crossplatform
* @atomicservice
* @since 11
+ * @noninterop
*/
declare const CalendarPicker: CalendarPickerInterface;
@@ -703,5 +753,6 @@ declare const CalendarPicker: CalendarPickerInterface;
* @crossplatform
* @atomicservice
* @since 11
+ * @noninterop
*/
declare const CalendarPickerInstance: CalendarPickerAttribute;
diff --git a/api/@internal/component/ets/counter.d.ts b/api/@internal/component/ets/counter.d.ts
index 9fb6cf9cc9fa2759b59f405ff41a7123d2f7594c..29b552d0b90b0be3b7d76b29fbb7dd8c6b71c5bc 100644
--- a/api/@internal/component/ets/counter.d.ts
+++ b/api/@internal/component/ets/counter.d.ts
@@ -18,6 +18,11 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { CommonMethod } from './common'
+import { VoidCallback } from './units'
+/*** endif */
+
/**
* Counter component, which provides corresponding increment or decrement counting operations.
*
@@ -50,7 +55,9 @@
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ * @noninterop
*/
interface CounterInterface {
/**
@@ -85,7 +92,8 @@ interface CounterInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
(): CounterAttribute;
}
@@ -122,7 +130,9 @@ interface CounterInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ * @noninterop
*/
declare class CounterAttribute extends CommonMethod {
/**
@@ -173,7 +183,8 @@ declare class CounterAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onInc(event: VoidCallback): CounterAttribute;
@@ -225,7 +236,8 @@ declare class CounterAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onDec(event: VoidCallback): CounterAttribute;
@@ -246,7 +258,8 @@ declare class CounterAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableDec(value: boolean): CounterAttribute;
@@ -267,7 +280,8 @@ declare class CounterAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableInc(value: boolean): CounterAttribute;
}
@@ -301,6 +315,7 @@ declare class CounterAttribute extends CommonMethod {
* @form
* @atomicservice
* @since 11
+ * @noninterop
*/
declare const CounterInstance: CounterAttribute;
@@ -333,5 +348,6 @@ declare const CounterInstance: CounterAttribute;
* @form
* @atomicservice
* @since 11
+ * @noninterop
*/
declare const Counter: CounterInterface;
diff --git a/api/@internal/component/ets/data_panel.d.ts b/api/@internal/component/ets/data_panel.d.ts
index 02fa057c4e305c64e3a0987eadca2622188b0030..9783b377adad218a12904408df738e36651b8d31 100644
--- a/api/@internal/component/ets/data_panel.d.ts
+++ b/api/@internal/component/ets/data_panel.d.ts
@@ -18,6 +18,11 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { ResourceColor, Length } from './units'
+import { CommonMethod, ContentModifier, CommonConfiguration, MultiShadowOptions } from './common'
+/*** endif */
+
/**
* DataPanelType enum
*
@@ -50,7 +55,8 @@
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum DataPanelType {
/**
@@ -81,7 +87,8 @@ declare enum DataPanelType {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Line,
@@ -113,7 +120,8 @@ declare enum DataPanelType {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Circle,
}
@@ -130,7 +138,8 @@ declare enum DataPanelType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ColorStop {
/**
@@ -146,7 +155,8 @@ declare interface ColorStop {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
color: ResourceColor;
@@ -163,7 +173,8 @@ declare interface ColorStop {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
offset: Length;
}
@@ -181,7 +192,8 @@ declare interface ColorStop {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class LinearGradient {
/**
@@ -199,7 +211,8 @@ declare class LinearGradient {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor(colorStops: ColorStop[]);
}
@@ -221,7 +234,8 @@ declare class LinearGradient {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface DataPanelShadowOptions extends MultiShadowOptions {
/**
@@ -241,7 +255,8 @@ declare interface DataPanelShadowOptions extends MultiShadowOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
colors?: Array;
}
@@ -278,7 +293,8 @@ declare interface DataPanelShadowOptions extends MultiShadowOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface DataPanelOptions {
/**
@@ -313,7 +329,8 @@ declare interface DataPanelOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
values: number[];
@@ -349,7 +366,8 @@ declare interface DataPanelOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
max?: number;
@@ -385,7 +403,8 @@ declare interface DataPanelOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
type?: DataPanelType;
}
@@ -422,7 +441,9 @@ declare interface DataPanelOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ * @noninterop
*/
interface DataPanelInterface {
/**
@@ -461,7 +482,8 @@ interface DataPanelInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
(options: DataPanelOptions): DataPanelAttribute;
}
@@ -474,7 +496,8 @@ interface DataPanelInterface {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface DataPanelConfiguration extends CommonConfiguration {
/**
@@ -484,7 +507,8 @@ declare interface DataPanelConfiguration extends CommonConfiguration {
/**
@@ -571,7 +598,8 @@ declare class DataPanelAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
closeEffect(value: boolean): DataPanelAttribute;
@@ -592,7 +620,8 @@ declare class DataPanelAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
valueColors(value: Array): DataPanelAttribute;
@@ -613,7 +642,8 @@ declare class DataPanelAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
trackBackgroundColor(value: ResourceColor): DataPanelAttribute;
@@ -634,7 +664,8 @@ declare class DataPanelAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
strokeWidth(value: Length): DataPanelAttribute;
@@ -655,7 +686,8 @@ declare class DataPanelAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
trackShadow(value: DataPanelShadowOptions): DataPanelAttribute;
@@ -667,7 +699,8 @@ declare class DataPanelAttribute 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): DataPanelAttribute;
}
@@ -701,6 +734,7 @@ declare class DataPanelAttribute extends CommonMethod {
* @form
* @atomicservice
* @since 11
+ * @noninterop
*/
declare const DataPanel: DataPanelInterface
@@ -733,5 +767,6 @@ declare const DataPanel: DataPanelInterface
* @form
* @atomicservice
* @since 11
+ * @noninterop
*/
declare const DataPanelInstance: DataPanelAttribute;
diff --git a/api/@internal/component/ets/date_picker.d.ts b/api/@internal/component/ets/date_picker.d.ts
index 73f6661439639451f4f065091b67f445458155f2..373be6f74f989ffe9ccfe387a867b2547f3c21e8 100644
--- a/api/@internal/component/ets/date_picker.d.ts
+++ b/api/@internal/component/ets/date_picker.d.ts
@@ -18,6 +18,13 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { CommonMethod, PickerTextStyle, PickerDialogButtonStyle, Rectangle, Callback, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, BackgroundBlurStyleOptions, BackgroundEffectOptions, Optional, DateTimeOptions, Bindable } from './common'
+import { ResourceColor, Offset, VoidCallback } from './units'
+import { DialogAlignment } from './alertDialog'
+import { CrownSensitivity } from './enums'
+/*** endif */
+
/**
* Defines the struct of DatePickerResult.
*
@@ -40,1415 +47,1502 @@
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare interface DatePickerResult {
- /**
- * Application year
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Application year
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Year of the selected date.
- *
- * NOTE:
- *
Value range: depends on start and end.
- * If start and end are not set, the default range is [1970, 2100].
- *
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- year?: number;
-
- /**
- * Application month
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Application month
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Month index of the selected date.
- * The index is zero-based. 0 indicates January, and 11 indicates December.
- *
- * NOTE:
- *
Value range: depends on start and end. If start and end are not set, the default range is [0, 11].
- *
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- month?: number;
-
- /**
- * Application day
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Application day
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Day of the selected date.
- *
- * NOTE:
- *
Value range: depends on start and end. If start and end are not set, the default range is [1, 31].
- *
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- day?: number;
- }
-
+declare interface DatePickerResult {
+ /**
+ * Application year
+ *
+ * @type { ?number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Application year
+ *
+ * @type { ?number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
/**
- * Defines the mode of the date picker.
+ * Year of the selected date.
*
- * @enum { number }
+ * NOTE:
+ *
Value range: depends on start and end.
+ * If start and end are not set, the default range is [1970, 2100].
+ *
+ *
+ * @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare enum DatePickerMode {
- /**
- * The date displays three columns: year, month, and day.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- DATE = 0,
-
- /**
- * The date displays two columns: year and month.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- YEAR_AND_MONTH = 1,
-
- /**
- * Defines a mode that displays the date in months and days of the month.
- * In this mode, if the month changes from December to January,
- * the year does not increment by one; if the month changes from January to December,
- * the year does not decrement by one. The year remains fixed at the currently set value.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- MONTH_AND_DAY = 2,
- }
-
+ year?: number;
+
/**
- * Defines the options of DatePicker.
+ * Application month
*
- * @interface DatePickerOptions
+ * @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Defines the options of DatePicker.
+ * Application month
*
- * @interface DatePickerOptions
+ * @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
*/
/**
- * Parameters of the date picker.
+ * Month index of the selected date.
+ * The index is zero-based. 0 indicates January, and 11 indicates December.
*
- * @interface DatePickerOptions
+ * NOTE:
+ *
Value range: depends on start and end. If start and end are not set, the default range is [0, 11].
+ *
+ *
+ * @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare interface DatePickerOptions {
- /**
- * Specifies the start date of the date selector.
- *
- * @type { ?Date }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Specifies the start date of the date selector.
- *
- * @type { ?Date }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Start date of the picker.
- *
- * @type { ?Date }
- * @default Date('1970-1-1')
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- start?: Date;
-
- /**
- * Specifies the end date for the date selector.
- *
- * @type { ?Date }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Specifies the end date for the date selector.
- *
- * @type { ?Date }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * End date of the picker.
- *
- * @type { ?Date }
- * @default Date('2100-12-31')
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- end?: Date;
-
- /**
- * Specifies the date selector check date or time selector check time.
- *
- * @type { ?Date }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Specifies the date selector check date or time selector check time.
- *
- * @type { ?Date }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Date of the selected item.
- *
- * @type { ?Date }
- * @default current system date
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- selected?: Date;
-
- /**
- * Date columns to be displayed.
- *
- * NOTE:
- *
In DatePickerDialog, with showTime=true, this parameter has no effect and the default three columns for year,
- *
month, and day are displayed.
- *
- *
- * @type { ?DatePickerMode }
- * @default DatePickerMode.DATE - which means to display three columns: year, month, and day.
- *
Decimal values are rounded off.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- mode?: DatePickerMode;
- }
-
+ month?: number;
+
/**
- * Defines the DatePicker Component.
+ * Application day
*
- * @interface DatePickerInterface
+ * @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Defines the DatePicker Component.
+ * Application day
*
- * @interface DatePickerInterface
+ * @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
*/
/**
- * Creates a date picker in the given date range.
+ * Day of the selected date.
+ *
+ * NOTE:
+ *
Value range: depends on start and end. If start and end are not set, the default range is [1, 31].
+ *
*
- * @interface DatePickerInterface
+ * @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- interface DatePickerInterface {
- /**
- * Defines the DatePicker constructor.
- *
- * @param { DatePickerOptions } options
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Defines the DatePicker constructor.
- *
- * @param { DatePickerOptions } options
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Parameters of the date picker.
- *
- * @param { DatePickerOptions } options - Parameters of the date picker.
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- (options?: DatePickerOptions): DatePickerAttribute;
- }
-
+ day?: number;
+}
+
+/**
+ * Defines the mode of the date picker.
+ *
+ * @enum { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare enum DatePickerMode {
+ /**
+ * The date displays three columns: year, month, and day.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ DATE = 0,
+
+ /**
+ * The date displays two columns: year and month.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ YEAR_AND_MONTH = 1,
+
+ /**
+ * Defines a mode that displays the date in months and days of the month.
+ * In this mode, if the month changes from December to January,
+ * the year does not increment by one; if the month changes from January to December,
+ * the year does not decrement by one. The year remains fixed at the currently set value.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ MONTH_AND_DAY = 2,
+}
+
+/**
+ * Defines the options of DatePicker.
+ *
+ * @interface DatePickerOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+/**
+ * Defines the options of DatePicker.
+ *
+ * @interface DatePickerOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+/**
+ * Parameters of the date picker.
+ *
+ * @interface DatePickerOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare interface DatePickerOptions {
/**
- * Defines the DatePicker attribute functions.
+ * Specifies the start date of the date selector.
*
- * @extends CommonMethod
+ * @type { ?Date }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Defines the DatePicker attribute functions.
+ * Specifies the start date of the date selector.
*
- * @extends CommonMethod
+ * @type { ?Date }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
*/
/**
- * Defines the DatePicker attribute functions.
+ * Start date of the picker.
*
- * @extends CommonMethod
+ * @type { ?Date }
+ * @default Date('1970-1-1')
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare class DatePickerAttribute extends CommonMethod {
- /**
- * Date selector: true: displays the lunar calendar. false: The lunar calendar is not displayed.
- *
- * @param { boolean } value
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Date selector: true: displays the lunar calendar. false: The lunar calendar is not displayed.
- *
- * @param { boolean } value
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Specifies whether to display the lunar calendar.
- *
- * @param { boolean } value - Whether to display the lunar calendar.
- *
- true: Display the lunar calendar.
- *
- false: Do not display the lunar.
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- lunar(value: boolean): DatePickerAttribute;
-
- /**
- * Specifies whether to display the lunar calendar.
- * This API supports the undefined type for the isLunar parameter.
- *
- * @param { Optional } isLunar - Whether to display the lunar calendar.
- *
- true: Display the lunar calendar.
- *
- false: Do not display the lunar.
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- lunar(isLunar: Optional): DatePickerAttribute;
-
- /**
- * Sets the text style of disappearing items
- *
- * @param { PickerTextStyle } value - indicates the text style of disappearing items.
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Sets the text style for the top and bottom items.
- *
- * @param { PickerTextStyle } value - Font color, font size, and font weight of the top and bottom items.
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- disappearTextStyle(value: PickerTextStyle): DatePickerAttribute;
-
- /**
- * Sets the text style for the top and bottom items.
- * This API supports the undefined type for the style parameter.
- *
- * @param { Optional } style - Font color, font size, and font weight of the top and bottom items.
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- disappearTextStyle(style: Optional): DatePickerAttribute;
-
- /**
- * Sets the text style of normal items
- *
- * @param { PickerTextStyle } value - indicates the text style of normal items.
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Sets the text style for all items except the top, bottom, and selected items.
- *
- * @param { PickerTextStyle } value - Font color, font size, and font weight of all items except the top,
- *
bottom, and selected items.
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- textStyle(value: PickerTextStyle): DatePickerAttribute;
-
- /**
- * Sets the text style for all items except the top, bottom, and selected items.
- * This API supports the undefined type for the style parameter.
- *
- * @param { Optional } style - Font color, font size, and font weight of all items except the top,
- *
bottom, and selected items.
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- textStyle(style: Optional): DatePickerAttribute;
-
- /**
- * Sets the text style of selected items
- *
- * @param { PickerTextStyle } value - indicates the text style of selected items.
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Sets the text style for the selected item.
- *
- * @param { PickerTextStyle } value - Font color, font size, and font weight of the selected item.
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- selectedTextStyle(value: PickerTextStyle): DatePickerAttribute;
-
- /**
- * Sets the text style for the selected item.
- * this API supports the undefined type for the style parameter.
- *
- * @param { Optional } style - Font color, font size, and font weight of the selected item.
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- selectedTextStyle(style: Optional): DatePickerAttribute;
-
- /**
- * Triggered when a date is selected.
- *
- * @param { function } callback
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- * @deprecated since 10
- * @useinstead datePicker/DatePickerAttribute#onDateChange
- */
- onChange(callback: (value: DatePickerResult) => void): DatePickerAttribute;
-
- /**
- * This event is triggered when a DatePicker date or time is selected.
- *
- * @param { function } callback
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * This event is triggered when a DatePicker date or time is selected.
- *
- * @param { function } callback
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- /**
- * Triggered when a date is selected.
- * Anonymous Object Rectification.
- *
- * @param { Callback } callback
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- onDateChange(callback: Callback): DatePickerAttribute;
-
- /**
- * Triggered when a date is selected.
- *
- * @param { Optional> } callback
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- onDateChange(callback: Optional>): DatePickerAttribute;
-
- /**
- * Sets the sensitivity to the digital crown rotation.
- *
- * @param { Optional } sensitivity - Sensitivity to the digital crown rotation.
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- digitalCrownSensitivity(sensitivity: Optional): DatePickerAttribute;
-
- /**
- * Sets whether to enable haptic feedback.
- *
- * @param { Optional } enable - Whether to enable haptic feedback.
- *
true (default): Haptic feedback is enabled.
- *
false: Haptic feedback is disabled.
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
- * @since 18
- */
- enableHapticFeedback(enable: Optional): DatePickerAttribute;
-
- /**
- * Can scroll loop if true is set, on the contrary it can not.
- *
- * @param { Optional } isLoop
- * @returns { DatePickerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- */
- canLoop(isLoop: Optional): DatePickerAttribute;
- }
-
+ start?: Date;
+
/**
- * Defines the style of the lunar calendar switch in the DatePickerDialog component.
- *
- * @interface LunarSwitchStyle
+ * Specifies the end date for the date selector.
+ *
+ * @type { ?Date }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Specifies the end date for the date selector.
+ *
+ * @type { ?Date }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * End date of the picker.
+ *
+ * @type { ?Date }
+ * @default Date('2100-12-31')
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare interface LunarSwitchStyle {
- /**
- * Background color of the switch when it is on.
- *
- * @type { ?ResourceColor }
- * @default $r('sys.color.ohos_id_color_text_primary_actived')
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 14
- */
- selectedColor?: ResourceColor;
-
- /**
- * Border color of the switch when it is off.
- *
- * @type { ?ResourceColor }
- * @default $r('sys.color.ohos_id_color_switch_outline_off')
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 14
- */
- unselectedColor?: ResourceColor;
-
- /**
- * Color of the icon inside the switch.
- *
- * @type { ?ResourceColor }
- * @default Color.White
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 14
- */
- strokeColor?: ResourceColor;
- }
-
+ end?: Date;
+
/**
- * Defines the DatePickerDialogOptions for Data Picker Dialog.
+ * Specifies the date selector check date or time selector check time.
*
- * @extends DatePickerOptions
- * @interface DatePickerDialogOptions
+ * @type { ?Date }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Defines the DatePickerDialogOptions for Data Picker Dialog.
+ * Specifies the date selector check date or time selector check time.
*
- * @extends DatePickerOptions
- * @interface DatePickerDialogOptions
+ * @type { ?Date }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
*/
/**
- * Parameters of the date picker dialog box.
+ * Date of the selected item.
*
- * @extends DatePickerOptions
- * @interface DatePickerDialogOptions
+ * @type { ?Date }
+ * @default current system date
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 11
*/
- declare interface DatePickerDialogOptions extends DatePickerOptions {
- /**
- * Date selector: true: displays the lunar calendar. false: The lunar calendar is not displayed.
- *
- * @type { ?boolean }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Date selector: true: displays the lunar calendar. false: The lunar calendar is not displayed.
- *
- * @type { ?boolean }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Whether to display the lunar calendar.
- * The value true means to display the lunar calendar, and false means the opposite.
- *
- * @type { ?boolean }
- * @default false
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- lunar?: boolean;
-
- /**
- * Whether to show the switch to display the lunar.
- *
- * @type { ?boolean } value - indicates whether to show the switch to display the lunar.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Whether to display the lunar calendar switch.
- * The value true means to display the lunar calendar switch, and false means the opposite.
- *
- * @type { ?boolean } value - indicates whether to show the switch to display the lunar.
- * @default false
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- lunarSwitch?: boolean;
-
- /**
- * Style of the lunar calendar switch.
- *
- * @type { ?LunarSwitchStyle }
- * @default { selectedColor: $r('sys.color.ohos_id_color_text_primary_actived'),
- *
unselectedColor: $r('sys.color.ohos_id_color_switch_outline_off'), strokeColor: Color.White }.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 14
- */
- lunarSwitchStyle?: LunarSwitchStyle;
-
- /**
- * Indicates whether to show the time selector.
- *
- * @type { ?boolean }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Whether to display the time item.
- * The value true means to display the time item, and false means the opposite.
- *
- * NOTE:
- *
With showTime=true, the mode parameter has no effect and the default three columns for year,
- *
month, and day are displayed.
- *
- *
- * @type { ?boolean }
- * @default false
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- showTime?: boolean;
-
- /**
- * Indicates whether to display the 24-hour clock.
- *
- * @type { ?boolean }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Whether to display time in 24-hour format.
- * The value true means to display time in 24-hour format, and false means the opposite.
- *
- * NOTE:
- *
When the display time is in 12-hour format, the AM/PM zone does not change depending on the hour portion.
- *
- *
- * @type { ?boolean }
- * @default false
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- useMilitaryTime?: boolean;
-
- /**
- * Text style of disappearing items
- *
- * @type { ?PickerTextStyle }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Font color, font size, and font width for the top and bottom items.
- *
- * @type { ?PickerTextStyle }
- * @default {
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
}
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- disappearTextStyle?: PickerTextStyle;
-
- /**
- * Text style of normal items
- *
- * @type { ?PickerTextStyle }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Font color, font size, and font width of all items except the top, bottom, and selected items.
- *
- * @type { ?PickerTextStyle }
- * @default {
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
}
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- textStyle?: PickerTextStyle;
-
- /**
- * Style of accept button.
- *
- * NOTE:
- *
In the acceptButtonStyle and cancelButtonStyle configurations,
- *
only one primary field can be set to true at most.
- *
If both the primary fields are set to true, neither will take effect.
- *
- *
- * @type { ?PickerDialogButtonStyle }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 12
- */
- acceptButtonStyle?: PickerDialogButtonStyle;
-
- /**
- * Style of cancel button.
- *
- * NOTE:
- *
In the acceptButtonStyle and cancelButtonStyle configurations,
- *
only one primary field can be set to true at most.
- *
If both the primary fields are set to true, neither will take effect.
- *
- *
- * @type { ?PickerDialogButtonStyle }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 12
- */
- cancelButtonStyle?: PickerDialogButtonStyle;
-
- /**
- * Font color, font size, and font width of the selected item.
- *
- * @type { ?PickerTextStyle }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Font color, font size, and font width of the selected item.
- *
- * @type { ?PickerTextStyle }
- * @default {
color: '#ff007dff',
font: {
size: '20vp',
weight: FontWeight.Medium
}
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- selectedTextStyle?: PickerTextStyle;
-
- /**
- * Mask Region of dialog. The size cannot exceed the main window.
- *
- * @type { ?Rectangle }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Mask area of the dialog box.
- * Events outside the mask area are transparently transmitted, and events within the mask area are not.
- *
- * @type { ?Rectangle }
- * @default { x: 0, y: 0, width: '100%', height: '100%' }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- maskRect?: Rectangle;
-
- /**
- * Defines the dialog alignment of the screen.
- *
- * @type { ?DialogAlignment }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Alignment mode of the dialog box in the vertical direction.
- *
- * @type { ?DialogAlignment }
- * @default DialogAlignment.Default
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- alignment?: DialogAlignment;
-
- /**
- * Defines the dialog offset.
- *
- * @type { ?Offset }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Offset of the dialog box based on the alignment settings.
- *
- * @type { ?Offset }
- * @default { dx: 0 , dy: 0 }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- offset?: Offset;
-
- /**
- * Callback invoked when the OK button in the dialog box is clicked.
- *
- * @type { ?function }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- * @deprecated since 10
- * @useinstead datePicker/DatePickerDialogOptions#onDateAccept
- */
- onAccept?: (value: DatePickerResult) => void;
-
- /**
- * Called when the Cancel button in the dialog is clicked.
- *
- * @type { ?function }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Called when the Cancel button in the dialog is clicked.
- *
- * @type { ?function }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Called when the Cancel button in the dialog is clicked.
- *
- * @type { ?function }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- /**
- * Callback invoked when the Cancel button in the dialog box is clicked.
- * Anonymous Object Rectification.
- *
- * @type { ?VoidCallback }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- onCancel?: VoidCallback;
-
- /**
- * Callback invoked when the selected item in the picker changes.
- *
- * @type { ?function }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- * @deprecated since 10
- * @useinstead datePicker/DatePickerDialogOptions#onDateChange
- */
- onChange?: (value: DatePickerResult) => void;
-
- /**
- * Called when the OK button in the dialog is clicked.
- *
- * @type { ?function }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Called when the OK button in the dialog is clicked.
- *
- * @type { ?function }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- /**
- * Callback invoked when the OK button in the dialog box is clicked.
- *
- * NOTE:
- *
When showTime is set to true, the hour and minute in the value returned by
- *
the callback are the hour and minute selected in the picker. Otherwise,
- *
the hour and minute are the hour and minute of the system time.
- *
- *
- * @type { ?Callback }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- onDateAccept?: Callback;
-
- /**
- * This event is triggered when a DatePicker date or time is selected in dialog.
- *
- * @type { ?function }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Callback invoked when the selected item in the picker changes.
- *
- * @type { ?function }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- /**
- * Callback invoked when the selected item in the picker changes.
- * Anonymous Object Rectification.
- *
- * NOTE:
- *
When showTime is set to true, the hour and minute in the value returned by
- *
the callback are the hour and minute selected in the picker. Otherwise,
- *
the hour and minute are the hour and minute of the system time.
- *
- *
- * @type { ?Callback }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- onDateChange?: Callback;
-
- /**
- * Defines the datePickerDialog's background color
- *
- * @type { ?ResourceColor }
- * @default Color.Transparent
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 11
- */
- /**
- * Backplane color of the dialog box.
- *
- * @type { ?ResourceColor }
- * @default Color.Transparent
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 12
- */
- backgroundColor?: ResourceColor;
-
- /**
- * Defines the datePickerDialog's background blur Style
- *
- * @type { ?BlurStyle }
- * @default BlurStyle.COMPONENT_ULTRA_THICK
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 11
- */
- /**
- * Background blur style of the dialog box.
- *
- * @type { ?BlurStyle }
- * @default BlurStyle.COMPONENT_ULTRA_THICK
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 12
- */
- backgroundBlurStyle?: BlurStyle;
-
- /**
- * Options for customizing the background blur style.
- *
- * @type { ?BackgroundBlurStyleOptions }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 19
- */
- backgroundBlurStyleOptions?: BackgroundBlurStyleOptions;
-
- /**
- * Options for customizing the background effect.
- *
- * @type { ?BackgroundEffectOptions }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 19
- */
- backgroundEffect?: BackgroundEffectOptions;
-
- /**
- * Event callback when the dialog box appears.
- *
- * @type { ?function }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 12
- */
- /**
- * Event callback when the dialog box appears.
- *
- * NOTE:
- *
1. The normal timing sequence is as follows: onWillAppear > onDidAppear >
- * (onDateAccept/onCancel/onDateChange) > onWillDisappear > onDidDisappear.
- *
2. You can set the callback event for changing the dialog box display effect in onDidAppear.
- * The settings take effect next time the dialog box appears.
- *
3. If the user closes the dialog box immediately after it appears,
- * onWillDisappear is invoked before onDidAppear.
- *
4. If the dialog box is closed before its entrance animation is finished,
- * this callback is not invoked.
- *
- *
- * @type { ?VoidCallback }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- onDidAppear?: VoidCallback;
-
- /**
- * Callback function when the dialog disappears.
- *
- * @type { ?function }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 12
- */
- /**
- * Event callback when the dialog box disappears.
- *
- * NOTE:
- *
1. The normal timing sequence is as follows: onWillAppear > onDidAppear >
- *
(onDateAccept/onCancel/onDateChange) > onWillDisappear > onDidDisappear.
- *
- *
- * @type { ?VoidCallback }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- onDidDisappear?: VoidCallback;
-
- /**
- * Callback function before the dialog openAnimation starts.
- *
- * @type { ?function }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 12
- */
- /**
- * Event callback when the dialog box is about to appear.
- *
- * NOTE:
- *
1. The normal timing sequence is as follows: onWillAppear > onDidAppear >
- * (onDateAccept/onCancel/onDateChange) > onWillDisappear > onDidDisappear.
- *
2. You can set the callback event for changing the dialog box display effect in onWillAppear.
- * The settings take effect next time the dialog box appears.
- *
- *
- * @type { ?VoidCallback }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- onWillAppear?: VoidCallback;
-
- /**
- * Callback function before the dialog closeAnimation starts.
- *
- * @type { ?function }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 12
- */
- /**
- * Event callback when the dialog box is about to disappear.
- *
- * NOTE:
- *
1. The normal timing sequence is as follows: onWillAppear > onDidAppear >
- * (onDateAccept/onCancel/onDateChange) > onWillDisappear > onDidDisappear.
- *
2. If the user closes the dialog box immediately after it appears,
- * onWillDisappear is invoked before onDidAppear.
- *
- *
- * @type { ?VoidCallback }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- onWillDisappear?: VoidCallback;
-
- /**
- * Shadow of the dialog box.
- * Default value on 2-in-1 devices: ShadowStyle.OUTER_FLOATING_MD
- * when the dialog box is focused and ShadowStyle.OUTER_FLOATING_SM
- *
- * @type { ?(ShadowOptions | ShadowStyle) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 12
- */
- shadow?: ShadowOptions | ShadowStyle;
-
- /**
- * Whether to display a leading zero for the hours and minutes.
- *
- * NOTE:
- *
Currently only the configuration of the hour and minute parameters is supported.
- *
- *
- * @type { ?DateTimeOptions }
- * @default hour: In the 24-hour format, it defaults to 2-digit, which means a leading zero is used;
- *
In the 12-hour format, it defaults to numeric, which means no leading zero is used.
- *
minute: defaults to 2-digit, which means a leading zero is used.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 12
- */
- dateTimeOptions?: DateTimeOptions;
-
- /**
- * Whether to enable the hover mode.
- *
- * @type { ?boolean }
- * @default false - meaning not to enable the hover mode.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 14
- */
- enableHoverMode?: boolean;
-
- /**
- * Display area of the dialog box in hover mode.
- *
- * @type { ?HoverModeAreaType }
- * @default HoverModeAreaType.BOTTOM_SCREEN
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 14
- */
- hoverModeArea?: HoverModeAreaType;
-
- /**
- * Whether to enable haptic feedback.
- * The value true means to enable haptic feedback, and false means the opposite
- *
- * @type { ?boolean }
- * @default true
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
- * @since 18
- */
- enableHapticFeedback?: boolean;
-
- /**
- * Can scroll loop if true is set, on the contrary it can not.
- *
- * @type { ?boolean }
- * @default true
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- */
- canLoop?: boolean;
- }
+ selected?: Date;
/**
- * Defines DatePickerDialog which uses show method to show DatePicker dialog.
+ * Specifies the date selector check date or time selector check time.
+ *
+ * @type { ?(Date | Bindable) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ selected?: Date | Bindable;
+
+ /**
+ * Date columns to be displayed.
+ *
+ * NOTE:
+ *
In DatePickerDialog, with showTime=true, this parameter has no effect and the default three columns for year,
+ *
month, and day are displayed.
+ *
+ *
+ * @type { ?DatePickerMode }
+ * @default DatePickerMode.DATE - which means to display three columns: year, month, and day.
+ *
Decimal values are rounded off.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ mode?: DatePickerMode;
+}
+
+/**
+ * Defines the DatePicker Component.
+ *
+ * @interface DatePickerInterface
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+/**
+ * Defines the DatePicker Component.
+ *
+ * @interface DatePickerInterface
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+/**
+ * Creates a date picker in the given date range.
+ *
+ * @interface DatePickerInterface
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ * @noninterop
+ */
+interface DatePickerInterface {
+ /**
+ * Defines the DatePicker constructor.
*
+ * @param { DatePickerOptions } options
+ * @returns { DatePickerAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Defines DatePickerDialog which uses show method to show DatePicker dialog.
+ * Defines the DatePicker constructor.
*
+ * @param { DatePickerOptions } options
+ * @returns { DatePickerAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
*/
/**
- * Defines DatePickerDialog which uses show method to show DatePicker dialog.
+ * Parameters of the date picker.
*
+ * @param { DatePickerOptions } options - Parameters of the date picker.
+ * @returns { DatePickerAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare class DatePickerDialog {
- /**
- * Invoking method display.
- *
- * @param { DatePickerDialogOptions } options
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Invoking method display.
- *
- * @param { DatePickerDialogOptions } options
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Shows a date picker dialog box.
- *
- * @param { DatePickerDialogOptions } options - Parameters of the date picker dialog box.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- * @deprecated since 18
- * @useinstead ohos.arkui.UIContext.UIContext#showDatePickerDialog
- */
- static show(options?: DatePickerDialogOptions);
- }
-
+ (options?: DatePickerOptions): DatePickerAttribute;
+}
+
+/**
+ * Defines the DatePicker attribute functions.
+ *
+ * @extends CommonMethod
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+/**
+ * Defines the DatePicker attribute functions.
+ *
+ * @extends CommonMethod
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+/**
+ * Defines the DatePicker attribute functions.
+ *
+ * @extends CommonMethod
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ * @noninterop
+ */
+declare class DatePickerAttribute extends CommonMethod {
/**
- * Defines DatePicker Component.
+ * Date selector: true: displays the lunar calendar. false: The lunar calendar is not displayed.
*
+ * @param { boolean } value
+ * @returns { DatePickerAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Defines DatePicker Component.
+ * Date selector: true: displays the lunar calendar. false: The lunar calendar is not displayed.
*
+ * @param { boolean } value
+ * @returns { DatePickerAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
*/
/**
- * Defines DatePicker Component.
+ * Specifies whether to display the lunar calendar.
*
+ * @param { boolean } value - Whether to display the lunar calendar.
+ *
- true: Display the lunar calendar.
+ *
- false: Do not display the lunar.
+ * @default false
+ * @returns { DatePickerAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare const DatePicker: DatePickerInterface;
-
+ lunar(value: boolean): DatePickerAttribute;
+
/**
- * Defines DatePicker Component instance.
+ * Specifies whether to display the lunar calendar.
+ * This API supports the undefined type for the isLunar parameter.
*
+ * @param { Optional } isLunar - Whether to display the lunar calendar.
+ *
- true: Display the lunar calendar.
+ *
- false: Do not display the lunar.
+ * @default false
+ * @returns { DatePickerAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
+ lunar(isLunar: Optional): DatePickerAttribute;
+
/**
- * Defines DatePicker Component instance.
+ * Sets the text style of disappearing items
*
+ * @param { PickerTextStyle } value - indicates the text style of disappearing items.
+ * @returns { DatePickerAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
*/
/**
- * Defines DatePicker Component instance.
+ * Sets the text style for the top and bottom items.
*
+ * @param { PickerTextStyle } value - Font color, font size, and font weight of the top and bottom items.
+ * @default {
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
}
+ * @returns { DatePickerAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare const DatePickerInstance: DatePickerAttribute;
-
+ disappearTextStyle(value: PickerTextStyle): DatePickerAttribute;
+
+ /**
+ * Sets the text style for the top and bottom items.
+ * This API supports the undefined type for the style parameter.
+ *
+ * @param { Optional } style - Font color, font size, and font weight of the top and bottom items.
+ * @default {
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
}
+ * @returns { DatePickerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ disappearTextStyle(style: Optional): DatePickerAttribute;
+
+ /**
+ * Sets the text style of normal items
+ *
+ * @param { PickerTextStyle } value - indicates the text style of normal items.
+ * @returns { DatePickerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Sets the text style for all items except the top, bottom, and selected items.
+ *
+ * @param { PickerTextStyle } value - Font color, font size, and font weight of all items except the top,
+ *
bottom, and selected items.
+ * @default {
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
}
+ * @returns { DatePickerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ textStyle(value: PickerTextStyle): DatePickerAttribute;
+
+ /**
+ * Sets the text style for all items except the top, bottom, and selected items.
+ * This API supports the undefined type for the style parameter.
+ *
+ * @param { Optional } style - Font color, font size, and font weight of all items except the top,
+ *
bottom, and selected items.
+ * @default {
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
}
+ * @returns { DatePickerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ textStyle(style: Optional): DatePickerAttribute;
+
+ /**
+ * Sets the text style of selected items
+ *
+ * @param { PickerTextStyle } value - indicates the text style of selected items.
+ * @returns { DatePickerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Sets the text style for the selected item.
+ *
+ * @param { PickerTextStyle } value - Font color, font size, and font weight of the selected item.
+ * @default {
color: '#ff007dff',
font: {
size: '20vp',
weight: FontWeight.Medium
}
}
+ * @returns { DatePickerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ selectedTextStyle(value: PickerTextStyle): DatePickerAttribute;
+
+ /**
+ * Sets the text style for the selected item.
+ * this API supports the undefined type for the style parameter.
+ *
+ * @param { Optional } style - Font color, font size, and font weight of the selected item.
+ * @default {
color: '#ff007dff',
font: {
size: '20vp',
weight: FontWeight.Medium
}
}
+ * @returns { DatePickerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ selectedTextStyle(style: Optional): DatePickerAttribute;
+
+ /**
+ * Triggered when a date is selected.
+ *
+ * @param { function } callback
+ * @returns { DatePickerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ * @deprecated since 10
+ * @useinstead datePicker/DatePickerAttribute#onDateChange
+ */
+ onChange(callback: (value: DatePickerResult) => void): DatePickerAttribute;
-
\ No newline at end of file
+ /**
+ * This event is triggered when a DatePicker date or time is selected.
+ *
+ * @param { function } callback
+ * @returns { DatePickerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * This event is triggered when a DatePicker date or time is selected.
+ *
+ * @param { function } callback
+ * @returns { DatePickerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 11
+ */
+ /**
+ * Triggered when a date is selected.
+ * Anonymous Object Rectification.
+ *
+ * @param { Callback } callback
+ * @returns { DatePickerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ onDateChange(callback: Callback): DatePickerAttribute;
+
+ /**
+ * Triggered when a date is selected.
+ *
+ * @param { Optional> } callback
+ * @returns { DatePickerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ onDateChange(callback: Optional>): DatePickerAttribute;
+
+ /**
+ * Sets the sensitivity to the digital crown rotation.
+ *
+ * @param { Optional } sensitivity - Sensitivity to the digital crown rotation.
+ * @default CrownSensitivity.MEDIUM
+ * @returns { DatePickerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ digitalCrownSensitivity(sensitivity: Optional): DatePickerAttribute;
+
+ /**
+ * Sets whether to enable haptic feedback.
+ *
+ * @param { Optional } enable - Whether to enable haptic feedback.
+ *
true (default): Haptic feedback is enabled.
+ *
false: Haptic feedback is disabled.
+ * @default true
+ * @returns { DatePickerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ enableHapticFeedback(enable: Optional): DatePickerAttribute;
+
+ /**
+ * Can scroll loop if true is set, on the contrary it can not.
+ *
+ * @param { Optional } isLoop
+ * @returns { DatePickerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ */
+ canLoop(isLoop: Optional): DatePickerAttribute;
+}
+
+/**
+ * Defines the style of the lunar calendar switch in the DatePickerDialog component.
+ *
+ * @interface LunarSwitchStyle
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare interface LunarSwitchStyle {
+ /**
+ * Background color of the switch when it is on.
+ *
+ * @type { ?ResourceColor }
+ * @default $r('sys.color.ohos_id_color_text_primary_actived')
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ selectedColor?: ResourceColor;
+
+ /**
+ * Border color of the switch when it is off.
+ *
+ * @type { ?ResourceColor }
+ * @default $r('sys.color.ohos_id_color_switch_outline_off')
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ unselectedColor?: ResourceColor;
+
+ /**
+ * Color of the icon inside the switch.
+ *
+ * @type { ?ResourceColor }
+ * @default Color.White
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ strokeColor?: ResourceColor;
+}
+
+/**
+ * Defines the DatePickerDialogOptions for Data Picker Dialog.
+ *
+ * @extends DatePickerOptions
+ * @interface DatePickerDialogOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+/**
+ * Defines the DatePickerDialogOptions for Data Picker Dialog.
+ *
+ * @extends DatePickerOptions
+ * @interface DatePickerDialogOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+/**
+ * Parameters of the date picker dialog box.
+ *
+ * @extends DatePickerOptions
+ * @interface DatePickerDialogOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare interface DatePickerDialogOptions extends DatePickerOptions {
+ /**
+ * Date selector: true: displays the lunar calendar. false: The lunar calendar is not displayed.
+ *
+ * @type { ?boolean }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Date selector: true: displays the lunar calendar. false: The lunar calendar is not displayed.
+ *
+ * @type { ?boolean }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Whether to display the lunar calendar.
+ * The value true means to display the lunar calendar, and false means the opposite.
+ *
+ * @type { ?boolean }
+ * @default false
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ lunar?: boolean;
+
+ /**
+ * Whether to show the switch to display the lunar.
+ *
+ * @type { ?boolean } value - indicates whether to show the switch to display the lunar.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Whether to display the lunar calendar switch.
+ * The value true means to display the lunar calendar switch, and false means the opposite.
+ *
+ * @type { ?boolean } value - indicates whether to show the switch to display the lunar.
+ * @default false
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ lunarSwitch?: boolean;
+
+ /**
+ * Style of the lunar calendar switch.
+ *
+ * @type { ?LunarSwitchStyle }
+ * @default { selectedColor: $r('sys.color.ohos_id_color_text_primary_actived'),
+ *
unselectedColor: $r('sys.color.ohos_id_color_switch_outline_off'), strokeColor: Color.White }.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ lunarSwitchStyle?: LunarSwitchStyle;
+
+ /**
+ * Indicates whether to show the time selector.
+ *
+ * @type { ?boolean }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Whether to display the time item.
+ * The value true means to display the time item, and false means the opposite.
+ *
+ * NOTE:
+ *
With showTime=true, the mode parameter has no effect and the default three columns for year,
+ *
month, and day are displayed.
+ *
+ *
+ * @type { ?boolean }
+ * @default false
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ showTime?: boolean;
+
+ /**
+ * Indicates whether to display the 24-hour clock.
+ *
+ * @type { ?boolean }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Whether to display time in 24-hour format.
+ * The value true means to display time in 24-hour format, and false means the opposite.
+ *
+ * NOTE:
+ *
When the display time is in 12-hour format, the AM/PM zone does not change depending on the hour portion.
+ *
+ *
+ * @type { ?boolean }
+ * @default false
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ useMilitaryTime?: boolean;
+
+ /**
+ * Text style of disappearing items
+ *
+ * @type { ?PickerTextStyle }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Font color, font size, and font width for the top and bottom items.
+ *
+ * @type { ?PickerTextStyle }
+ * @default {
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
}
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ disappearTextStyle?: PickerTextStyle;
+
+ /**
+ * Text style of normal items
+ *
+ * @type { ?PickerTextStyle }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Font color, font size, and font width of all items except the top, bottom, and selected items.
+ *
+ * @type { ?PickerTextStyle }
+ * @default {
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
}
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ textStyle?: PickerTextStyle;
+
+ /**
+ * Style of accept button.
+ *
+ * NOTE:
+ *
In the acceptButtonStyle and cancelButtonStyle configurations,
+ *
only one primary field can be set to true at most.
+ *
If both the primary fields are set to true, neither will take effect.
+ *
+ *
+ * @type { ?PickerDialogButtonStyle }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ acceptButtonStyle?: PickerDialogButtonStyle;
+
+ /**
+ * Style of cancel button.
+ *
+ * NOTE:
+ *
In the acceptButtonStyle and cancelButtonStyle configurations,
+ *
only one primary field can be set to true at most.
+ *
If both the primary fields are set to true, neither will take effect.
+ *
+ *
+ * @type { ?PickerDialogButtonStyle }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ cancelButtonStyle?: PickerDialogButtonStyle;
+
+ /**
+ * Font color, font size, and font width of the selected item.
+ *
+ * @type { ?PickerTextStyle }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Font color, font size, and font width of the selected item.
+ *
+ * @type { ?PickerTextStyle }
+ * @default {
color: '#ff007dff',
font: {
size: '20vp',
weight: FontWeight.Medium
}
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ selectedTextStyle?: PickerTextStyle;
+
+ /**
+ * Mask Region of dialog. The size cannot exceed the main window.
+ *
+ * @type { ?Rectangle }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Mask area of the dialog box.
+ * Events outside the mask area are transparently transmitted, and events within the mask area are not.
+ *
+ * @type { ?Rectangle }
+ * @default { x: 0, y: 0, width: '100%', height: '100%' }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ maskRect?: Rectangle;
+
+ /**
+ * Defines the dialog alignment of the screen.
+ *
+ * @type { ?DialogAlignment }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Alignment mode of the dialog box in the vertical direction.
+ *
+ * @type { ?DialogAlignment }
+ * @default DialogAlignment.Default
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ alignment?: DialogAlignment;
+
+ /**
+ * Defines the dialog offset.
+ *
+ * @type { ?Offset }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Offset of the dialog box based on the alignment settings.
+ *
+ * @type { ?Offset }
+ * @default { dx: 0 , dy: 0 }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ offset?: Offset;
+
+ /**
+ * Callback invoked when the OK button in the dialog box is clicked.
+ *
+ * @type { ?function }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ * @deprecated since 10
+ * @useinstead datePicker/DatePickerDialogOptions#onDateAccept
+ */
+ onAccept?: (value: DatePickerResult) => void;
+
+ /**
+ * Called when the Cancel button in the dialog is clicked.
+ *
+ * @type { ?function }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Called when the Cancel button in the dialog is clicked.
+ *
+ * @type { ?function }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Called when the Cancel button in the dialog is clicked.
+ *
+ * @type { ?function }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 11
+ */
+ /**
+ * Callback invoked when the Cancel button in the dialog box is clicked.
+ * Anonymous Object Rectification.
+ *
+ * @type { ?VoidCallback }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ onCancel?: VoidCallback;
+
+ /**
+ * Callback invoked when the selected item in the picker changes.
+ *
+ * @type { ?function }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ * @deprecated since 10
+ * @useinstead datePicker/DatePickerDialogOptions#onDateChange
+ */
+ onChange?: (value: DatePickerResult) => void;
+
+ /**
+ * Called when the OK button in the dialog is clicked.
+ *
+ * @type { ?function }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Called when the OK button in the dialog is clicked.
+ *
+ * @type { ?function }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 11
+ */
+ /**
+ * Callback invoked when the OK button in the dialog box is clicked.
+ *
+ * NOTE:
+ *
When showTime is set to true, the hour and minute in the value returned by
+ *
the callback are the hour and minute selected in the picker. Otherwise,
+ *
the hour and minute are the hour and minute of the system time.
+ *
+ *
+ * @type { ?Callback }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ onDateAccept?: Callback;
+
+ /**
+ * This event is triggered when a DatePicker date or time is selected in dialog.
+ *
+ * @type { ?function }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Callback invoked when the selected item in the picker changes.
+ *
+ * @type { ?function }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 11
+ */
+ /**
+ * Callback invoked when the selected item in the picker changes.
+ * Anonymous Object Rectification.
+ *
+ * NOTE:
+ *
When showTime is set to true, the hour and minute in the value returned by
+ *
the callback are the hour and minute selected in the picker. Otherwise,
+ *
the hour and minute are the hour and minute of the system time.
+ *
+ *
+ * @type { ?Callback }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ onDateChange?: Callback;
+
+ /**
+ * Defines the datePickerDialog's background color
+ *
+ * @type { ?ResourceColor }
+ * @default Color.Transparent
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 11
+ */
+ /**
+ * Backplane color of the dialog box.
+ *
+ * @type { ?ResourceColor }
+ * @default Color.Transparent
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ backgroundColor?: ResourceColor;
+
+ /**
+ * Defines the datePickerDialog's background blur Style
+ *
+ * @type { ?BlurStyle }
+ * @default BlurStyle.COMPONENT_ULTRA_THICK
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 11
+ */
+ /**
+ * Background blur style of the dialog box.
+ *
+ * @type { ?BlurStyle }
+ * @default BlurStyle.COMPONENT_ULTRA_THICK
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ backgroundBlurStyle?: BlurStyle;
+
+ /**
+ * Options for customizing the background blur style.
+ *
+ * @type { ?BackgroundBlurStyleOptions }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'19','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ backgroundBlurStyleOptions?: BackgroundBlurStyleOptions;
+
+ /**
+ * Options for customizing the background effect.
+ *
+ * @type { ?BackgroundEffectOptions }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'19','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ backgroundEffect?: BackgroundEffectOptions;
+
+ /**
+ * Event callback when the dialog box appears.
+ *
+ * @type { ?function }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 12
+ */
+ /**
+ * Event callback when the dialog box appears.
+ *
+ * NOTE:
+ *
1. The normal timing sequence is as follows: onWillAppear > onDidAppear >
+ * (onDateAccept/onCancel/onDateChange) > onWillDisappear > onDidDisappear.
+ *
2. You can set the callback event for changing the dialog box display effect in onDidAppear.
+ * The settings take effect next time the dialog box appears.
+ *
3. If the user closes the dialog box immediately after it appears,
+ * onWillDisappear is invoked before onDidAppear.
+ *
4. If the dialog box is closed before its entrance animation is finished,
+ * this callback is not invoked.
+ *
+ *
+ * @type { ?VoidCallback }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ onDidAppear?: VoidCallback;
+
+ /**
+ * Callback function when the dialog disappears.
+ *
+ * @type { ?function }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 12
+ */
+ /**
+ * Event callback when the dialog box disappears.
+ *
+ * NOTE:
+ *
1. The normal timing sequence is as follows: onWillAppear > onDidAppear >
+ *
(onDateAccept/onCancel/onDateChange) > onWillDisappear > onDidDisappear.
+ *
+ *
+ * @type { ?VoidCallback }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ onDidDisappear?: VoidCallback;
+
+ /**
+ * Callback function before the dialog openAnimation starts.
+ *
+ * @type { ?function }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 12
+ */
+ /**
+ * Event callback when the dialog box is about to appear.
+ *
+ * NOTE:
+ *
1. The normal timing sequence is as follows: onWillAppear > onDidAppear >
+ * (onDateAccept/onCancel/onDateChange) > onWillDisappear > onDidDisappear.
+ *
2. You can set the callback event for changing the dialog box display effect in onWillAppear.
+ * The settings take effect next time the dialog box appears.
+ *
+ *
+ * @type { ?VoidCallback }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ onWillAppear?: VoidCallback;
+
+ /**
+ * Callback function before the dialog closeAnimation starts.
+ *
+ * @type { ?function }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 12
+ */
+ /**
+ * Event callback when the dialog box is about to disappear.
+ *
+ * NOTE:
+ *
1. The normal timing sequence is as follows: onWillAppear > onDidAppear >
+ * (onDateAccept/onCancel/onDateChange) > onWillDisappear > onDidDisappear.
+ *
2. If the user closes the dialog box immediately after it appears,
+ * onWillDisappear is invoked before onDidAppear.
+ *
+ *
+ * @type { ?VoidCallback }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ onWillDisappear?: VoidCallback;
+
+ /**
+ * Shadow of the dialog box.
+ * Default value on 2-in-1 devices: ShadowStyle.OUTER_FLOATING_MD
+ * when the dialog box is focused and ShadowStyle.OUTER_FLOATING_SM
+ *
+ * @type { ?(ShadowOptions | ShadowStyle) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ shadow?: ShadowOptions | ShadowStyle;
+
+ /**
+ * Whether to display a leading zero for the hours and minutes.
+ *
+ * NOTE:
+ *
Currently only the configuration of the hour and minute parameters is supported.
+ *
+ *
+ * @type { ?DateTimeOptions }
+ * @default hour: In the 24-hour format, it defaults to 2-digit, which means a leading zero is used;
+ *
In the 12-hour format, it defaults to numeric, which means no leading zero is used.
+ *
minute: defaults to 2-digit, which means a leading zero is used.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ dateTimeOptions?: DateTimeOptions;
+
+ /**
+ * Whether to enable the hover mode.
+ *
+ * @type { ?boolean }
+ * @default false - meaning not to enable the hover mode.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ enableHoverMode?: boolean;
+
+ /**
+ * Display area of the dialog box in hover mode.
+ *
+ * @type { ?HoverModeAreaType }
+ * @default HoverModeAreaType.BOTTOM_SCREEN
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ hoverModeArea?: HoverModeAreaType;
+
+ /**
+ * Whether to enable haptic feedback.
+ * The value true means to enable haptic feedback, and false means the opposite
+ *
+ * @type { ?boolean }
+ * @default true
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ enableHapticFeedback?: boolean;
+
+ /**
+ * Can scroll loop if true is set, on the contrary it can not.
+ *
+ * @type { ?boolean }
+ * @default true
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ */
+ canLoop?: boolean;
+}
+
+/**
+ * Defines DatePickerDialog which uses show method to show DatePicker dialog.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+/**
+ * Defines DatePickerDialog which uses show method to show DatePicker dialog.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+/**
+ * Defines DatePickerDialog which uses show method to show DatePicker dialog.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare class DatePickerDialog {
+ /**
+ * Invoking method display.
+ *
+ * @param { DatePickerDialogOptions } options
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Invoking method display.
+ *
+ * @param { DatePickerDialogOptions } options
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Shows a date picker dialog box.
+ *
+ * @param { DatePickerDialogOptions } options - Parameters of the date picker dialog box.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 11
+ * @deprecated since 18
+ * @useinstead ohos.arkui.UIContext.UIContext#showDatePickerDialog
+ */
+ static show(options?: DatePickerDialogOptions);
+}
+
+/**
+ * Defines DatePicker Component.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+/**
+ * Defines DatePicker Component.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+/**
+ * Defines DatePicker Component.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 11
+ * @noninterop
+ */
+declare const DatePicker: DatePickerInterface;
+
+/**
+ * Defines DatePicker Component instance.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+/**
+ * Defines DatePicker Component instance.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+/**
+ * Defines DatePicker Component instance.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 11
+ * @noninterop
+ */
+declare const DatePickerInstance: DatePickerAttribute;
+
+
diff --git a/api/@internal/component/ets/gauge.d.ts b/api/@internal/component/ets/gauge.d.ts
index 9b39da9c99f24917745844fb511e953d9b0e56c7..2121c7bb5b6da8b3d22ba5c034b9092824638862 100644
--- a/api/@internal/component/ets/gauge.d.ts
+++ b/api/@internal/component/ets/gauge.d.ts
@@ -18,6 +18,13 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { CommonMethod,CommonConfiguration,ContentModifier,MultiShadowOptions,Optional } from './common'
+import { CustomBuilder } from './builder'
+import { ResourceStr,Dimension,ResourceColor,Length } from './units'
+import { LinearGradient } from './dataPanel'
+/*** endif */
+
/**
* Defines Gauge constructor options.
*
@@ -26,7 +33,8 @@
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface GaugeOptions {
/**
@@ -72,7 +80,8 @@ interface GaugeOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
value: number;
@@ -119,7 +128,8 @@ interface GaugeOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
min?: number;
@@ -166,7 +176,8 @@ interface GaugeOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
max?: number;
}
@@ -203,7 +214,9 @@ interface GaugeOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ * @noninterop
*/
interface GaugeInterface {
/**
@@ -262,7 +275,8 @@ interface GaugeInterface {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
(options: GaugeOptions): GaugeAttribute;
}
@@ -284,7 +298,8 @@ interface GaugeInterface {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface GaugeShadowOptions extends MultiShadowOptions {}
@@ -303,7 +318,8 @@ declare interface GaugeShadowOptions extends MultiShadowOptions {}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface GaugeIndicatorOptions {
@@ -324,7 +340,8 @@ declare interface GaugeIndicatorOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
icon?: ResourceStr;
@@ -345,7 +362,8 @@ declare interface GaugeIndicatorOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
space?: Dimension;
}
@@ -358,7 +376,8 @@ declare interface GaugeIndicatorOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface GaugeConfiguration extends CommonConfiguration {
/**
@@ -368,7 +387,8 @@ declare interface GaugeConfiguration extends CommonConfiguration {
/**
@@ -458,7 +482,8 @@ declare class GaugeAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
value(value: number): GaugeAttribute;
@@ -498,7 +523,8 @@ declare class GaugeAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
startAngle(angle: number): GaugeAttribute;
@@ -538,7 +564,8 @@ declare class GaugeAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
endAngle(angle: number): GaugeAttribute;
@@ -578,7 +605,8 @@ declare class GaugeAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
colors(colors: ResourceColor | LinearGradient | Array<[ResourceColor | LinearGradient, number]>): GaugeAttribute;
@@ -618,7 +646,8 @@ declare class GaugeAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
strokeWidth(length: Length): GaugeAttribute;
@@ -639,7 +668,8 @@ declare class GaugeAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
description(value: CustomBuilder): GaugeAttribute;
@@ -660,7 +690,8 @@ declare class GaugeAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
trackShadow(value: GaugeShadowOptions): GaugeAttribute;
@@ -681,7 +712,8 @@ declare class GaugeAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
indicator(value: GaugeIndicatorOptions): GaugeAttribute;
@@ -694,7 +726,8 @@ declare class GaugeAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
privacySensitive(isPrivacySensitiveMode: Optional): GaugeAttribute;
@@ -706,7 +739,8 @@ declare class GaugeAttribute 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): GaugeAttribute;
}
@@ -740,6 +774,7 @@ declare class GaugeAttribute extends CommonMethod {
* @form
* @atomicservice
* @since 11
+ * @noninterop
*/
declare const Gauge: GaugeInterface;
@@ -772,6 +807,7 @@ declare const Gauge: GaugeInterface;
* @form
* @atomicservice
* @since 11
+ * @noninterop
*/
declare const GaugeInstance: GaugeAttribute;
diff --git a/api/@internal/component/ets/image_animator.d.ts b/api/@internal/component/ets/image_animator.d.ts
index 85829650f83a8f38dd76547f563ea1c325bb5649..df829102b1c9f16e17d9387f034fa481abfd574d 100644
--- a/api/@internal/component/ets/image_animator.d.ts
+++ b/api/@internal/component/ets/image_animator.d.ts
@@ -18,6 +18,13 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { Resource } from "../../global/resource";
+import image from '../../@ohos.multimedia.image'
+import { CommonMethod, PixelMap } from './common'
+import { AnimationStatus,FillMode } from './enums'
+/*** endif */
+
/**
* Defines the ImageAnimator Interface.
*
@@ -42,723 +49,750 @@
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ * @noninterop
*/
- interface ImageAnimatorInterface {
- /**
- * ImageAnimator is returned.
- *
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * ImageAnimator is returned.
- *
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * ImageAnimator is returned.
- *
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- (): ImageAnimatorAttribute;
- }
-
- /**
- * Defines the ImageFrameInfo Interface.
- *
- * @interface ImageFrameInfo
+interface ImageAnimatorInterface {
+ /**
+ * ImageAnimator is returned.
+ *
+ * @returns { ImageAnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Defines the ImageFrameInfo Interface.
+ * ImageAnimator is returned.
*
- * @interface ImageFrameInfo
+ * @returns { ImageAnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Defines the ImageFrameInfo Interface.
+ * ImageAnimator is returned.
*
- * @interface ImageFrameInfo
+ * @returns { ImageAnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- interface ImageFrameInfo {
- /**
- * Image path
- *
- * @type { string }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Image path
- *
- * @type { string | Resource }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 9
- */
- /**
- * Image path
- *
- * @type { string | Resource }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Image path
- *
- * @type { string | Resource }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- /**
- * Image path
- *
- * @type { string | Resource | PixelMap }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 12
- */
- src: string | Resource | PixelMap;
- /**
- * Image width
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Image width
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Image width
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- width?: number | string;
- /**
- * Image height
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Image height
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Image height
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- height?: number | string;
- /**
- * Vertical coordinate of the image relative to the upper left corner of the component
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Vertical coordinate of the image relative to the upper left corner of the component
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Vertical coordinate of the image relative to the upper left corner of the component
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- top?: number | string;
- /**
- * Horizontal coordinate of the image relative to the upper left corner of the component
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Horizontal coordinate of the image relative to the upper left corner of the component
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Horizontal coordinate of the image relative to the upper left corner of the component
- *
- * @type { ?(number | string) }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- left?: number | string;
- /**
- * Playback duration of this image frame, in milliseconds.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Playback duration of this image frame, in milliseconds.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Playback duration of this image frame, in milliseconds.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- duration?: number;
- }
-
- /**
- * inheritance CommonMethod
- *
- * @extends CommonMethod
+ (): ImageAnimatorAttribute;
+}
+
+/**
+ * Defines the ImageFrameInfo Interface.
+ *
+ * @interface ImageFrameInfo
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+/**
+ * Defines the ImageFrameInfo Interface.
+ *
+ * @interface ImageFrameInfo
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Defines the ImageFrameInfo Interface.
+ *
+ * @interface ImageFrameInfo
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+interface ImageFrameInfo {
+ /**
+ * Image path
+ *
+ * @type { string }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * inheritance CommonMethod
+ * Image path
*
- * @extends CommonMethod
+ * @type { string | Resource }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 9
+ */
+ /**
+ * Image path
+ *
+ * @type { string | Resource }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * inheritance CommonMethod
+ * Image path
*
- * @extends CommonMethod
+ * @type { string | Resource }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
- declare class ImageAnimatorAttribute extends CommonMethod {
- /**
- * list images
- *
- * @param { Array } value
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * list images
- *
- * @param { Array } value
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Sets the image frame information.
- *
- * NOTE:
- *
Dynamic update is not supported.
- *
- *
- * @param { Array } value - Image frame informatio, Default value is [].
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- images(value: Array): ImageAnimatorAttribute;
-
- /**
- * The default value is the initial state, which is used to control the playback status.
- *
- * @param { AnimationStatus } value
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * The default value is the initial state, which is used to control the playback status.
- *
- * @param { AnimationStatus } value
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Sets the playback state of the animation.
- *
- * @param { AnimationStatus } value - Playback state of the animation, Default value is AnimationStatus.Initial.
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- state(value: AnimationStatus): ImageAnimatorAttribute;
-
- /**
- * The unit is millisecond.
- *
- * @param { number } value
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * The unit is millisecond.
- *
- * @param { number } value
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Sets the playback duration.
- * The unit is millisecond.
- *
- * NOTE:
- *
This attribute does not take effect when a separate duration is set for any of the image frames.
- *
- *
- * @param { number } value - Playback duration, Default value is 1000.
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- duration(value: number): ImageAnimatorAttribute;
-
- /**
- * Set the playback sequence.
- *
- * @param { boolean } value
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Set the playback sequence.
- *
- * @param { boolean } value
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Sets the playback direction.
- *
- * @param { boolean } value - Playback direction, Default value is false.
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- reverse(value: boolean): ImageAnimatorAttribute;
-
- /**
- * Sets whether the image size is fixed to the component size.
- *
- * @param { boolean } value
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Sets whether the image size is fixed to the component size.
- *
- * @param { boolean } value
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Sets whether the image size is fixed at the component size.
- *
- * @param { boolean } value - Whether the image size is fixed at the component size, Default value is true.
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- fixedSize(value: boolean): ImageAnimatorAttribute;
-
- /**
- * Sets the number of images to be pre-decoded.
- *
- * @param { number } value - Number of images to be pre-decoded, Default value is 0.
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- * @deprecated since 9
- */
- preDecode(value: number): ImageAnimatorAttribute;
-
- /**
- * Sets the state before and after the animation starts
- *
- * @param { FillMode } value
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Sets the state before and after the animation starts
- *
- * @param { FillMode } value
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Sets the status before and after execution of the animation in the current playback direction.
- *
- * @param { FillMode } value - Status before and after execution of the animation in the current playback direction,
- * Default value is FillMode.Forwards.
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- fillMode(value: FillMode): ImageAnimatorAttribute;
-
- /**
- * Played once by default
- *
- * @param { number } value
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Played once by default
- *
- * @param { number } value
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Sets the number of times that the animation is played.
- * Played once by default
- *
- * @param { number } value - Number of times that the animation is played, Default value is 1.
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- iterations(value: number): ImageAnimatorAttribute;
-
- /**
- * Sets whether the component should automatically pause or resume based on its visibility, using the system's
- * onVisibleAreaChange event.
- *
- * @param { boolean } monitorInvisibleArea - Whether the component should automatically pause or resume based on
- * its visibility, using the system's onVisibleAreaChange event, Default value is false.
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 17
- */
- monitorInvisibleArea(monitorInvisibleArea: boolean) : ImageAnimatorAttribute;
-
- /**
- * Status callback, which is triggered when the animation starts to play.
- *
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Status callback, which is triggered when the animation starts to play.
- *
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Status callback, which is triggered when the animation starts to play.
- *
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- onStart(event: () => void): ImageAnimatorAttribute;
-
- /**
- * Status callback, which is triggered when the animation pauses.
- *
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Status callback, which is triggered when the animation pauses.
- *
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Status callback, which is triggered when the animation pauses.
- *
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- onPause(event: () => void): ImageAnimatorAttribute;
-
- /**
- * Status callback, triggered when the animation is replayed
- *
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Status callback, triggered when the animation is replayed
- *
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Status callback, triggered when the animation is replayed
- *
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- onRepeat(event: () => void): ImageAnimatorAttribute;
-
- /**
- * Status callback, which is triggered when the animation is canceled.
- *
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Status callback, which is triggered when the animation is canceled.
- *
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Status callback, which is triggered when the animation playback returns to the initial state.
- *
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- onCancel(event: () => void): ImageAnimatorAttribute;
-
- /**
- * Status callback, which is triggered when the animation playback is complete.
- *
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Status callback, which is triggered when the animation playback is complete.
- *
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Status callback, which is triggered when the animation playback is complete or stopped.
- *
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- onFinish(event: () => void): ImageAnimatorAttribute;
- }
-
- /**
- * Defines ImageAnimator Component.
+ /**
+ * Image path
+ *
+ * @type { string | Resource | PixelMap }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ src: string | Resource | PixelMap;
+ /**
+ * Image width
*
+ * @type { ?(number | string) }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Defines ImageAnimator Component.
+ * Image width
*
+ * @type { ?(number | string) }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Defines ImageAnimator Component.
+ * Image width
*
+ * @type { ?(number | string) }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare const ImageAnimator: ImageAnimatorInterface;
-
+ width?: number | string;
/**
- * Defines ImageAnimator Component instance.
+ * Image height
*
+ * @type { ?(number | string) }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Defines ImageAnimator Component instance.
+ * Image height
*
+ * @type { ?(number | string) }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Defines ImageAnimator Component instance.
+ * Image height
*
+ * @type { ?(number | string) }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ height?: number | string;
+ /**
+ * Vertical coordinate of the image relative to the upper left corner of the component
+ *
+ * @type { ?(number | string) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Vertical coordinate of the image relative to the upper left corner of the component
+ *
+ * @type { ?(number | string) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Vertical coordinate of the image relative to the upper left corner of the component
+ *
+ * @type { ?(number | string) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ top?: number | string;
+ /**
+ * Horizontal coordinate of the image relative to the upper left corner of the component
+ *
+ * @type { ?(number | string) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Horizontal coordinate of the image relative to the upper left corner of the component
+ *
+ * @type { ?(number | string) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Horizontal coordinate of the image relative to the upper left corner of the component
+ *
+ * @type { ?(number | string) }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ left?: number | string;
+ /**
+ * Playback duration of this image frame, in milliseconds.
+ *
+ * @type { ?number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Playback duration of this image frame, in milliseconds.
+ *
+ * @type { ?number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Playback duration of this image frame, in milliseconds.
+ *
+ * @type { ?number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ duration?: number;
+}
+
+/**
+ * inheritance CommonMethod
+ *
+ * @extends CommonMethod
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+/**
+ * inheritance CommonMethod
+ *
+ * @extends CommonMethod
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * inheritance CommonMethod
+ *
+ * @extends CommonMethod
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ * @noninterop
+ */
+declare class ImageAnimatorAttribute extends CommonMethod {
+ /**
+ * list images
+ *
+ * @param { Array } value
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * list images
+ *
+ * @param { Array } value
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Sets the image frame information.
+ *
+ * NOTE:
+ *
Dynamic update is not supported.
+ *
+ *
+ * @param { Array } value - Image frame informatio, Default value is [].
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ images(value: Array): ImageAnimatorAttribute;
+
+ /**
+ * The default value is the initial state, which is used to control the playback status.
+ *
+ * @param { AnimationStatus } value
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * The default value is the initial state, which is used to control the playback status.
+ *
+ * @param { AnimationStatus } value
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Sets the playback state of the animation.
+ *
+ * @param { AnimationStatus } value - Playback state of the animation, Default value is AnimationStatus.Initial.
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ state(value: AnimationStatus): ImageAnimatorAttribute;
+
+ /**
+ * The unit is millisecond.
+ *
+ * @param { number } value
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * The unit is millisecond.
+ *
+ * @param { number } value
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Sets the playback duration.
+ * The unit is millisecond.
+ *
+ * NOTE:
+ *
This attribute does not take effect when a separate duration is set for any of the image frames.
+ *
+ *
+ * @param { number } value - Playback duration, Default value is 1000.
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ duration(value: number): ImageAnimatorAttribute;
+
+ /**
+ * Set the playback sequence.
+ *
+ * @param { boolean } value
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Set the playback sequence.
+ *
+ * @param { boolean } value
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Sets the playback direction.
+ *
+ * @param { boolean } value - Playback direction, Default value is false.
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ reverse(value: boolean): ImageAnimatorAttribute;
+
+ /**
+ * Sets whether the image size is fixed to the component size.
+ *
+ * @param { boolean } value
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Sets whether the image size is fixed to the component size.
+ *
+ * @param { boolean } value
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Sets whether the image size is fixed at the component size.
+ *
+ * @param { boolean } value - Whether the image size is fixed at the component size, Default value is true.
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ fixedSize(value: boolean): ImageAnimatorAttribute;
+
+ /**
+ * Sets the number of images to be pre-decoded.
+ *
+ * @param { number } value - Number of images to be pre-decoded, Default value is 0.
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ * @deprecated since 9
+ */
+ preDecode(value: number): ImageAnimatorAttribute;
+
+ /**
+ * Sets the state before and after the animation starts
+ *
+ * @param { FillMode } value
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Sets the state before and after the animation starts
+ *
+ * @param { FillMode } value
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Sets the status before and after execution of the animation in the current playback direction.
+ *
+ * @param { FillMode } value - Status before and after execution of the animation in the current playback direction,
+ * Default value is FillMode.Forwards.
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ fillMode(value: FillMode): ImageAnimatorAttribute;
+
+ /**
+ * Played once by default
+ *
+ * @param { number } value
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Played once by default
+ *
+ * @param { number } value
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Sets the number of times that the animation is played.
+ * Played once by default
+ *
+ * @param { number } value - Number of times that the animation is played, Default value is 1.
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ iterations(value: number): ImageAnimatorAttribute;
+
+ /**
+ * Sets whether the component should automatically pause or resume based on its visibility, using the system's
+ * onVisibleAreaChange event.
+ *
+ * @param { boolean } monitorInvisibleArea - Whether the component should automatically pause or resume based on
+ * its visibility, using the system's onVisibleAreaChange event, Default value is false.
+ * @returns { ImageAnimatorAttribute }
+ * @default false
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'17','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ monitorInvisibleArea(monitorInvisibleArea: boolean) : ImageAnimatorAttribute;
+
+ /**
+ * Status callback, which is triggered when the animation starts to play.
+ *
+ * @param { function } event
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Status callback, which is triggered when the animation starts to play.
+ *
+ * @param { function } event
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Status callback, which is triggered when the animation starts to play.
+ *
+ * @param { function } event
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ onStart(event: () => void): ImageAnimatorAttribute;
+
+ /**
+ * Status callback, which is triggered when the animation pauses.
+ *
+ * @param { function } event
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Status callback, which is triggered when the animation pauses.
+ *
+ * @param { function } event
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Status callback, which is triggered when the animation pauses.
+ *
+ * @param { function } event
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ onPause(event: () => void): ImageAnimatorAttribute;
+
+ /**
+ * Status callback, triggered when the animation is replayed
+ *
+ * @param { function } event
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Status callback, triggered when the animation is replayed
+ *
+ * @param { function } event
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Status callback, triggered when the animation is replayed
+ *
+ * @param { function } event
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ onRepeat(event: () => void): ImageAnimatorAttribute;
+
+ /**
+ * Status callback, which is triggered when the animation is canceled.
+ *
+ * @param { function } event
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Status callback, which is triggered when the animation is canceled.
+ *
+ * @param { function } event
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Status callback, which is triggered when the animation playback returns to the initial state.
+ *
+ * @param { function } event
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ onCancel(event: () => void): ImageAnimatorAttribute;
+
+ /**
+ * Status callback, which is triggered when the animation playback is complete.
+ *
+ * @param { function } event
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Status callback, which is triggered when the animation playback is complete.
+ *
+ * @param { function } event
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
*/
- declare const ImageAnimatorInstance: ImageAnimatorAttribute;
-
\ No newline at end of file
+ /**
+ * Status callback, which is triggered when the animation playback is complete or stopped.
+ *
+ * @param { function } event
+ * @returns { ImageAnimatorAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ onFinish(event: () => void): ImageAnimatorAttribute;
+}
+
+/**
+ * Defines ImageAnimator Component.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+/**
+ * Defines ImageAnimator Component.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Defines ImageAnimator Component.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ * @noninterop
+ */
+declare const ImageAnimator: ImageAnimatorInterface;
+
+/**
+ * Defines ImageAnimator Component instance.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+/**
+ * Defines ImageAnimator Component instance.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Defines ImageAnimator Component instance.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ * @noninterop
+ */
+declare const ImageAnimatorInstance: ImageAnimatorAttribute;
diff --git a/api/@internal/component/ets/image_common.d.ts b/api/@internal/component/ets/image_common.d.ts
index 24962e1329561a009cb806c3940915d4890ad86c..7415991b1a970aabdba46f343a33f201a59f309c 100644
--- a/api/@internal/component/ets/image_common.d.ts
+++ b/api/@internal/component/ets/image_common.d.ts
@@ -24,7 +24,8 @@
* @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 ImageAnalyzerType {
/**
@@ -32,7 +33,8 @@ declare enum ImageAnalyzerType {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SUBJECT = 0,
@@ -41,7 +43,8 @@ declare enum ImageAnalyzerType {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TEXT,
@@ -50,7 +53,8 @@ declare enum ImageAnalyzerType {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OBJECT_LOOKUP,
}
@@ -60,7 +64,8 @@ declare enum ImageAnalyzerType {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class ImageAnalyzerController {
/**
@@ -68,17 +73,19 @@ declare class ImageAnalyzerController {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor();
-
+
/**
* Get image analyzer support types.
*
* @returns { ImageAnalyzerType[] }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
getImageAnalyzerSupportTypes(): ImageAnalyzerType[];
}
@@ -89,7 +96,8 @@ declare class ImageAnalyzerController {
* @interface ImageAnalyzerConfig
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ImageAnalyzerConfig {
/**
@@ -98,7 +106,8 @@ declare interface ImageAnalyzerConfig {
* @type { ImageAnalyzerType[] }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
types: ImageAnalyzerType[];
}
@@ -109,7 +118,8 @@ declare interface ImageAnalyzerConfig {
* @interface ImageAIOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ImageAIOptions {
/**
@@ -118,7 +128,8 @@ declare interface ImageAIOptions {
* @type { ?ImageAnalyzerType[] }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
types?: ImageAnalyzerType[];
@@ -128,7 +139,8 @@ declare interface ImageAIOptions {
* @type { ?ImageAnalyzerController }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
aiController?: ImageAnalyzerController;
-}
+}
\ No newline at end of file
diff --git a/api/@internal/component/ets/loading_progress.d.ts b/api/@internal/component/ets/loading_progress.d.ts
index c63b21e50fa6c99ddfdf5905ffdbc8fd678db064..2e7528f03e0fff48eb867751c41a1796dc4e083b 100644
--- a/api/@internal/component/ets/loading_progress.d.ts
+++ b/api/@internal/component/ets/loading_progress.d.ts
@@ -18,6 +18,11 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { CommonMethod,ContentModifier,CommonConfiguration } from './common'
+import { ResourceColor } from './units'
+/*** endif */
+
/**
* Load style of progress bar.
*
@@ -50,371 +55,386 @@
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare enum LoadingProgressStyle {
- /**
- * Default style.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Default style.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Default style.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Default style.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- Default,
-
- /**
- * Announcement style.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Announcement style.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Announcement style.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Announcement style.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- Circular,
-
- /**
- * The style of the track.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * The style of the track.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * The style of the track.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * The style of the track.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- Orbital,
- }
-
+declare enum LoadingProgressStyle {
/**
- * Provides an interface for extending the loading progress.
+ * Default style.
*
- * @interface LoadingProgressInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Provides an interface for extending the loading progress.
+ * Default style.
*
- * @interface LoadingProgressInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Provides an interface for extending the loading progress.
+ * Default style.
*
- * @interface LoadingProgressInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Provides an interface for extending the loading progress.
+ * Default style.
*
- * @interface LoadingProgressInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- interface LoadingProgressInterface {
- /**
- * Called when the progress bar progress is viewed.
- *
- * @returns { LoadingProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Called when the progress bar progress is viewed.
- *
- * @returns { LoadingProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Called when the progress bar progress is viewed.
- *
- * @returns { LoadingProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Called when the progress bar progress is viewed.
- *
- * @returns { LoadingProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- (): LoadingProgressAttribute;
- }
-
+ Default,
+
/**
- * Declare the progress bar being loaded
+ * Announcement style.
*
- * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Declare the progress bar being loaded
+ * Announcement style.
*
- * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Declare the progress bar being loaded
+ * Announcement style.
*
- * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Declare the progress bar being loaded
+ * Announcement style.
*
- * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ Circular,
+
+ /**
+ * The style of the track.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * The style of the track.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * The style of the track.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
*/
- declare class LoadingProgressAttribute extends CommonMethod {
- /**
- * Load the color of the progress bar.
- *
- * @param { ResourceColor } value
- * @returns { LoadingProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Load the color of the progress bar.
- *
- * @param { ResourceColor } value
- * @returns { LoadingProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Load the color of the progress bar.
- *
- * @param { ResourceColor } value
- * @returns { LoadingProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Load the color of the progress bar.
- *
- * @param { ResourceColor } value
- * @returns { LoadingProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- color(value: ResourceColor): LoadingProgressAttribute;
-
- /**
- * Whether to display the LoadingProgress content.
- *
- * @param { boolean } value - indicates the state of LoadingProgress content
- * @returns { LoadingProgressAttribute } the attribute of the LoadingProgress.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Whether to display the LoadingProgress content.
- *
- * @param { boolean } value - indicates the state of LoadingProgress content
- * @returns { LoadingProgressAttribute } the attribute of the LoadingProgress.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- enableLoading(value: boolean): LoadingProgressAttribute;
-
- /**
- * Set the content modifier of loadingProgress.
- *
- * @param { ContentModifier } modifier - The contentModifier of LoadingProgress.
- * @returns { LoadingProgressAttribute} the attribute of the loading progress
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 12
- */
- contentModifier(modifier: ContentModifier): LoadingProgressAttribute;
- }
-
/**
- * LoadingProgressConfiguration used by LoadingProgress contentModifier
+ * The style of the track.
*
- * @extends CommonConfiguration
- * @interface LoadingProgressConfiguration
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
+ * @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare interface LoadingProgressConfiguration extends CommonConfiguration {
- /**
- * Whether to enable the LoadingProgress content.
- *
- * @type { boolean }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 12
- */
- enableLoading: boolean;
- }
-
+ Orbital,
+}
+
+/**
+ * Provides an interface for extending the loading progress.
+ *
+ * @interface LoadingProgressInterface
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+/**
+ * Provides an interface for extending the loading progress.
+ *
+ * @interface LoadingProgressInterface
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Provides an interface for extending the loading progress.
+ *
+ * @interface LoadingProgressInterface
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Provides an interface for extending the loading progress.
+ *
+ * @interface LoadingProgressInterface
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ * @noninterop
+ */
+interface LoadingProgressInterface {
/**
- * Defines LoadingProgress Component.
+ * Called when the progress bar progress is viewed.
*
+ * @returns { LoadingProgressAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Defines LoadingProgress Component.
+ * Called when the progress bar progress is viewed.
*
+ * @returns { LoadingProgressAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Defines LoadingProgress Component.
+ * Called when the progress bar progress is viewed.
*
+ * @returns { LoadingProgressAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Defines LoadingProgress Component.
+ * Called when the progress bar progress is viewed.
*
+ * @returns { LoadingProgressAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare const LoadingProgress: LoadingProgressInterface;
-
+ (): LoadingProgressAttribute;
+}
+
+/**
+ * Declare the progress bar being loaded
+ *
+ * @extends CommonMethod
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+/**
+ * Declare the progress bar being loaded
+ *
+ * @extends CommonMethod
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Declare the progress bar being loaded
+ *
+ * @extends CommonMethod
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Declare the progress bar being loaded
+ *
+ * @extends CommonMethod
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ * @noninterop
+ */
+declare class LoadingProgressAttribute extends CommonMethod {
/**
- * Loading Progress Extensions on Declarative Classes
+ * Load the color of the progress bar.
*
+ * @param { ResourceColor } value
+ * @returns { LoadingProgressAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Loading Progress Extensions on Declarative Classes
+ * Load the color of the progress bar.
*
+ * @param { ResourceColor } value
+ * @returns { LoadingProgressAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Loading Progress Extensions on Declarative Classes
+ * Load the color of the progress bar.
*
+ * @param { ResourceColor } value
+ * @returns { LoadingProgressAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Loading Progress Extensions on Declarative Classes
+ * Load the color of the progress bar.
*
+ * @param { ResourceColor } value
+ * @returns { LoadingProgressAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare const LoadingProgressInstance: LoadingProgressAttribute;
-
\ No newline at end of file
+ color(value: ResourceColor): LoadingProgressAttribute;
+
+ /**
+ * Whether to display the LoadingProgress content.
+ *
+ * @param { boolean } value - indicates the state of LoadingProgress content
+ * @returns { LoadingProgressAttribute } the attribute of the LoadingProgress.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Whether to display the LoadingProgress content.
+ *
+ * @param { boolean } value - indicates the state of LoadingProgress content
+ * @returns { LoadingProgressAttribute } the attribute of the LoadingProgress.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ enableLoading(value: boolean): LoadingProgressAttribute;
+
+ /**
+ * Set the content modifier of loadingProgress.
+ *
+ * @param { ContentModifier } modifier - The contentModifier of LoadingProgress.
+ * @returns { LoadingProgressAttribute} the attribute of the loading progress
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ contentModifier(modifier: ContentModifier): LoadingProgressAttribute;
+}
+
+/**
+ * LoadingProgressConfiguration used by LoadingProgress contentModifier
+ *
+ * @extends CommonConfiguration
+ * @interface LoadingProgressConfiguration
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare interface LoadingProgressConfiguration extends CommonConfiguration {
+ /**
+ * Whether to enable the LoadingProgress content.
+ *
+ * @type { boolean }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ enableLoading: boolean;
+}
+
+/**
+ * Defines LoadingProgress Component.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+/**
+ * Defines LoadingProgress Component.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Defines LoadingProgress Component.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Defines LoadingProgress Component.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ * @noninterop
+ */
+declare const LoadingProgress: LoadingProgressInterface;
+
+/**
+ * Loading Progress Extensions on Declarative Classes
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+/**
+ * Loading Progress Extensions on Declarative Classes
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Loading Progress Extensions on Declarative Classes
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Loading Progress Extensions on Declarative Classes
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ * @noninterop
+ */
+declare const LoadingProgressInstance: LoadingProgressAttribute;
diff --git a/api/@internal/component/ets/pattern_lock.d.ts b/api/@internal/component/ets/pattern_lock.d.ts
index 9231675816a0d9ac46069d591ce107c9f458724b..30b8b6cb0acb46acce84fef75553a085708d015f 100644
--- a/api/@internal/component/ets/pattern_lock.d.ts
+++ b/api/@internal/component/ets/pattern_lock.d.ts
@@ -18,6 +18,12 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { ResourceColor, Length } from './units'
+import { LengthMetrics } from '../Graphics'
+import { CommonMethod, Callback, Optional } from './common'
+/*** endif */
+
/**
* The challenge result based on input pattern for control pattern lock component.
* @enum { number }
@@ -31,7 +37,8 @@
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum PatternLockChallengeResult {
/**
@@ -45,7 +52,8 @@ declare enum PatternLockChallengeResult {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
CORRECT = 1,
/**
@@ -59,7 +67,8 @@ declare enum PatternLockChallengeResult {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
WRONG = 2
}
@@ -71,7 +80,8 @@ declare enum PatternLockChallengeResult {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface CircleStyleOptions {
/**
@@ -81,7 +91,8 @@ declare interface CircleStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
color?: ResourceColor;
@@ -92,7 +103,8 @@ declare interface CircleStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
radius?: LengthMetrics;
@@ -103,7 +115,8 @@ declare interface CircleStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableWaveEffect?: boolean;
@@ -114,7 +127,8 @@ declare interface CircleStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enableForeground?: boolean;
}
@@ -138,7 +152,8 @@ declare interface CircleStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class PatternLockController {
/**
@@ -160,7 +175,8 @@ declare class PatternLockController {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
constructor();
@@ -186,6 +202,16 @@ declare class PatternLockController {
* @since 12
*/
reset();
+ /**
+ * Reset pattern lock.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ reset(): void;
/**
* Set challenge result.
@@ -200,7 +226,8 @@ declare class PatternLockController {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
setChallengeResult(result: PatternLockChallengeResult): void;
}
@@ -227,7 +254,9 @@ declare class PatternLockController {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ * @noninterop
*/
interface PatternLockInterface {
/**
@@ -255,7 +284,8 @@ interface PatternLockInterface {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
(controller?: PatternLockController): PatternLockAttribute;
}
@@ -282,7 +312,9 @@ interface PatternLockInterface {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ * @noninterop
*/
declare class PatternLockAttribute extends CommonMethod {
/**
@@ -314,7 +346,8 @@ declare class PatternLockAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
sideLength(value: Length): PatternLockAttribute;
@@ -347,7 +380,8 @@ declare class PatternLockAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
circleRadius(value: Length): PatternLockAttribute;
@@ -376,7 +410,8 @@ declare class PatternLockAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundColor(value: ResourceColor): PatternLockAttribute;
@@ -405,7 +440,8 @@ declare class PatternLockAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
regularColor(value: ResourceColor): PatternLockAttribute;
@@ -434,7 +470,8 @@ declare class PatternLockAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
selectedColor(value: ResourceColor): PatternLockAttribute;
@@ -463,7 +500,8 @@ declare class PatternLockAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
activeColor(value: ResourceColor): PatternLockAttribute;
@@ -492,7 +530,8 @@ declare class PatternLockAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
pathColor(value: ResourceColor): PatternLockAttribute;
@@ -525,7 +564,8 @@ declare class PatternLockAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
pathStrokeWidth(value: number | string): PatternLockAttribute;
@@ -554,7 +594,8 @@ declare class PatternLockAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
onPatternComplete(callback: (input: Array) => void): PatternLockAttribute;
@@ -585,7 +626,8 @@ declare class PatternLockAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
autoReset(value: boolean): PatternLockAttribute;
@@ -608,7 +650,19 @@ declare class PatternLockAttribute extends CommonMethod {
* @since 12
*/
onDotConnect(callback: import('../api/@ohos.base').Callback): PatternLockAttribute;
-
+
+ /**
+ * Called when connecting to a grid dot.
+ * @param { Callback } callback - A callback instance used when connection to a grid dot.
+ * @returns { PatternLockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ onDotConnect(callback: Callback): PatternLockAttribute;
+
/**
* Sets the background circle style for the dots in a grid when they are in the activated state.
*
@@ -617,7 +671,8 @@ declare class PatternLockAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
activateCircleStyle(options: Optional): PatternLockAttribute;
@@ -630,7 +685,8 @@ declare class PatternLockAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
skipUnselectedPoint(skipped: boolean): PatternLockAttribute;
}
@@ -655,6 +711,7 @@ declare class PatternLockAttribute extends CommonMethod {
* @crossplatform
* @atomicservice
* @since 12
+ * @noninterop
*/
declare const PatternLock: PatternLockInterface;
@@ -678,5 +735,6 @@ declare const PatternLock: PatternLockInterface;
* @crossplatform
* @atomicservice
* @since 12
+ * @noninterop
*/
declare const PatternLockInstance: PatternLockAttribute;
diff --git a/api/@internal/component/ets/progress.d.ts b/api/@internal/component/ets/progress.d.ts
index 2413ca6a2fbcca66c710a46e740a42185ec577e7..ceada3464a3b1f8238df86e4c034feffe31567a5 100644
--- a/api/@internal/component/ets/progress.d.ts
+++ b/api/@internal/component/ets/progress.d.ts
@@ -18,6 +18,14 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { ResourceColor,Length, PX , VP , LPX, Font, ResourceStr } from './units'
+import { Resource } from '../../global/resource';
+import { CommonMethod, Optional,ContentModifier,CommonConfiguration } from './common'
+import { LinearGradient } from './dataPanel'
+import { LengthMetrics } from '../Graphics'
+/*** endif */
+
/**
* Defines the option of Progress.
*
@@ -52,1620 +60,1818 @@
* @atomicservice
* @since 11
*/
- declare interface ProgressOptions {
- /**
- * Sets the value of Progress.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Sets the value of Progress.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Sets the value of Progress.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Sets the value of Progress.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- value: number;
-
- /**
- * Sets the total of Progress.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Sets the total of Progress.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Sets the total of Progress.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Sets the total of Progress.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- total?: number;
-
- /**
- * Sets the style of Progress.
- *
- * @type { ?ProgressStyle }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- * @deprecated since 8
- * @useinstead type
- */
- style?: ProgressStyle
-
- /**
- * Sets the type of Progress.
- *
- * @type { ?Type }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Sets the type of Progress.
- *
- * @type { ?Type }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Sets the type of Progress.
- *
- * @type { ?Type }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Sets the type of Progress.
- *
- * @type { ?Type }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- type?: Type
- }
-
- /**
- * Type of progress bar
- *
- * @enum { number }
+declare interface ProgressOptions {
+ /**
+ * Sets the value of Progress.
+ *
+ * @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
+ * @since 7
*/
/**
- * Type of progress bar
+ * Sets the value of Progress.
*
- * @enum { number }
+ * @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Type of progress bar
+ * Sets the value of Progress.
*
- * @enum { number }
+ * @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Type of progress bar
+ * Sets the value of Progress.
*
- * @enum { number }
+ * @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
- declare enum ProgressType {
- /**
- * Linear progress bar style.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Linear progress bar style.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Linear progress bar style.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Linear progress bar style.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- Linear = 0,
-
- /**
- * Ring progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Ring progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Ring progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Ring progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- Ring = 1,
-
- /**
- * Eclipse progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Eclipse progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Eclipse progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Eclipse progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- Eclipse = 2,
-
- /**
- * ScaleRing progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * ScaleRing progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * ScaleRing progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * ScaleRing progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- ScaleRing = 3,
-
- /**
- * Capsule progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Capsule progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Capsule progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Capsule progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- Capsule = 4
- }
-
- /**
- * Current status of progress bar.
- *
- * @enum { number }
+ value: number;
+
+ /**
+ * Sets the total of Progress.
+ *
+ * @type { ?number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Sets the total of Progress.
+ *
+ * @type { ?number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * Sets the total of Progress.
+ *
+ * @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
* @since 10
*/
/**
- * Current status of progress bar.
+ * Sets the total of Progress.
*
- * @enum { number }
+ * @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
+ * @form
* @atomicservice
* @since 11
*/
- declare enum ProgressStatus {
- /**
- * Loading status.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Loading status.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- LOADING,
-
- /**
- * Processing status.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Processing status.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- PROGRESSING
- }
-
- /**
- * Defines style options for progress component.
- *
- * @extends CommonProgressStyleOptions
- * @interface ProgressStyleOptions
+ total?: number;
+
+ /**
+ * Sets the style of Progress.
+ *
+ * @type { ?ProgressStyle }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ * @deprecated since 8
+ * @useinstead type
+ */
+ style?: ProgressStyle
+
+ /**
+ * Sets the type of Progress.
+ *
+ * @type { ?Type }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Defines style options for progress component.
+ * Sets the type of Progress.
*
- * @extends CommonProgressStyleOptions
- * @interface ProgressStyleOptions
+ * @type { ?Type }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Defines style options for progress component.
+ * Sets the type of Progress.
*
- * @extends CommonProgressStyleOptions
- * @interface ProgressStyleOptions
+ * @type { ?Type }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Defines style options for progress component.
+ * Sets the type of Progress.
*
- * @extends CommonProgressStyleOptions
- * @interface ProgressStyleOptions
+ * @type { ?Type }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
- declare interface ProgressStyleOptions extends CommonProgressStyleOptions {
- /**
- * Defines the strokeWidth property.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Defines the strokeWidth property.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Defines the strokeWidth property.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Defines the strokeWidth property.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- strokeWidth?: Length;
-
- /**
- * Defines the scaleCount property.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Defines the scaleCount property.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Defines the scaleCount property.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Defines the scaleCount property.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- scaleCount?: number;
-
- /**
- * Defines the scaleWidth property.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Defines the scaleWidth property.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Defines the scaleWidth property.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Defines the scaleWidth property.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- scaleWidth?: Length;
- }
-
- /**
- * Progress common style options.
- *
- * @interface CommonProgressStyleOptions
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
+ type?: Type
+}
+
+/**
+ * Defines the option of Progress.
+ *
+ * @interface ProgressOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare interface ProgressOptions {
+
/**
- * Progress common style options.
+ * Sets the value of Progress.
*
- * @interface CommonProgressStyleOptions
+ * @type { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
+ * @form
* @atomicservice
- * @since 11
+ * @since 20
+ * @arkts 1.2
*/
- declare interface CommonProgressStyleOptions {
- /**
- * Enable smooth effect.
- *
- * @type { ?boolean }
- * @default true
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Enable smooth effect.
- *
- * @type { ?boolean }
- * @default true
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- enableSmoothEffect?: boolean;
- }
-
- /**
- * Defines the enable scan effect.
- *
- * @interface ScanEffectOptions
+ value: number;
+
+ /**
+ * Sets the total of Progress.
+ *
+ * @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
*/
+ total?: number;
+
/**
- * Defines the enable scan effect.
+ * Sets the type of Progress.
*
- * @interface ScanEffectOptions
+ * @type { ?ProgressType }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
+ * @form
* @atomicservice
- * @since 11
+ * @since 20
+ * @arkts 1.2
*/
- declare interface ScanEffectOptions {
- /**
- * Enable scan effect.
- *
- * @type { ?boolean }
- * @default false
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Enable scan effect.
- *
- * @type { ?boolean }
- * @default false
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- enableScanEffect?: boolean;
- }
-
- /**
- * Defines the Eclipse style Options.
- *
- * @extends CommonProgressStyleOptions
- * @interface EclipseStyleOptions
+ type?: ProgressType
+}
+/**
+ * Type of progress bar
+ *
+ * @enum { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+/**
+ * Type of progress bar
+ *
+ * @enum { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Type of progress bar
+ *
+ * @enum { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Type of progress bar
+ *
+ * @enum { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare enum ProgressType {
+ /**
+ * Linear progress bar style.
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
+ * @since 8
*/
/**
- * Defines the Eclipse style Options.
+ * Linear progress bar style.
*
- * @extends CommonProgressStyleOptions
- * @interface EclipseStyleOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
- * @since 11
+ * @form
+ * @since 9
*/
- declare interface EclipseStyleOptions extends CommonProgressStyleOptions {
-
- }
-
/**
- * Defines the ScaleRing style Options.
+ * Linear progress bar style.
*
- * @extends CommonProgressStyleOptions
- * @interface ScaleRingStyleOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
* @since 10
*/
/**
- * Defines the ScaleRing style Options.
+ * Linear progress bar style.
*
- * @extends CommonProgressStyleOptions
- * @interface ScaleRingStyleOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
+ * @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ Linear = 0,
+
+ /**
+ * Ring progress bar.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Ring progress bar.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
*/
- declare interface ScaleRingStyleOptions extends CommonProgressStyleOptions {
- /**
- * Defines the strokeWidth property.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Defines the strokeWidth property.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- strokeWidth?: Length;
-
- /**
- * Defines the scaleWidth property.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Defines the scaleWidth property.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- scaleWidth?: Length;
-
- /**
- * Defines the scaleCount property.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Defines the scaleCount property.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- scaleCount?: number;
- }
-
- /**
- * Defines the ring style Options.
- *
- * @extends ScanEffectOptions, CommonProgressStyleOptions
- * @interface RingStyleOptions
+ /**
+ * Ring progress bar.
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
* @since 10
*/
/**
- * Defines the ring style Options.
+ * Ring progress bar.
*
- * @extends ScanEffectOptions, CommonProgressStyleOptions
- * @interface RingStyleOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
+ * @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare interface RingStyleOptions extends ScanEffectOptions, CommonProgressStyleOptions {
- /**
- * Defines the strokeWidth property.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Defines the strokeWidth property.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- strokeWidth?: Length;
-
- /**
- * Enables progress shadow.
- *
- * @type { ?boolean }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Enables progress shadow.
- *
- * @type { ?boolean }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- shadow?: boolean;
-
- /**
- * The status of progress, default is PROGRESSING. Set to LOADING status will trigger the loading animation.
- *
- * @type { ?ProgressStatus }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * The status of progress, default is PROGRESSING. Set to LOADING status will trigger the loading animation.
- *
- * @type { ?ProgressStatus }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- status?: ProgressStatus;
- }
-
- /**
- * Defines the linear style Options.
- *
- * @extends ScanEffectOptions, CommonProgressStyleOptions
- * @interface LinearStyleOptions
+ Ring = 1,
+
+ /**
+ * Eclipse progress bar.
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
+ * @since 8
*/
/**
- * Defines the linear style Options.
+ * Eclipse progress bar.
*
- * @extends ScanEffectOptions, CommonProgressStyleOptions
- * @interface LinearStyleOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
+ * @form
+ * @since 9
*/
- declare interface LinearStyleOptions extends ScanEffectOptions, CommonProgressStyleOptions {
- /**
- * Defines the strokeWidth property.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Defines the strokeWidth property.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- strokeWidth?: Length;
- /**
- * Defines the stroke radius property.
- *
- * @type { ?(PX | VP | LPX | Resource) }
- * @default strokeWidth / 2
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Defines the stroke radius property.
- *
- * @type { ?(PX | VP | LPX | Resource) }
- * @default strokeWidth / 2
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- strokeRadius?: PX | VP | LPX | Resource;
- }
-
- /**
- * Defines the capsule style Options.
- *
- * @extends ScanEffectOptions, CommonProgressStyleOptions
- * @interface CapsuleStyleOptions
+ /**
+ * Eclipse progress bar.
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
* @since 10
*/
/**
- * Defines the capsule style Options.
+ * Eclipse progress bar.
*
- * @extends ScanEffectOptions, CommonProgressStyleOptions
- * @interface CapsuleStyleOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
+ * @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare interface CapsuleStyleOptions extends ScanEffectOptions, CommonProgressStyleOptions {
- /**
- * Set the inner border color.
- *
- * @type { ?ResourceColor }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Set the inner border color.
- *
- * @type { ?ResourceColor }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- borderColor?: ResourceColor;
-
- /**
- * Set the border width.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Set the border width.
- *
- * @type { ?Length }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- borderWidth?: Length;
-
- /**
- * Set the text content.
- *
- * @type { ?string }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Set the text content.
- *
- * @type { ?string }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- /**
- * Set the text content.
- *
- * @type { ?ResourceStr }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- */
- content?: ResourceStr;
-
- /**
- * Set the text style.
- *
- * @type { ?Font }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Set the text style.
- *
- * @type { ?Font }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- font?: Font;
-
- /**
- * Set the text fontColor.
- *
- * @type { ?ResourceColor }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Set the text fontColor.
- *
- * @type { ?ResourceColor }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- fontColor?: ResourceColor;
-
- /**
- * show default percentage.
- *
- * @type { ?boolean }
- * @default false
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * show default percentage.
- *
- * @type { ?boolean }
- * @default false
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 11
- */
- showDefaultPercentage?: boolean;
-
- /**
- * Set border rounded corner radius.
- *
- * @type { ?LengthMetrics }
- * @default height / 2
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 18
- */
- borderRadius?: LengthMetrics;
- }
-
- /**
- * Type of progress bar
- *
- * @enum { number }
+ Eclipse = 2,
+
+ /**
+ * ScaleRing progress bar.
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
+ * @since 8
*/
/**
- * Type of progress bar
+ * ScaleRing progress bar.
*
- * @enum { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Type of progress bar
+ * ScaleRing progress bar.
*
- * @enum { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Type of progress bar
+ * ScaleRing progress bar.
*
- * @enum { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare enum ProgressStyle {
- /**
- * Linear progress bar style.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Linear progress bar style.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Linear progress bar style.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Linear progress bar style.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- Linear,
-
- /**
- * Ring progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Ring progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Ring progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Ring progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- Ring,
-
- /**
- * Eclipse progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Eclipse progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Eclipse progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Eclipse progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- Eclipse,
-
- /**
- * ScaleRing progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * ScaleRing progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * ScaleRing progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * ScaleRing progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- ScaleRing,
-
- /**
- * Capsule progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Capsule progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Capsule progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Capsule progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- Capsule,
- }
-
- /**
- * Defines the map for progress type and style.
- *
- * @interface ProgressStyleMap
+ ScaleRing = 3,
+
+ /**
+ * Capsule progress bar.
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
+ * @since 8
*/
/**
- * Defines the map for progress type and style.
+ * Capsule progress bar.
*
- * @interface ProgressStyleMap
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
- * @since 11
+ * @form
+ * @since 9
*/
- declare interface ProgressStyleMap {
- /**
- * Defines the map for Linear progress.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Defines the map for Linear progress.
- *
- * @type { LinearStyleOptions | ProgressStyleOptions }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
- * @since 11
- */
- [ProgressType.Linear]: LinearStyleOptions | ProgressStyleOptions;
-
- /**
- * Defines the map for Ring progress.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Defines the map for Ring progress.
- *
- * @type { RingStyleOptions | ProgressStyleOptions }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
- * @since 11
- */
- [ProgressType.Ring]: RingStyleOptions | ProgressStyleOptions;
-
- /**
- * Defines the map for Eclipse progress.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Defines the map for Eclipse progress.
- *
- * @type { EclipseStyleOptions | ProgressStyleOptions }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
- * @since 11
- */
- [ProgressType.Eclipse]: EclipseStyleOptions | ProgressStyleOptions;
-
- /**
- * Defines the map for ScaleRing progress.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Defines the map for ScaleRing progress.
- *
- * @type { ScaleRingStyleOptions | ProgressStyleOptions }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
- * @since 11
- */
- [ProgressType.ScaleRing]: ScaleRingStyleOptions | ProgressStyleOptions;
-
- /**
- * Defines the map for Capsule progress.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 10
- */
- /**
- * Defines the map for Capsule progress.
- *
- * @type { CapsuleStyleOptions | ProgressStyleOptions }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @atomicservice
- * @since 11
- */
- [ProgressType.Capsule]: CapsuleStyleOptions | ProgressStyleOptions;
- }
-
- /**
- * Provides the progress bar interface.
- *
- * @interface ProgressInterface
+ /**
+ * Capsule progress bar.
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
+ * @crossplatform
+ * @form
+ * @since 10
*/
/**
- * Provides the progress bar interface.
+ * Capsule progress bar.
*
- * @interface ProgressInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
* @form
- * @since 9
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ Capsule = 4
+}
+
+/**
+ * Current status of progress bar.
+ *
+ * @enum { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+/**
+ * Current status of progress bar.
+ *
+ * @enum { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare enum ProgressStatus {
+ /**
+ * Loading status.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
*/
/**
- * Provides the progress bar interface.
+ * Loading status.
*
- * @interface ProgressInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
- * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ LOADING,
+
+ /**
+ * Processing status.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 10
*/
/**
- * Provides the progress bar interface.
+ * Processing status.
*
- * @interface ProgressInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
- * @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- interface ProgressInterface {
- /**
- * Called when the progress bar is set.
- *
- * @param { ProgressOptions } options
- * @returns { ProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Called when the progress bar is set.
- *
- * @param { ProgressOptions } options
- * @returns { ProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Called when the progress bar is set.
- *
- * @param { ProgressOptions } options
- * @returns { ProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Called when the progress bar is set.
- *
- * @param { ProgressOptions } options
- * @returns { ProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- (options: ProgressOptions): ProgressAttribute;
- }
-
- /**
- * Defines the progress attribute functions.
- *
- * @extends CommonMethod>
+ PROGRESSING
+}
+
+/**
+ * Defines style options for progress component.
+ *
+ * @extends CommonProgressStyleOptions
+ * @interface ProgressStyleOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+/**
+ * Defines style options for progress component.
+ *
+ * @extends CommonProgressStyleOptions
+ * @interface ProgressStyleOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Defines style options for progress component.
+ *
+ * @extends CommonProgressStyleOptions
+ * @interface ProgressStyleOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Defines style options for progress component.
+ *
+ * @extends CommonProgressStyleOptions
+ * @interface ProgressStyleOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare interface ProgressStyleOptions extends CommonProgressStyleOptions {
+ /**
+ * Defines the strokeWidth property.
+ *
+ * @type { ?Length }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
+ * @since 8
*/
/**
- * Defines the progress attribute functions.
+ * Defines the strokeWidth property.
*
- * @extends CommonMethod>
+ * @type { ?Length }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Defines the progress attribute functions.
+ * Defines the strokeWidth property.
*
- * @extends CommonMethod>
+ * @type { ?Length }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Defines the progress attribute functions.
+ * Defines the strokeWidth property.
*
- * @extends CommonMethod>
+ * @type { ?Length }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
- */
- declare class ProgressAttribute extends CommonMethod> {
- /**
- * Called when the current progress value is set.
- *
- * @param { number } value
- * @returns { ProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Called when the current progress value is set.
- *
- * @param { number } value
- * @returns { ProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Called when the current progress value is set.
- *
- * @param { number } value
- * @returns { ProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Called when the current progress value is set.
- *
- * @param { number } value
- * @returns { ProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- value(value: number): ProgressAttribute;
-
- /**
- * Called when the progress bar foreground is set.
- *
- * @param { ResourceColor | LinearGradient } value
- * @returns { ProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Called when the progress bar foreground is set.
- *
- * @param { ResourceColor | LinearGradient } value
- * @returns { ProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Called when the progress bar foreground is set.
- *
- * @param { ResourceColor | LinearGradient } value - indicates the color of the progress.
- * @returns { ProgressAttribute } the attribute of the progress.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Called when the progress bar foreground is set.
- *
- * @param { ResourceColor | LinearGradient } value - indicates the color of the progress.
- * @returns { ProgressAttribute } the attribute of the progress.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- color(value: ResourceColor | LinearGradient): ProgressAttribute;
-
- /**
- * Called when the style of progress bar is set.
- *
- * @param { Style } value
- * @returns { ProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Called when the style of progress bar is set.
- *
- * @param { Style } value
- * @returns { ProgressAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Called when the style of progress bar is set.
- *
- * @param { Style } value - indicates the style of the progress.
- * @returns { ProgressAttribute } the attribute of the progress.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Called when the style of progress bar is set.
- *
- * @param { Style } value - indicates the style of the progress.
- * @returns { ProgressAttribute } the attribute of the progress.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- style(value: Style): ProgressAttribute;
-
- /**
- * Sets if mark to privacy sensitive.
- *
- * @param { Optional } isPrivacySensitiveMode - indicates if mark to privacy sensitive.
- * @returns { ProgressAttribute } the attribute of the progress.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 12
- */
- privacySensitive(isPrivacySensitiveMode: Optional): ProgressAttribute;
-
- /**
- * Set the contentModifier of progress.
- *
- * @param { ContentModifier } modifier - The contentModifier of progress.
- * @returns { ProgressAttribute } the attribute of the progress.
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 12
- */
- contentModifier(modifier: ContentModifier): ProgressAttribute;
- }
-
- /**
- * ProgressConfiguration used by progress contentModifier
- *
- * @extends CommonConfiguration
- * @interface ProgressConfiguration
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 12
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare interface ProgressConfiguration extends CommonConfiguration {
- /**
- * The value of Progress.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 12
- */
- value: number;
-
- /**
- * The total of Progress.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 12
- */
- total: number;
- }
-
- /**
- * Defines Progress Component.
+ strokeWidth?: Length;
+
+ /**
+ * Defines the scaleCount property.
*
+ * @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
+ * @since 8
*/
/**
- * Defines Progress Component.
+ * Defines the scaleCount property.
*
+ * @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Defines Progress Component.
+ * Defines the scaleCount property.
*
+ * @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Defines Progress Component.
+ * Defines the scaleCount property.
*
+ * @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare const Progress: ProgressInterface;
-
+ scaleCount?: number;
+
/**
- * Defines Progress Component instance.
+ * Defines the scaleWidth property.
*
+ * @type { ?Length }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
+ * @since 8
*/
/**
- * Defines Progress Component instance.
+ * Defines the scaleWidth property.
*
+ * @type { ?Length }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Defines Progress Component instance.
+ * Defines the scaleWidth property.
*
+ * @type { ?Length }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Defines Progress Component instance.
+ * Defines the scaleWidth property.
*
+ * @type { ?Length }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ scaleWidth?: Length;
+}
+
+/**
+ * Progress common style options.
+ *
+ * @interface CommonProgressStyleOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+/**
+ * Progress common style options.
+ *
+ * @interface CommonProgressStyleOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare interface CommonProgressStyleOptions {
+ /**
+ * Enable smooth effect.
+ *
+ * @type { ?boolean }
+ * @default true
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Enable smooth effect.
+ *
+ * @type { ?boolean }
+ * @default true
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
- declare const ProgressInstance: ProgressAttribute;
-
\ No newline at end of file
+ enableSmoothEffect?: boolean;
+}
+
+/**
+ * Defines the enable scan effect.
+ *
+ * @interface ScanEffectOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+/**
+ * Defines the enable scan effect.
+ *
+ * @interface ScanEffectOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare interface ScanEffectOptions {
+ /**
+ * Enable scan effect.
+ *
+ * @type { ?boolean }
+ * @default false
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Enable scan effect.
+ *
+ * @type { ?boolean }
+ * @default false
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ enableScanEffect?: boolean;
+}
+
+/**
+ * Defines the Eclipse style Options.
+ *
+ * @extends CommonProgressStyleOptions
+ * @interface EclipseStyleOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+/**
+ * Defines the Eclipse style Options.
+ *
+ * @extends CommonProgressStyleOptions
+ * @interface EclipseStyleOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare interface EclipseStyleOptions extends CommonProgressStyleOptions {
+
+}
+
+/**
+ * Defines the ScaleRing style Options.
+ *
+ * @extends CommonProgressStyleOptions
+ * @interface ScaleRingStyleOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+/**
+ * Defines the ScaleRing style Options.
+ *
+ * @extends CommonProgressStyleOptions
+ * @interface ScaleRingStyleOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare interface ScaleRingStyleOptions extends CommonProgressStyleOptions {
+ /**
+ * Defines the strokeWidth property.
+ *
+ * @type { ?Length }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Defines the strokeWidth property.
+ *
+ * @type { ?Length }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ strokeWidth?: Length;
+
+ /**
+ * Defines the scaleWidth property.
+ *
+ * @type { ?Length }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Defines the scaleWidth property.
+ *
+ * @type { ?Length }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ scaleWidth?: Length;
+
+ /**
+ * Defines the scaleCount property.
+ *
+ * @type { ?number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Defines the scaleCount property.
+ *
+ * @type { ?number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ scaleCount?: number;
+}
+
+/**
+ * Defines the ring style Options.
+ *
+ * @extends ScanEffectOptions, CommonProgressStyleOptions
+ * @interface RingStyleOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+/**
+ * Defines the ring style Options.
+ *
+ * @extends ScanEffectOptions, CommonProgressStyleOptions
+ * @interface RingStyleOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare interface RingStyleOptions extends ScanEffectOptions, CommonProgressStyleOptions {
+ /**
+ * Defines the strokeWidth property.
+ *
+ * @type { ?Length }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Defines the strokeWidth property.
+ *
+ * @type { ?Length }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ strokeWidth?: Length;
+
+ /**
+ * Enables progress shadow.
+ *
+ * @type { ?boolean }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Enables progress shadow.
+ *
+ * @type { ?boolean }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ shadow?: boolean;
+
+ /**
+ * The status of progress, default is PROGRESSING. Set to LOADING status will trigger the loading animation.
+ *
+ * @type { ?ProgressStatus }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * The status of progress, default is PROGRESSING. Set to LOADING status will trigger the loading animation.
+ *
+ * @type { ?ProgressStatus }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ status?: ProgressStatus;
+}
+
+/**
+ * Defines the linear style Options.
+ *
+ * @extends ScanEffectOptions, CommonProgressStyleOptions
+ * @interface LinearStyleOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+/**
+ * Defines the linear style Options.
+ *
+ * @extends ScanEffectOptions, CommonProgressStyleOptions
+ * @interface LinearStyleOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare interface LinearStyleOptions extends ScanEffectOptions, CommonProgressStyleOptions {
+ /**
+ * Defines the strokeWidth property.
+ *
+ * @type { ?Length }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Defines the strokeWidth property.
+ *
+ * @type { ?Length }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ strokeWidth?: Length;
+ /**
+ * Defines the stroke radius property.
+ *
+ * @type { ?(PX | VP | LPX | Resource) }
+ * @default strokeWidth / 2
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Defines the stroke radius property.
+ *
+ * @type { ?(PX | VP | LPX | Resource) }
+ * @default strokeWidth / 2
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ strokeRadius?: PX | VP | LPX | Resource;
+}
+
+/**
+ * Defines the capsule style Options.
+ *
+ * @extends ScanEffectOptions, CommonProgressStyleOptions
+ * @interface CapsuleStyleOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+/**
+ * Defines the capsule style Options.
+ *
+ * @extends ScanEffectOptions, CommonProgressStyleOptions
+ * @interface CapsuleStyleOptions
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare interface CapsuleStyleOptions extends ScanEffectOptions, CommonProgressStyleOptions {
+ /**
+ * Set the inner border color.
+ *
+ * @type { ?ResourceColor }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Set the inner border color.
+ *
+ * @type { ?ResourceColor }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ borderColor?: ResourceColor;
+
+ /**
+ * Set the border width.
+ *
+ * @type { ?Length }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Set the border width.
+ *
+ * @type { ?Length }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ borderWidth?: Length;
+
+ /**
+ * Set the text content.
+ *
+ * @type { ?string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Set the text content.
+ *
+ * @type { ?string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 11
+ */
+ /**
+ * Set the text content.
+ *
+ * @type { ?ResourceStr }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ */
+ content?: ResourceStr;
+
+ /**
+ * Set the text style.
+ *
+ * @type { ?Font }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Set the text style.
+ *
+ * @type { ?Font }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ font?: Font;
+
+ /**
+ * Set the text fontColor.
+ *
+ * @type { ?ResourceColor }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Set the text fontColor.
+ *
+ * @type { ?ResourceColor }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ fontColor?: ResourceColor;
+
+ /**
+ * show default percentage.
+ *
+ * @type { ?boolean }
+ * @default false
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * show default percentage.
+ *
+ * @type { ?boolean }
+ * @default false
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ showDefaultPercentage?: boolean;
+
+ /**
+ * Set border rounded corner radius.
+ *
+ * @type { ?LengthMetrics }
+ * @default height / 2
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ borderRadius?: LengthMetrics;
+}
+
+/**
+ * Type of progress bar
+ *
+ * @enum { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+/**
+ * Type of progress bar
+ *
+ * @enum { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Type of progress bar
+ *
+ * @enum { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Type of progress bar
+ *
+ * @enum { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare enum ProgressStyle {
+ /**
+ * Linear progress bar style.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Linear progress bar style.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * Linear progress bar style.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Linear progress bar style.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ Linear,
+
+ /**
+ * Ring progress bar.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Ring progress bar.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * Ring progress bar.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Ring progress bar.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ Ring,
+
+ /**
+ * Eclipse progress bar.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Eclipse progress bar.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * Eclipse progress bar.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Eclipse progress bar.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ Eclipse,
+
+ /**
+ * ScaleRing progress bar.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * ScaleRing progress bar.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * ScaleRing progress bar.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * ScaleRing progress bar.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ ScaleRing,
+
+ /**
+ * Capsule progress bar.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Capsule progress bar.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * Capsule progress bar.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Capsule progress bar.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ Capsule,
+}
+
+/**
+ * Defines the map for progress type and style.
+ *
+ * @interface ProgressStyleMap
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+/**
+ * Defines the map for progress type and style.
+ *
+ * @interface ProgressStyleMap
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare interface ProgressStyleMap {
+ /**
+ * Defines the map for Linear progress.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Defines the map for Linear progress.
+ *
+ * @type { LinearStyleOptions | ProgressStyleOptions }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 11
+ */
+ [ProgressType.Linear]: LinearStyleOptions | ProgressStyleOptions;
+
+ /**
+ * Defines the map for Ring progress.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Defines the map for Ring progress.
+ *
+ * @type { RingStyleOptions | ProgressStyleOptions }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 11
+ */
+ [ProgressType.Ring]: RingStyleOptions | ProgressStyleOptions;
+
+ /**
+ * Defines the map for Eclipse progress.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Defines the map for Eclipse progress.
+ *
+ * @type { EclipseStyleOptions | ProgressStyleOptions }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 11
+ */
+ [ProgressType.Eclipse]: EclipseStyleOptions | ProgressStyleOptions;
+
+ /**
+ * Defines the map for ScaleRing progress.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Defines the map for ScaleRing progress.
+ *
+ * @type { ScaleRingStyleOptions | ProgressStyleOptions }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 11
+ */
+ [ProgressType.ScaleRing]: ScaleRingStyleOptions | ProgressStyleOptions;
+
+ /**
+ * Defines the map for Capsule progress.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
+ */
+ /**
+ * Defines the map for Capsule progress.
+ *
+ * @type { CapsuleStyleOptions | ProgressStyleOptions }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 11
+ */
+ [ProgressType.Capsule]: CapsuleStyleOptions | ProgressStyleOptions;
+}
+
+/**
+ * Provides the progress bar interface.
+ *
+ * @interface ProgressInterface
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+/**
+ * Provides the progress bar interface.
+ *
+ * @interface ProgressInterface
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Provides the progress bar interface.
+ *
+ * @interface ProgressInterface
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Provides the progress bar interface.
+ *
+ * @interface ProgressInterface
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ * @noninterop
+ */
+interface ProgressInterface {
+ /**
+ * Called when the progress bar is set.
+ *
+ * @param { ProgressOptions } options
+ * @returns { ProgressAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Called when the progress bar is set.
+ *
+ * @param { ProgressOptions } options
+ * @returns { ProgressAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * Called when the progress bar is set.
+ *
+ * @param { ProgressOptions } options
+ * @returns { ProgressAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Called when the progress bar is set.
+ *
+ * @param { ProgressOptions } options
+ * @returns { ProgressAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ (options: ProgressOptions): ProgressAttribute;
+ /**
+ * Called when the progress bar is set.
+ *
+ * @param { ProgressOptions } options
+ * @returns { ProgressAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ (options: ProgressOptions): ProgressAttribute;
+}
+
+/**
+ * Defines the progress attribute functions.
+ *
+ * @extends CommonMethod>
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+/**
+ * Defines the progress attribute functions.
+ *
+ * @extends CommonMethod>
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Defines the progress attribute functions.
+ *
+ * @extends CommonMethod>
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Defines the progress attribute functions.
+ *
+ * @extends CommonMethod>
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ * @noninterop
+ */
+declare class ProgressAttribute extends CommonMethod> {
+ /**
+ * Called when the current progress value is set.
+ *
+ * @param { number } value
+ * @returns { ProgressAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Called when the current progress value is set.
+ *
+ * @param { number } value
+ * @returns { ProgressAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * Called when the current progress value is set.
+ *
+ * @param { number } value
+ * @returns { ProgressAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Called when the current progress value is set.
+ *
+ * @param { number } value
+ * @returns { ProgressAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ value(value: number): ProgressAttribute;
+
+ /**
+ * Called when the progress bar foreground is set.
+ *
+ * @param { ResourceColor | LinearGradient } value
+ * @returns { ProgressAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+ /**
+ * Called when the progress bar foreground is set.
+ *
+ * @param { ResourceColor | LinearGradient } value
+ * @returns { ProgressAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * Called when the progress bar foreground is set.
+ *
+ * @param { ResourceColor | LinearGradient } value - indicates the color of the progress.
+ * @returns { ProgressAttribute } the attribute of the progress.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Called when the progress bar foreground is set.
+ *
+ * @param { ResourceColor | LinearGradient } value - indicates the color of the progress.
+ * @returns { ProgressAttribute } the attribute of the progress.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ color(value: ResourceColor | LinearGradient): ProgressAttribute;
+
+ /**
+ * Called when the style of progress bar is set.
+ *
+ * @param { Style } value
+ * @returns { ProgressAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Called when the style of progress bar is set.
+ *
+ * @param { Style } value
+ * @returns { ProgressAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * Called when the style of progress bar is set.
+ *
+ * @param { Style } value - indicates the style of the progress.
+ * @returns { ProgressAttribute } the attribute of the progress.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Called when the style of progress bar is set.
+ *
+ * @param { Style } value - indicates the style of the progress.
+ * @returns { ProgressAttribute } the attribute of the progress.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ style(value: Style): ProgressAttribute;
+
+ /**
+ * Sets if mark to privacy sensitive.
+ *
+ * @param { Optional } isPrivacySensitiveMode - indicates if mark to privacy sensitive.
+ * @returns { ProgressAttribute } the attribute of the progress.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 12
+ */
+ privacySensitive(isPrivacySensitiveMode: Optional): ProgressAttribute;
+
+ /**
+ * Set the contentModifier of progress.
+ *
+ * @param { ContentModifier } modifier - The contentModifier of progress.
+ * @returns { ProgressAttribute } the attribute of the progress.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 12
+ */
+ contentModifier(modifier: ContentModifier): ProgressAttribute;
+}
+
+/**
+ * Defines the progress attribute functions.
+ *
+ * @extends CommonMethod
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ * @noninterop
+ */
+declare class ProgressAttribute extends CommonMethod {
+ /**
+ * Called when the current progress value is set.
+ *
+ * @param { number } value
+ * @returns { ProgressAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ value(value: number): ProgressAttribute;
+
+ /**
+ * Called when the progress bar foreground is set.
+ *
+ * @param { ResourceColor | LinearGradient } value - indicates the color of the progress.
+ * @returns { ProgressAttribute } the attribute of the progress.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ color(value: ResourceColor | LinearGradient): ProgressAttribute;
+
+ /**
+ * Called when the style of progress bar is set.
+ *
+ * @param { LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions } value - indicates the style of the progress.
+ * @returns { ProgressAttribute } the attribute of the progress.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ style(value: LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions): ProgressAttribute;
+
+ /**
+ * Sets if mark to privacy sensitive.
+ *
+ * @param { Optional } isPrivacySensitiveMode - indicates if mark to privacy sensitive.
+ * @returns { ProgressAttribute } the attribute of the progress.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ privacySensitive(isPrivacySensitiveMode: Optional): ProgressAttribute;
+
+ /**
+ * Set the contentModifier of progress.
+ *
+ * @param { ContentModifier } modifier - The contentModifier of progress.
+ * @returns { ProgressAttribute } the attribute of the progress.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ contentModifier(modifier: ContentModifier): ProgressAttribute;
+}
+
+/**
+ * ProgressConfiguration used by progress contentModifier
+ *
+ * @extends CommonConfiguration
+ * @interface ProgressConfiguration
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+declare interface ProgressConfiguration extends CommonConfiguration {
+ /**
+ * The value of Progress.
+ *
+ * @type { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ value: number;
+
+ /**
+ * The total of Progress.
+ *
+ * @type { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ total: number;
+}
+
+/**
+ * Defines Progress Component.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+/**
+ * Defines Progress Component.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Defines Progress Component.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Defines Progress Component.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ * @noninterop
+ */
+declare const Progress: ProgressInterface;
+
+/**
+ * Defines Progress Component instance.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 7
+ */
+/**
+ * Defines Progress Component instance.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Defines Progress Component instance.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Defines Progress Component instance.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ * @noninterop
+ */
+declare const ProgressInstance: ProgressAttribute;
diff --git a/api/@internal/component/ets/qrcode.d.ts b/api/@internal/component/ets/qrcode.d.ts
index ef9932eecfd28f2554c376d2c714606540a5eb51..1c06f29312ed93a98adf39fbfe58a04fb3432e63 100644
--- a/api/@internal/component/ets/qrcode.d.ts
+++ b/api/@internal/component/ets/qrcode.d.ts
@@ -18,6 +18,12 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { CommonMethod } from './common'
+import { ResourceColor, ResourceStr } from './units'
+import { Resource } from '../../global/resource'
+/*** endif */
+
/**
* Provides an interface for generating QR codes.
*
@@ -50,257 +56,266 @@
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ * @noninterop
*/
- interface QRCodeInterface {
- /**
- * Called when a QR code is set.
- *
- * @param { string } value
- * @returns { QRCodeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Called when a QR code is set.
- *
- * @param { string } value
- * @returns { QRCodeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Called when a QR code is set.
- *
- * @param { string } value
- * @returns { QRCodeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Called when a QR code is set.
- *
- * @param { string } value
- * @returns { QRCodeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- /**
- * Called when a QR code is set.
- *
- * @param { ResourceStr } value
- * @returns { QRCodeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- */
- (value: ResourceStr): QRCodeAttribute;
- }
-
+interface QRCodeInterface {
/**
- * Defines the qrcode attribute functions.
+ * Called when a QR code is set.
*
- * @extends CommonMethod
+ * @param { string } value
+ * @returns { QRCodeAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Defines the qrcode attribute functions.
+ * Called when a QR code is set.
*
- * @extends CommonMethod
+ * @param { string } value
+ * @returns { QRCodeAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Defines the qrcode attribute functions.
+ * Called when a QR code is set.
*
- * @extends CommonMethod
+ * @param { string } value
+ * @returns { QRCodeAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Defines the qrcode attribute functions.
+ * Called when a QR code is set.
*
- * @extends CommonMethod
+ * @param { string } value
+ * @returns { QRCodeAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
- declare class QRCodeAttribute extends CommonMethod {
- /**
- * Called when the QR code color is set.
- *
- * @param { ResourceColor } value
- * @returns { QRCodeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Called when the QR code color is set.
- *
- * @param { ResourceColor } value
- * @returns { QRCodeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Called when the QR code color is set.
- *
- * @param { ResourceColor } value
- * @returns { QRCodeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Called when the QR code color is set.
- *
- * @param { ResourceColor } value
- * @returns { QRCodeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- color(value: ResourceColor): QRCodeAttribute;
-
- /**
- * Called when setting the QR code background color.
- *
- * @param { ResourceColor } value
- * @returns { QRCodeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
- /**
- * Called when setting the QR code background color.
- *
- * @param { ResourceColor } value
- * @returns { QRCodeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
- /**
- * Called when setting the QR code background color.
- *
- * @param { ResourceColor } value
- * @returns { QRCodeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Called when setting the QR code background color.
- *
- * @param { ResourceColor } value
- * @returns { QRCodeAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- backgroundColor(value: ResourceColor): QRCodeAttribute;
-
- /**
- * Set the opacity of the QR code content color.
- * @param { number | Resource } value - indicates the opacity of the QR code content color. The value is between 0 and 1, with a default value of 1.
- * @returns { QRCodeAttribute } the attribute of the QR code
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 11
- */
- /**
- * Set the opacity of the QR code content color.
- * @param { number | Resource } value - indicates the opacity of the QR code content color. The value is between 0 and 1, with a default value of 1.
- * @returns { QRCodeAttribute } the attribute of the QR code
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 12
- */
- contentOpacity(value: number | Resource): QRCodeAttribute;
- }
-
/**
- * Defines QRCode Component.
+ * Called when a QR code is set.
*
+ * @param { ResourceStr } value
+ * @returns { QRCodeAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.1&1.2
+ */
+ (value: ResourceStr): QRCodeAttribute;
+}
+
+/**
+ * Defines the qrcode attribute functions.
+ *
+ * @extends CommonMethod