diff --git a/api/@internal/component/ets/badge.d.ts b/api/@internal/component/ets/badge.d.ts
index b70912408a191f5f36b97c2243f551004a670079..729160f93e50905c48746a2c5c2b3e889b77b258 100644
--- a/api/@internal/component/ets/badge.d.ts
+++ b/api/@internal/component/ets/badge.d.ts
@@ -18,12 +18,6 @@
* @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.
*
@@ -56,996 +50,969 @@ import { CommonMethod } from './common';
* @crossplatform
* @form
* @atomicservice
- * @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 arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- 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 arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- 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 arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- 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
+ * @since 11
*/
-declare interface BadgeStyle {
- /**
- * Text Color
- *
- * @type { ?ResourceColor }
+ 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
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Text Color
+ * BadgeStyle object
*
- * @type { ?ResourceColor }
+ * @interface BadgeStyle
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Text Color
+ * BadgeStyle object
*
- * @type { ?ResourceColor }
+ * @interface BadgeStyle
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Font color.
+ * BadgeStyle object
*
- * @type { ?ResourceColor }
- * @default Color.White
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- 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) }
+ * @interface BadgeStyle
* @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
- * @arkts 1.1&1.2
- */
- fontSize?: number | ResourceStr;
-
- /**
- * Size of a badge.
- *
- * @type { ?(number | string) }
+ 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
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Size of a badge.
+ * Defines the base param of badge.
*
- * @type { ?(number | string) }
+ * @interface BadgeParam
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Size of a badge.
+ * Defines the base param of badge.
*
- * @type { ?(number | string) }
+ * @interface BadgeParam
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Size of a badge.
+ * Provides basic parameters for creating a badge.
*
- * @type { ?(number | string) }
+ * @interface BadgeParam
* @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
- * @arkts 1.1&1.2
- */
- badgeSize?: number | ResourceStr;
-
- /**
- * Color of the badge.
- *
- * @type { ?ResourceColor }
+ 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
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Color of the badge.
+ * Defines the badge param with count and maxCount.
*
- * @type { ?ResourceColor }
+ * @extends BadgeParam
+ * @interface BadgeParamWithNumber
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Color of the badge.
+ * Defines the badge param with count and maxCount.
*
- * @type { ?ResourceColor }
+ * @extends BadgeParam
+ * @interface BadgeParamWithNumber
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Badge color.
+ * Inherits from BadgeParam and has all attributes of BadgeParam.
*
- * @type { ?ResourceColor }
- * @default Color.Red
+ * @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
- */
- 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
*/
- /**
- * 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) }
+ 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
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Set the display position of the prompt point.
+ * Defines the badge param with string value.
*
- * @type { ?(BadgePosition) }
+ * @extends BadgeParam
+ * @interface BadgeParamWithString
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Set the display position of the prompt point.
+ * Defines the badge param with string value.
*
- * @type { ?(BadgePosition | Position) }
+ * @extends BadgeParam
+ * @interface BadgeParamWithString
* @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.
- *
+ * Inherits from BadgeParam and has all attributes of BadgeParam.
*
- * @type { ?(BadgePosition | Position) }
- * @default BadgePosition.RightTop
+ * @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
- */
- 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
- */
- /**
- * 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 arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
- count: number;
-
- /**
- * Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
- *
- * @type { ?number }
+ 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
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
+ * Defines Badge Component.
*
- * @type { ?number }
+ * @interface BadgeInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Maximum number of messages. If the number of messages exceeds the maximum, only maxCount+ is displayed.
+ * Defines Badge Component.
*
- * @type { ?number }
+ * @interface BadgeInterface
* @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.
- *
+ * Defines Badge Component.
*
- * @type { ?number }
- * @default 99
+ * @interface BadgeInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
- 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 }
+ 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
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Text string of the prompt content.
+ * Defines Badge Component attribute.
*
- * @type { string }
+ * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Text string of the prompt content.
+ * Defines Badge Component attribute.
*
- * @type { string }
+ * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Text string of the prompt content.
+ * Defines Badge Component attribute.
*
- * @type { string }
+ * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
+ declare class BadgeAttribute extends CommonMethod {}
+
/**
- * 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.
+ * Defines Badge Component.
*
- * @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.
+ * Defines Badge Component.
*
- * @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.
+ * Defines Badge Component.
*
- * @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.
+ * Defines Badge Component.
*
- * @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
+ * @since 11
*/
- (value: BadgeParamWithNumber): BadgeAttribute;
-
+ declare const Badge: BadgeInterface;
+
/**
- * 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.
+ * Defines Badge Component instance.
*
- * @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.
+ * Defines Badge Component instance.
*
- * @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.
+ * Defines Badge Component instance.
*
- * @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.
+ * Defines Badge Component instance.
*
- * @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
+ * @since 11
*/
- (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;
+ declare const BadgeInstance: BadgeAttribute;
+
\ No newline at end of file
diff --git a/api/@internal/component/ets/image.d.ts b/api/@internal/component/ets/image.d.ts
index 24d63a95eb98710398ce2f383cef75bb86a28225..3cb2eb41774ebdf233b90c78f5ad045c5b27c2ea 100644
--- a/api/@internal/component/ets/image.d.ts
+++ b/api/@internal/component/ets/image.d.ts
@@ -18,19 +18,6 @@
* @kit ArkUI
*/
-/*** if arkts 1.2 */
-import image from '../../@ohos.multimedia.image';
-import drawing from '../../@ohos.graphics.drawing';
-import matrix4 from '../../@ohos.matrix4'
-import { BusinessError } from '../../@ohos.base';
-import { DrawableDescriptor } from '../../@ohos.arkui.drawableDescriptor';
-import { ImageAIOptions, ImageAnalyzerConfig } from './imageCommon';
-import { ResourceStr, ResourceColor, ColorFilter, EdgeWidths, ColorMetrics } from './units';
-import { ImageFit, ImageRepeat, CopyOptions } from './enums';
-import { Resource } from '../../global/resource';
-import { CommonMethod, PointLightStyle, PixelMap } from './common'
-/*** endif */
-
/**
* Use the DrawableDescriptor class to get drawable image.
*
@@ -58,18 +45,6 @@ declare type DrawableDescriptor = import ('../api/@ohos.arkui.drawableDescriptor
*/
declare type DrawingColorFilter = import('../api/@ohos.graphics.drawing').default.ColorFilter;
-/**
- * Import the DrawingColorFilter type object for image color filter setting.
- *
- * @typedef { drawing.ColorFilter } DrawingColorFilter
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
-declare type DrawingColorFilter = drawing.ColorFilter;
-
/**
* Enumerates all the levels available for the image resolution quality.
*
@@ -78,18 +53,7 @@ declare type DrawingColorFilter = drawing.ColorFilter;
* @systemapi
* @since 12
*/
-declare type ResolutionQuality = import('../api/@ohos.multimedia.image').default.ResolutionQuality;
-
-/**
- * Enumerates all the levels available for the image resolution quality.
- *
- * @typedef { image.ResolutionQuality } ResolutionQuality
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @systemapi
- * @since 20
- * @arkts 1.2
- */
-declare type ResolutionQuality = image.ResolutionQuality;
+declare type ResolutionQuality = import('../api/@ohos.multimedia.image').default.ResolutionQuality;
/**
* Lattice for dividing an image into grids.
@@ -100,19 +64,7 @@ declare type ResolutionQuality = image.ResolutionQuality;
* @atomicservice
* @since 12
*/
-declare type DrawingLattice = import('../api/@ohos.graphics.drawing').default.Lattice;
-
-/**
- * Lattice for dividing an image into grids.
- *
- * @typedef { drawing.Lattice } DrawingLattice
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
-declare type DrawingLattice = drawing.Lattice;
+declare type DrawingLattice = import('../api/@ohos.graphics.drawing').default.Lattice;
/**
* Object matrix used for setting image transformations.
@@ -125,18 +77,6 @@ declare type DrawingLattice = drawing.Lattice;
*/
declare type ImageMatrix = import ('../api/@ohos.matrix4').default.Matrix4Transit;
-/**
- * Object matrix used for setting image transformations.
- *
- * @typedef { matrix4.Matrix4Transit } Matrix4Transit
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
-declare type ImageMatrix = matrix4.Matrix4Transit;
-
/**
* Business error in onError callback.
*
@@ -173,8 +113,7 @@ declare type BusinessError = import('../api/@ohos.base').BusinessError;
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
declare enum ImageRenderMode {
/**
@@ -205,8 +144,7 @@ declare enum ImageRenderMode {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
Original,
@@ -238,8 +176,7 @@ declare enum ImageRenderMode {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
Template,
}
@@ -252,8 +189,7 @@ declare enum ImageRenderMode {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
declare enum ImageContent {
/**
@@ -263,8 +199,7 @@ declare enum ImageContent {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
EMPTY = 0,
}
@@ -273,8 +208,7 @@ declare enum ImageContent {
* @enum { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
declare enum DynamicRangeMode {
/**
@@ -282,8 +216,7 @@ declare enum DynamicRangeMode {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
HIGH = 0,
@@ -292,8 +225,7 @@ declare enum DynamicRangeMode {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
CONSTRAINT = 1,
@@ -302,8 +234,7 @@ declare enum DynamicRangeMode {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
STANDARD = 2,
}
@@ -332,8 +263,7 @@ declare enum DynamicRangeMode {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
declare enum ImageInterpolation {
/**
@@ -364,8 +294,7 @@ declare enum ImageInterpolation {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
None,
@@ -397,8 +326,7 @@ declare enum ImageInterpolation {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
Low,
@@ -430,8 +358,7 @@ declare enum ImageInterpolation {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
Medium,
@@ -463,8 +390,7 @@ declare enum ImageInterpolation {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
High,
}
@@ -474,8 +400,7 @@ declare enum ImageInterpolation {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'14','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 14
*/
declare enum ImageRotateOrientation {
/**
@@ -484,8 +409,7 @@ declare enum ImageRotateOrientation {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'14','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 14
*/
AUTO = 0,
@@ -495,8 +419,7 @@ declare enum ImageRotateOrientation {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'14','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 14
*/
UP = 1,
@@ -506,8 +429,7 @@ declare enum ImageRotateOrientation {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'14','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 14
*/
RIGHT = 2,
@@ -517,8 +439,7 @@ declare enum ImageRotateOrientation {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'14','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 14
*/
DOWN = 3,
@@ -528,8 +449,7 @@ declare enum ImageRotateOrientation {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'14','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 14
*/
LEFT = 4,
@@ -540,7 +460,6 @@ declare enum ImageRotateOrientation {
* @crossplatform
* @atomicservice
* @since 20
- * @arkts 1.1&1.2
*/
UP_MIRRORED = 5,
@@ -551,7 +470,6 @@ declare enum ImageRotateOrientation {
* @crossplatform
* @atomicservice
* @since 20
- * @arkts 1.1&1.2
*/
RIGHT_MIRRORED = 6,
@@ -562,7 +480,6 @@ declare enum ImageRotateOrientation {
* @crossplatform
* @atomicservice
* @since 20
- * @arkts 1.1&1.2
*/
DOWN_MIRRORED = 7,
@@ -573,135 +490,10 @@ declare enum ImageRotateOrientation {
* @crossplatform
* @atomicservice
* @since 20
- * @arkts 1.1&1.2
*/
LEFT_MIRRORED = 8,
}
-/**
- * ImageCompleteEvent
- *
- * @interface ImageCompleteEvent
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
-export interface ImageCompleteEvent {
- /**
- * The width of the image source.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- width: number;
- /**
- * The height of the image source.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- height: number;
- /**
- * The width of the component source.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- componentWidth: number;
- /**
- * The height of the component source.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- componentHeight: number;
- /**
- * The value of the status of the image being loaded successfully.
- * If the returned status value is 0, the image data is successfully loaded.
- * If the returned status value is 1, the image is successfully decoded.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- loadingStatus: number;
- /**
- * The width of the picture that is actually drawn.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- contentWidth: number;
- /**
- * The height of the picture that is actually drawn.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- contentHeight: number;
- /**
- * The actual draw is offset from the x-axis of the component itself.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- contentOffsetX: number;
- /**
- * The actual draw is offset from the y-axis of the component itself.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- contentOffsetY: number;
-}
-
/**
* @interface ImageInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -726,9 +518,7 @@ export interface ImageCompleteEvent {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- * @noninterop
+ * @since 11
*/
interface ImageInterface {
/**
@@ -780,8 +570,7 @@ interface ImageInterface {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
(src: PixelMap | ResourceStr | DrawableDescriptor | ImageContent): ImageAttribute;
@@ -793,8 +582,7 @@ interface ImageInterface {
* @returns { ImageAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
(src: PixelMap | ResourceStr | DrawableDescriptor, imageAIOptions: ImageAIOptions): ImageAttribute;
}
@@ -807,8 +595,7 @@ interface ImageInterface {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'18','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 18
*/
interface ImageSourceSize {
@@ -855,8 +642,7 @@ interface ImageSourceSize {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'18','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 18
*/
width: number;
@@ -903,8 +689,7 @@ interface ImageSourceSize {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'18','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 18
*/
height: number;
}
@@ -915,8 +700,7 @@ interface ImageSourceSize {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'15','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 15
*/
declare class ColorContent {
/**
@@ -928,8 +712,7 @@ declare class ColorContent {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'15','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 15
*/
static readonly ORIGIN: ColorContent;
}
@@ -958,9 +741,7 @@ declare class ColorContent {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- * @noninterop
+ * @since 11
*/
declare class ImageAttribute extends CommonMethod {
/**
@@ -1014,8 +795,7 @@ declare class ImageAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
alt(value: string | Resource | PixelMap): ImageAttribute;
@@ -1059,8 +839,7 @@ declare class ImageAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
matchTextDirection(value: boolean): ImageAttribute;
@@ -1104,8 +883,7 @@ declare class ImageAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
fitOriginalSize(value: boolean): ImageAttribute;
@@ -1191,7 +969,6 @@ declare class ImageAttribute extends CommonMethod {
* @crossplatform
* @atomicservice
* @since 20
- * @arkts 1.1&1.2
*/
fillColor(color: ResourceColor | ColorContent | ColorMetrics): ImageAttribute;
@@ -1231,8 +1008,7 @@ declare class ImageAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
objectFit(value: ImageFit): ImageAttribute;
@@ -1244,8 +1020,7 @@ declare class ImageAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'15','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 15
*/
imageMatrix(matrix: ImageMatrix): ImageAttribute;
@@ -1290,8 +1065,7 @@ declare class ImageAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
objectRepeat(value: ImageRepeat): ImageAttribute;
@@ -1337,8 +1111,7 @@ declare class ImageAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
autoResize(value: boolean): ImageAttribute;
@@ -1384,8 +1157,7 @@ declare class ImageAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
renderMode(value: ImageRenderMode): ImageAttribute;
@@ -1401,8 +1173,7 @@ declare class ImageAttribute extends CommonMethod {
* dynamicRangeMode.Standard.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
dynamicRangeMode(value: DynamicRangeMode): ImageAttribute;
@@ -1458,8 +1229,7 @@ declare class ImageAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
interpolation(value: ImageInterpolation): ImageAttribute;
@@ -1522,8 +1292,7 @@ declare class ImageAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'18','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 18
*/
sourceSize(value: ImageSourceSize): ImageAttribute;
@@ -1570,8 +1339,7 @@ declare class ImageAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
syncLoad(value: boolean): ImageAttribute;
@@ -1618,8 +1386,7 @@ declare class ImageAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
colorFilter(value: ColorFilter | DrawingColorFilter): ImageAttribute;
@@ -1656,8 +1423,7 @@ declare class ImageAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
copyOption(value: CopyOptions): ImageAttribute;
@@ -1692,8 +1458,7 @@ declare class ImageAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'18','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 18
*/
draggable(value: boolean): ImageAttribute;
@@ -1704,8 +1469,7 @@ declare class ImageAttribute extends CommonMethod {
* @returns { ImageAttribute } The attribute of the image.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
pointLight(value: PointLightStyle): ImageAttribute;
@@ -1718,8 +1482,7 @@ declare class ImageAttribute extends CommonMethod {
* @returns { ImageAttribute } The attribute of the image.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
edgeAntialiasing(value: number): ImageAttribute;
@@ -2037,21 +1800,6 @@ declare class ImageAttribute extends CommonMethod {
}) => void,
): ImageAttribute;
- /**
- * This callback is triggered when an image is successfully loaded.
- * The size of the image source that is successfully loaded is returned, in pixels.
- *
- * @param { ImageOnCompleteCallback } callback
- * @returns { ImageAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- onComplete(callback: ImageOnCompleteCallback): ImageAttribute;
-
/**
* This callback is triggered when an exception occurs during image loading.
* The field of "message" carries the detailed information of failed image loading.
@@ -2087,8 +1835,7 @@ declare class ImageAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
onError(callback: ImageErrorCallback): ImageAttribute;
@@ -2137,8 +1884,7 @@ declare class ImageAttribute extends CommonMethod {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
onFinish(event: () => void): ImageAttribute;
@@ -2172,8 +1918,7 @@ declare class ImageAttribute extends CommonMethod {
* @returns { ImageAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
enableAnalyzer(enable: boolean): ImageAttribute;
@@ -2184,8 +1929,7 @@ declare class ImageAttribute extends CommonMethod {
* @returns { ImageAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
analyzerConfig(config: ImageAnalyzerConfig): ImageAttribute;
@@ -2216,11 +1960,21 @@ declare class ImageAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
resizable(value: ResizableOptions): ImageAttribute;
+ /**
+ * Set the quality enhancement level of image.
+ *
+ * @param { ResolutionQuality } imageQuality
+ * @returns { ImageAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @systemapi
+ * @since 12
+ */
+ enhancedImageQuality(imageQuality: ResolutionQuality): ImageAttribute;
+
/**
* Sets whether to secure sensitive information on widgets.
*
@@ -2233,23 +1987,10 @@ declare class ImageAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
privacySensitive(supported: boolean): ImageAttribute;
- /**
- * Set the quality enhancement level of image.
- *
- * @param { ResolutionQuality } imageQuality
- * @returns { ImageAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @systemapi
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
- */
- enhancedImageQuality(imageQuality: ResolutionQuality): ImageAttribute;
-
/**
* Sets the display orientation of the image content.
*
@@ -2259,8 +2000,7 @@ declare class ImageAttribute extends CommonMethod {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'14','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 14
*/
orientation(orientation: ImageRotateOrientation) : ImageAttribute;
}
@@ -2304,7 +2044,6 @@ declare class ImageAttribute extends CommonMethod {
* @form
* @atomicservice
* @since 11
- * @noninterop
*/
declare const Image: ImageInterface;
@@ -2337,7 +2076,6 @@ declare const Image: ImageInterface;
* @form
* @atomicservice
* @since 11
- * @noninterop
*/
declare const ImageInstance: ImageAttribute;
@@ -2361,25 +2099,10 @@ declare const ImageInstance: ImageAttribute;
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
type ImageErrorCallback = (error: ImageError) => void;
-/**
- * ImageOnCompleteCallback
- *
- * @typedef { function } ImageOnCompleteCallback
- * @param { ImageCompleteEvent } loadEvent
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
-type ImageOnCompleteCallback = (loadEvent?: ImageCompleteEvent) => void;
-
/**
* @interface ImageError
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -2399,8 +2122,7 @@ type ImageOnCompleteCallback = (loadEvent?: ImageCompleteEvent) => void;
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
declare interface ImageError {
/**
@@ -2428,8 +2150,7 @@ declare interface ImageError {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
componentWidth: number;
@@ -2458,8 +2179,7 @@ declare interface ImageError {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
componentHeight: number;
@@ -2480,8 +2200,7 @@ declare interface ImageError {
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
message: string
@@ -2494,7 +2213,6 @@ declare interface ImageError {
* @form
* @atomicservice
* @since 20
- * @arkts 1.1&1.2
*/
error?: BusinessError;
}
@@ -2514,8 +2232,7 @@ declare interface ImageError {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
declare interface ResizableOptions {
/**
@@ -2533,8 +2250,7 @@ declare interface ResizableOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
slice?: EdgeWidths;
@@ -2545,8 +2261,7 @@ declare interface ResizableOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
lattice?: DrawingLattice;
}
diff --git a/api/@internal/component/ets/image_animator.d.ts b/api/@internal/component/ets/image_animator.d.ts
index df829102b1c9f16e17d9387f034fa481abfd574d..85829650f83a8f38dd76547f563ea1c325bb5649 100644
--- a/api/@internal/component/ets/image_animator.d.ts
+++ b/api/@internal/component/ets/image_animator.d.ts
@@ -18,13 +18,6 @@
* @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.
*
@@ -49,750 +42,723 @@ import { AnimationStatus,FillMode } from './enums'
* @crossplatform
* @form
* @atomicservice
- * @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 arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- (): 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
+ * @since 11
*/
-interface ImageFrameInfo {
- /**
- * Image path
- *
- * @type { string }
+ 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
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Image path
- *
- * @type { string | Resource }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 9
- */
- /**
- * Image path
+ * Defines the ImageFrameInfo Interface.
*
- * @type { string | Resource }
+ * @interface ImageFrameInfo
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Image path
+ * Defines the ImageFrameInfo Interface.
*
- * @type { string | Resource }
+ * @interface ImageFrameInfo
* @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 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
- */
- /**
- * 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 arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- 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 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 }
+ 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
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Status callback, which is triggered when the animation starts to play.
+ * inheritance CommonMethod
*
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
+ * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Status callback, which is triggered when the animation starts to play.
+ * inheritance CommonMethod
*
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
+ * @extends CommonMethod
* @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
+ * @since 11
*/
- onRepeat(event: () => void): ImageAnimatorAttribute;
-
- /**
- * Status callback, which is triggered when the animation is canceled.
+ 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.
*
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Status callback, which is triggered when the animation is canceled.
+ * Defines ImageAnimator Component.
*
- * @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.
+ * Defines ImageAnimator Component.
*
- * @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
+ * @since 11
*/
- onCancel(event: () => void): ImageAnimatorAttribute;
-
+ declare const ImageAnimator: ImageAnimatorInterface;
+
/**
- * Status callback, which is triggered when the animation playback is complete.
+ * Defines ImageAnimator Component instance.
*
- * @param { function } event
- * @returns { ImageAnimatorAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Status callback, which is triggered when the animation playback is complete.
+ * Defines ImageAnimator Component instance.
*
- * @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.
+ * Defines ImageAnimator Component instance.
*
- * @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
+ * @since 11
*/
- 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;
+ declare const ImageAnimatorInstance: ImageAnimatorAttribute;
+
\ No newline at end of file
diff --git a/api/@internal/component/ets/image_common.d.ts b/api/@internal/component/ets/image_common.d.ts
index 7415991b1a970aabdba46f343a33f201a59f309c..24962e1329561a009cb806c3940915d4890ad86c 100644
--- a/api/@internal/component/ets/image_common.d.ts
+++ b/api/@internal/component/ets/image_common.d.ts
@@ -24,8 +24,7 @@
* @enum { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
declare enum ImageAnalyzerType {
/**
@@ -33,8 +32,7 @@ declare enum ImageAnalyzerType {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
SUBJECT = 0,
@@ -43,8 +41,7 @@ declare enum ImageAnalyzerType {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
TEXT,
@@ -53,8 +50,7 @@ declare enum ImageAnalyzerType {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
OBJECT_LOOKUP,
}
@@ -64,8 +60,7 @@ declare enum ImageAnalyzerType {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
declare class ImageAnalyzerController {
/**
@@ -73,19 +68,17 @@ declare class ImageAnalyzerController {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
constructor();
-
+
/**
* Get image analyzer support types.
*
* @returns { ImageAnalyzerType[] }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
getImageAnalyzerSupportTypes(): ImageAnalyzerType[];
}
@@ -96,8 +89,7 @@ declare class ImageAnalyzerController {
* @interface ImageAnalyzerConfig
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
declare interface ImageAnalyzerConfig {
/**
@@ -106,8 +98,7 @@ declare interface ImageAnalyzerConfig {
* @type { ImageAnalyzerType[] }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
types: ImageAnalyzerType[];
}
@@ -118,8 +109,7 @@ declare interface ImageAnalyzerConfig {
* @interface ImageAIOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
declare interface ImageAIOptions {
/**
@@ -128,8 +118,7 @@ declare interface ImageAIOptions {
* @type { ?ImageAnalyzerType[] }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
types?: ImageAnalyzerType[];
@@ -139,8 +128,7 @@ declare interface ImageAIOptions {
* @type { ?ImageAnalyzerController }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
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 2e7528f03e0fff48eb867751c41a1796dc4e083b..c63b21e50fa6c99ddfdf5905ffdbc8fd678db064 100644
--- a/api/@internal/component/ets/loading_progress.d.ts
+++ b/api/@internal/component/ets/loading_progress.d.ts
@@ -18,11 +18,6 @@
* @kit ArkUI
*/
-/*** if arkts 1.2 */
-import { CommonMethod,ContentModifier,CommonConfiguration } from './common'
-import { ResourceColor } from './units'
-/*** endif */
-
/**
* Load style of progress bar.
*
@@ -55,386 +50,371 @@ import { ResourceColor } from './units'
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
-declare enum LoadingProgressStyle {
+ 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,
+ }
+
/**
- * Default style.
+ * Provides an interface for extending the loading progress.
*
+ * @interface LoadingProgressInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Default style.
+ * Provides an interface for extending the loading progress.
*
+ * @interface LoadingProgressInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Default style.
+ * Provides an interface for extending the loading progress.
*
+ * @interface LoadingProgressInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Default style.
+ * 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
+ * @since 11
*/
- Default,
-
+ 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;
+ }
+
/**
- * Announcement style.
+ * Declare the progress bar being loaded
*
+ * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Announcement style.
+ * Declare the progress bar being loaded
*
+ * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Announcement style.
+ * Declare the progress bar being loaded
*
+ * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Announcement style.
+ * 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
- */
- 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
+ * @since 11
*/
+ 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;
+ }
+
/**
- * The style of the track.
+ * LoadingProgressConfiguration used by LoadingProgress contentModifier
*
+ * @extends CommonConfiguration
+ * @interface LoadingProgressConfiguration
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
- * @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 12
*/
- 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 {
+ declare interface LoadingProgressConfiguration extends CommonConfiguration {
+ /**
+ * Whether to enable the LoadingProgress content.
+ *
+ * @type { boolean }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 12
+ */
+ enableLoading: boolean;
+ }
+
/**
- * Called when the progress bar progress is viewed.
+ * Defines LoadingProgress Component.
*
- * @returns { LoadingProgressAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Called when the progress bar progress is viewed.
+ * Defines LoadingProgress Component.
*
- * @returns { LoadingProgressAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Called when the progress bar progress is viewed.
+ * Defines LoadingProgress Component.
*
- * @returns { LoadingProgressAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Called when the progress bar progress is viewed.
+ * Defines LoadingProgress Component.
*
- * @returns { LoadingProgressAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
- (): 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 {
+ declare const LoadingProgress: LoadingProgressInterface;
+
/**
- * Load the color of the progress bar.
+ * Loading Progress Extensions on Declarative Classes
*
- * @param { ResourceColor } value
- * @returns { LoadingProgressAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Load the color of the progress bar.
+ * Loading Progress Extensions on Declarative Classes
*
- * @param { ResourceColor } value
- * @returns { LoadingProgressAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Load the color of the progress bar.
+ * Loading Progress Extensions on Declarative Classes
*
- * @param { ResourceColor } value
- * @returns { LoadingProgressAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Load the color of the progress bar.
+ * Loading Progress Extensions on Declarative Classes
*
- * @param { ResourceColor } value
- * @returns { LoadingProgressAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @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 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;
+ declare const LoadingProgressInstance: LoadingProgressAttribute;
+
\ No newline at end of file
diff --git a/api/@internal/component/ets/progress.d.ts b/api/@internal/component/ets/progress.d.ts
index ceada3464a3b1f8238df86e4c034feffe31567a5..2413ca6a2fbcca66c710a46e740a42185ec577e7 100644
--- a/api/@internal/component/ets/progress.d.ts
+++ b/api/@internal/component/ets/progress.d.ts
@@ -18,14 +18,6 @@
* @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.
*
@@ -60,1818 +52,1620 @@ import { LengthMetrics } from '../Graphics'
* @atomicservice
* @since 11
*/
-declare interface ProgressOptions {
- /**
- * Sets the value of Progress.
- *
- * @type { number }
+ 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 }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
+ * @since 8
*/
/**
- * Sets the value of Progress.
+ * Type of progress bar
*
- * @type { number }
+ * @enum { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Sets the value of Progress.
+ * Type of progress bar
*
- * @type { number }
+ * @enum { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Sets the value of Progress.
+ * Type of progress bar
*
- * @type { number }
+ * @enum { 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 }
+ 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 }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
* @since 10
*/
/**
- * Sets the total of Progress.
+ * Current status of progress bar.
*
- * @type { ?number }
+ * @enum { 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 }
+ 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
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Sets the type of Progress.
+ * Defines style options for progress component.
*
- * @type { ?Type }
+ * @extends CommonProgressStyleOptions
+ * @interface ProgressStyleOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Sets the type of Progress.
+ * Defines style options for progress component.
*
- * @type { ?Type }
+ * @extends CommonProgressStyleOptions
+ * @interface ProgressStyleOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Sets the type of Progress.
+ * Defines style options for progress component.
*
- * @type { ?Type }
+ * @extends CommonProgressStyleOptions
+ * @interface ProgressStyleOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
- 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 {
-
- /**
- * Sets the value of Progress.
- *
- * @type { number }
+ 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
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
+ * @since 10
*/
- value: number;
-
/**
- * Sets the total of Progress.
+ * Progress common style options.
*
- * @type { ?number }
+ * @interface CommonProgressStyleOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
- * @form
* @atomicservice
- * @since 20
- * @arkts 1.2
+ * @since 11
+ */
+ 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
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 10
*/
- total?: number;
-
/**
- * Sets the type of Progress.
+ * Defines the enable scan effect.
*
- * @type { ?ProgressType }
+ * @interface ScanEffectOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
- * @form
* @atomicservice
- * @since 20
- * @arkts 1.2
+ * @since 11
*/
- 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.
- *
+ 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
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
+ * @since 10
*/
/**
- * Linear progress bar style.
+ * Defines the Eclipse style Options.
*
+ * @extends CommonProgressStyleOptions
+ * @interface EclipseStyleOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
+ * @atomicservice
+ * @since 11
*/
+ declare interface EclipseStyleOptions extends CommonProgressStyleOptions {
+
+ }
+
/**
- * Linear progress bar style.
+ * Defines the ScaleRing style Options.
*
+ * @extends CommonProgressStyleOptions
+ * @interface ScaleRingStyleOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
* @since 10
*/
/**
- * Linear progress bar style.
+ * Defines the ScaleRing style Options.
*
+ * @extends CommonProgressStyleOptions
+ * @interface ScaleRingStyleOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
- * @form
* @atomicservice
- * @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
+ * @since 11
*/
- /**
- * Ring progress bar.
- *
+ 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
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
* @since 10
*/
/**
- * Ring progress bar.
+ * Defines the ring style Options.
*
+ * @extends ScanEffectOptions, CommonProgressStyleOptions
+ * @interface RingStyleOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
- * @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
- Ring = 1,
-
- /**
- * Eclipse progress bar.
- *
+ 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
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
+ * @since 10
*/
/**
- * Eclipse progress bar.
+ * Defines the linear style Options.
*
+ * @extends ScanEffectOptions, CommonProgressStyleOptions
+ * @interface LinearStyleOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
+ * @crossplatform
+ * @atomicservice
+ * @since 11
*/
- /**
- * Eclipse progress bar.
- *
+ 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
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
* @since 10
*/
/**
- * Eclipse progress bar.
+ * Defines the capsule style Options.
*
+ * @extends ScanEffectOptions, CommonProgressStyleOptions
+ * @interface CapsuleStyleOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
- * @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
- Eclipse = 2,
-
- /**
- * ScaleRing progress bar.
- *
+ 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 }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
+ * @since 7
*/
/**
- * ScaleRing progress bar.
+ * Type of progress bar
*
+ * @enum { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * ScaleRing progress bar.
+ * Type of progress bar
*
+ * @enum { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * ScaleRing progress bar.
+ * 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
- */
- ScaleRing = 3,
-
- /**
- * Capsule progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Capsule progress bar.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
+ * @since 11
*/
- /**
- * Capsule progress bar.
- *
+ 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
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
* @since 10
*/
/**
- * Capsule progress bar.
+ * Defines the map for progress type and style.
*
+ * @interface ProgressStyleMap
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
- 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.
- *
+ 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 10
+ * @since 7
*/
/**
- * Loading status.
+ * Provides the progress bar interface.
*
+ * @interface ProgressInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @form
+ * @since 9
*/
- LOADING,
-
/**
- * Processing status.
+ * Provides the progress bar interface.
*
+ * @interface ProgressInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
* @since 10
*/
/**
- * Processing status.
+ * 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
+ * @since 11
*/
- 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 }
+ 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>
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
+ * @since 7
*/
/**
- * Defines the strokeWidth property.
+ * Defines the progress attribute functions.
*
- * @type { ?Length }
+ * @extends CommonMethod>
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Defines the strokeWidth property.
+ * Defines the progress attribute functions.
*
- * @type { ?Length }
+ * @extends CommonMethod>
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Defines the strokeWidth property.
+ * Defines the progress attribute functions.
*
- * @type { ?Length }
+ * @extends CommonMethod>
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
- strokeWidth?: Length;
-
- /**
- * Defines the scaleCount property.
+ 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
+ */
+ 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.
*
- * @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
+ * @since 7
*/
/**
- * Defines the scaleCount property.
+ * Defines Progress Component.
*
- * @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Defines the scaleCount property.
+ * Defines Progress Component.
*
- * @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Defines the scaleCount property.
+ * Defines Progress Component.
*
- * @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
- scaleCount?: number;
-
+ declare const Progress: ProgressInterface;
+
/**
- * Defines the scaleWidth property.
+ * Defines Progress Component instance.
*
- * @type { ?Length }
* @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
+ * @since 7
*/
/**
- * Defines the scaleWidth property.
+ * Defines Progress Component instance.
*
- * @type { ?Length }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Defines the scaleWidth property.
+ * Defines Progress Component instance.
*
- * @type { ?Length }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Defines the scaleWidth property.
+ * Defines Progress Component instance.
*
- * @type { ?Length }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @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
+ * @since 11
*/
- 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;
+ declare const ProgressInstance: ProgressAttribute;
+
\ No newline at end of file
diff --git a/api/@internal/component/ets/qrcode.d.ts b/api/@internal/component/ets/qrcode.d.ts
index 1c06f29312ed93a98adf39fbfe58a04fb3432e63..ef9932eecfd28f2554c376d2c714606540a5eb51 100644
--- a/api/@internal/component/ets/qrcode.d.ts
+++ b/api/@internal/component/ets/qrcode.d.ts
@@ -18,12 +18,6 @@
* @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.
*
@@ -56,266 +50,257 @@ import { Resource } from '../../global/resource'
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- * @noninterop
+ * @since 11
*/
-interface QRCodeInterface {
+ 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;
+ }
+
/**
- * Called when a QR code is set.
+ * Defines the qrcode attribute functions.
*
- * @param { string } value
- * @returns { QRCodeAttribute }
+ * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Called when a QR code is set.
+ * Defines the qrcode attribute functions.
*
- * @param { string } value
- * @returns { QRCodeAttribute }
+ * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Called when a QR code is set.
+ * Defines the qrcode attribute functions.
*
- * @param { string } value
- * @returns { QRCodeAttribute }
+ * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Called when a QR code is set.
+ * Defines the qrcode attribute functions.
*
- * @param { string } value
- * @returns { QRCodeAttribute }
+ * @extends CommonMethod
* @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;
+ }
+
/**
- * Called when a QR code is set.
+ * Defines QRCode Component.
*
- * @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
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
-/**
- * Defines the qrcode attribute functions.
- *
- * @extends CommonMethod
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
-/**
- * Defines the qrcode attribute functions.
- *
- * @extends CommonMethod
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
-/**
- * Defines the qrcode attribute functions.
- *
- * @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 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.
+ * Defines QRCode Component.
*
- * @param { ResourceColor } value
- * @returns { QRCodeAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Called when the QR code color is set.
+ * Defines QRCode Component.
*
- * @param { ResourceColor } value
- * @returns { QRCodeAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Called when the QR code color is set.
+ * Defines QRCode Component.
*
- * @param { ResourceColor } value
- * @returns { QRCodeAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
- color(value: ResourceColor): QRCodeAttribute;
-
+ declare const QRCode: QRCodeInterface;
+
/**
- * Called when setting the QR code background color.
+ * Defines QRCode Component instance.
*
- * @param { ResourceColor } value
- * @returns { QRCodeAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
/**
- * Called when setting the QR code background color.
+ * Defines QRCode Component instance.
*
- * @param { ResourceColor } value
- * @returns { QRCodeAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @form
* @since 9
*/
/**
- * Called when setting the QR code background color.
+ * Defines QRCode Component instance.
*
- * @param { ResourceColor } value
- * @returns { QRCodeAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Called when setting the QR code background color.
+ * Defines QRCode Component instance.
*
- * @param { ResourceColor } value
- * @returns { QRCodeAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- 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 arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
- */
- contentOpacity(value: number | Resource): QRCodeAttribute;
-}
-
-/**
- * Defines QRCode Component.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
-/**
- * Defines QRCode Component.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
-/**
- * Defines QRCode Component.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
-/**
- * Defines QRCode Component.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- * @noninterop
- */
-declare const QRCode: QRCodeInterface;
-
-/**
- * Defines QRCode Component instance.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 7
- */
-/**
- * Defines QRCode Component instance.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
-/**
- * Defines QRCode Component instance.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
-/**
- * Defines QRCode Component instance.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- * @noninterop
- */
-declare const QRCodeInstance: QRCodeAttribute;
+ declare const QRCodeInstance: QRCodeAttribute;
+
\ No newline at end of file
diff --git a/api/@internal/component/ets/text_clock.d.ts b/api/@internal/component/ets/text_clock.d.ts
index 8f3a3b4d9079ea57fd3f5107a8dae0ed549b2061..616157cd1d9774e5bb96ba365b2bb62e5fdcedde 100644
--- a/api/@internal/component/ets/text_clock.d.ts
+++ b/api/@internal/component/ets/text_clock.d.ts
@@ -18,12 +18,6 @@
* @kit ArkUI
*/
-/*** if arkts 1.2 */
-import { CommonConfiguration, CommonMethod, ShadowOptions, ContentModifier, Optional, DateTimeOptions } from './common'
-import { ResourceColor, Length, ResourceStr } from './units'
-import { FontStyle, FontWeight } from './enums'
-/*** endif */
-
/**
* Provides a way to control the textclock status.
*
@@ -44,749 +38,701 @@ import { FontStyle, FontWeight } from './enums'
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
-declare class TextClockController {
- /**
- * constructor.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * constructor.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * constructor.
- *
+ declare class TextClockController {
+ /**
+ * constructor.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * constructor.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * constructor.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ constructor();
+ /**
+ * Provides a start event for textclock.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Provides a start event for textclock.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Provides a start event for textclock.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ start();
+ /**
+ * Provides a stop event for textclock.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Provides a stop event for textclock.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Provides a stop event for textclock.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ stop();
+ }
+
+ /**
+ * TextClockConfiguration used by text clock content modifier
+ *
+ * @extends CommonConfiguration
+ * @interface TextClockConfiguration
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
- * @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- constructor();
- /**
- * Provides a start event for textclock.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Provides a start event for textclock.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Provides a start event for textclock.
- *
+ * @since 12
+ */
+ declare interface TextClockConfiguration extends CommonConfiguration {
+ /**
+ * Specifies the current time zone.
+ * The valid value is an integer ranging from - 14 to 12,
+ * Where a negative value indicates the eastern time zone, for example, -8.
+ *
+ * @type { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 12
+ */
+ timeZoneOffset: number;
+
+ /**
+ * TextClock is started or not.
+ *
+ * @type { boolean }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 12
+ */
+ started: boolean;
+
+ /**
+ * The time of the TextClock.
+ *
+ * @type { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 12
+ */
+ timeValue: number;
+ }
+
+ /**
+ * Options to construct TextClock component.
+ *
+ * @interface TextClockOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
- */
- start();
- /**
- * Provides a start event for textclock.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- start(): void;
- /**
- * Provides a stop event for textclock.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Provides a stop event for textclock.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Provides a stop event for textclock.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- */
- stop();
- /**
- * Provides a stop event for textclock.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- stop(): void;
-}
-
-/**
- * TextClockConfiguration used by text clock content modifier
- *
- * @extends CommonConfiguration
- * @interface TextClockConfiguration
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
- */
-declare interface TextClockConfiguration extends CommonConfiguration {
- /**
- * Specifies the current time zone.
- * The valid value is an integer ranging from - 14 to 12,
- * Where a negative value indicates the eastern time zone, for example, -8.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
- */
- timeZoneOffset: number;
-
- /**
- * TextClock is started or not.
- *
- * @type { boolean }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
- */
- started: boolean;
-
- /**
- * The time of the TextClock.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
- */
- timeValue: number;
-}
-
-/**
- * Options to construct TextClock component.
- *
- * @interface TextClockOptions
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'18','1.2':'20'}
- * @arkts 1.1&1.2
- */
-declare interface TextClockOptions {
- /**
- * Time zone offset.
- *
- * @type { ?number }
+ * @since 18
+ */
+ declare interface TextClockOptions {
+ /**
+ * Time zone offset.
+ *
+ * @type { ?number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Time zone offset.
+ *
+ * @type { ?number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Time zone offset.
+ *
+ * @type { ?number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ /**
+ * Time zone offset.
+ * Anonymous Object Rectification.
+ *
+ * @type { ?number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 18
+ */
+ timeZoneOffset?: number;
+
+ /**
+ * TextClock controller.
+ *
+ * @type { ?TextClockController }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * TextClock controller.
+ *
+ * @type { ?TextClockController }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * TextClock controller.
+ *
+ * @type { ?TextClockController }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ /**
+ * TextClock controller.
+ * Anonymous Object Rectification.
+ *
+ * @type { ?TextClockController }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 18
+ */
+ controller?: TextClockController
+ }
+
+ /**
+ * TextClock component, which provides the text clock capability.
+ *
+ * @interface TextClockInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Time zone offset.
+ * TextClock component, which provides the text clock capability.
*
- * @type { ?number }
+ * @interface TextClockInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
*/
/**
- * Time zone offset.
+ * TextClock component, which provides the text clock capability.
*
- * @type { ?number }
+ * @interface TextClockInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
- /**
- * Time zone offset.
- * Anonymous Object Rectification.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'18','1.2':'20'}
- * @arkts 1.1&1.2
- */
- timeZoneOffset?: number;
-
- /**
- * TextClock controller.
- *
- * @type { ?TextClockController }
+ interface TextClockInterface {
+ /**
+ * Construct the text clock component.
+ * Specifies the current time zone.
+ * The valid value is an integer ranging from - 14 to 12,
+ * Where a negative value indicates the eastern time zone, for example, -8.
+ *
+ * @param { object } options
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Construct the text clock component.
+ * Specifies the current time zone.
+ * The valid value is an integer ranging from - 14 to 12,
+ * Where a negative value indicates the eastern time zone, for example, -8.
+ *
+ * @param { object } options
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Construct the text clock component.
+ * Specifies the current time zone.
+ * The valid value is an integer ranging from - 14 to 12,
+ * Where a negative value indicates the eastern time zone, for example, -8.
+ *
+ * @param { object } options
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ /**
+ * Construct the text clock component.
+ * Specifies the current time zone.
+ * The valid value is an integer ranging from - 14 to 12,
+ * Where a negative value indicates the eastern time zone, for example, -8.
+ * Anonymous Object Rectification.
+ *
+ * @param { TextClockOptions } [options] - TextClock options.
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 18
+ */
+ (options?: TextClockOptions): TextClockAttribute;
+ }
+
+ /**
+ * Provides attribute for TextClock.
+ *
+ * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * TextClock controller.
+ * Provides attribute for TextClock.
*
- * @type { ?TextClockController }
+ * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
*/
/**
- * TextClock controller.
+ * Provides attribute for TextClock.
*
- * @type { ?TextClockController }
+ * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
- /**
- * TextClock controller.
- * Anonymous Object Rectification.
+ declare class TextClockAttribute extends CommonMethod {
+ /**
+ * set display time format,such as "yyyy/mm/dd","yyyy-mm-dd".
+ * support time format:yyyy,mm,mmm(English month abbreviation),mmmm(Full name of the month in English),
+ * dd,ddd(English Week abbreviation),dddd(Full name of the week in English),
+ * HH/hh(24-hour clock/12-hour clock),MM/mm(minute),SS/ss(second).
+ *
+ * @param { string } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * set display time format,such as "yyyy/mm/dd","yyyy-mm-dd".
+ * support time format:yyyy,mm,mmm(English month abbreviation),mmmm(Full name of the month in English),
+ * dd,ddd(English Week abbreviation),dddd(Full name of the week in English),
+ * HH/hh(24-hour clock/12-hour clock),MM/mm(minute),SS/ss(second).
+ *
+ * @param { string } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * set display time format,such as "yyyy/mm/dd","yyyy-mm-dd".
+ * support time format:yyyy,mm,mmm(English month abbreviation),mmmm(Full name of the month in English),
+ * dd,ddd(English Week abbreviation),dddd(Full name of the week in English),
+ * HH/hh(24-hour clock/12-hour clock),MM/mm(minute),SS/ss(second).
+ * The default value is "hh:mm:ss" when TextClock is not in a form.
+ * The default value is "hh:mm" when TextClock is in a form.
+ * If the value has second or millisecond, the value will be set to the default value.
+ *
+ * @param { string } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ /**
+ * set display time format,such as "yyyy/mm/dd","yyyy-mm-dd".
+ * support time format:yyyy,mm,mmm(English month abbreviation),mmmm(Full name of the month in English),
+ * dd,ddd(English Week abbreviation),dddd(Full name of the week in English),
+ * HH/hh(24-hour clock/12-hour clock),MM/mm(minute),SS/ss(second).
+ * The default value is "hh:mm:ss" when TextClock is not in a form.
+ * The default value is "hh:mm" when TextClock is in a form.
+ * If the value has second or millisecond, the value will be set to the default value.
+ *
+ * @param { ResourceStr } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ */
+ format(value: ResourceStr): TextClockAttribute;
+
+ /**
+ * Provides a date change callback.
+ * The callback parameter is Unix Time Stamp,
+ * The number of milliseconds that have elapsed since January 1, 1970 (UTC).
+ * The minimum callback interval for this event is seconds.
+ * You can listen to this callback,
+ * Use the format attribute method to customize data display in the callback.
+ *
+ * @param { function } event - Listening date event callback.
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Provides a date change callback.
+ * The callback parameter is Unix Time Stamp,
+ * The number of milliseconds that have elapsed since January 1, 1970 (UTC).
+ * The minimum callback interval for this event is seconds.
+ * You can listen to this callback,
+ * Use the format attribute method to customize data display in the callback.
+ *
+ * @param { function } event - Listening date event callback.
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Provides a date change callback.
+ * The callback parameter is Unix Time Stamp,
+ * The number of milliseconds that have elapsed since January 1, 1970 (UTC).
+ * The minimum callback interval for this event default is seconds when TextClock is not in a form.
+ * The minimum callback interval for this event is minutes when TextClock is in a form.
+ * If visibility is Hidden the callback be disabled when TextClock is in a form.
+ * You can listen to this callback,
+ * Use the format attribute method to customize data display in the callback.
+ *
+ * @param { function } event - Listening date event callback.
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ onDateChange(event: (value: number) => void): TextClockAttribute;
+
+ /**
+ * Called when the value of TextClock fontColor is set
+ *
+ * @param { ResourceColor } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Called when the value of TextClock fontColor is set
+ *
+ * @param { ResourceColor } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Called when the value of TextClock fontColor is set
+ *
+ * @param { ResourceColor } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ fontColor(value: ResourceColor): TextClockAttribute;
+
+ /**
+ * Called when the value of TextClock fontSize is set
+ *
+ * @param { Length } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Called when the value of TextClock fontSize is set
+ *
+ * @param { Length } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Called when the value of TextClock fontSize is set
+ *
+ * @param { Length } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ fontSize(value: Length): TextClockAttribute;
+
+ /**
+ * Called when the value of TextClock fontStyle is set
+ *
+ * @param { FontStyle } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Called when the value of TextClock fontStyle is set
+ *
+ * @param { FontStyle } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Called when the value of TextClock fontStyle is set
+ *
+ * @param { FontStyle } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ fontStyle(value: FontStyle): TextClockAttribute;
+
+ /**
+ * Called when the value of TextClock fontWeight is set
+ *
+ * @param { number | FontWeight | string } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Called when the value of TextClock fontWeight is set
+ *
+ * @param { number | FontWeight | string } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Called when the value of TextClock fontWeight is set
+ *
+ * @param { number | FontWeight | string } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ fontWeight(value: number | FontWeight | string): TextClockAttribute;
+
+ /**
+ * Called when the value of TextClock fontFamily is set
+ *
+ * @param { ResourceStr } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Called when the value of TextClock fontFamily is set
+ *
+ * @param { ResourceStr } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 10
+ */
+ /**
+ * Called when the value of TextClock fontFamily is set
+ *
+ * @param { ResourceStr } value
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ fontFamily(value: ResourceStr): TextClockAttribute;
+
+ /**
+ * Called when the text shadow is set.
+ *
+ * @param { ShadowOptions | Array } value - The shadow options.
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 11
+ */
+ /**
+ * Called when the text shadow is set.
+ *
+ * @param { ShadowOptions | Array } value - The shadow options.
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 12
+ */
+ textShadow(value: ShadowOptions | Array): TextClockAttribute;
+
+ /**
+ * Called when the text fontFeature is set.
+ *
+ * @param { string } value - The fontFeature.
+ * normal | ,
+ * where = [ | on | off ], like: "ss01" 0
+ * number of can be single or multiple, and separated by comma ','.
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 11
+ */
+ /**
+ * Called when the text fontFeature is set.
+ *
+ * @param { string } value - The fontFeature.
+ * normal | ,
+ * where = [ | on | off ], like: "ss01" 0
+ * number of can be single or multiple, and separated by comma ','.
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 12
+ */
+ fontFeature(value: string): TextClockAttribute;
+
+ /**
+ * Set the content modifier of textclock.
+ *
+ * @param { ContentModifier } modifier - The content modifier of textclock.
+ * @returns { TextClockAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 12
+ */
+ contentModifier(modifier: ContentModifier): TextClockAttribute;
+
+ /**
+ * Set hour format
+ *
+ * @param { Optional } dateTimeOptions - Indicates whether a leading 0 is required for the hour.
+ * @returns { TextClockAttribute } the attribute of the text clock
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 12
+ */
+ dateTimeOptions(dateTimeOptions: Optional): TextClockAttribute;
+ }
+
+ /**
+ * Defines TextClock Component.
*
- * @type { ?TextClockController }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'18','1.2':'20'}
- * @arkts 1.1&1.2
- */
- controller?: TextClockController
-}
-
-/**
- * TextClock component, which provides the text clock capability.
- *
- * @interface TextClockInterface
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
-/**
- * TextClock component, which provides the text clock capability.
- *
- * @interface TextClockInterface
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
-/**
- * TextClock component, which provides the text clock capability.
- *
- * @interface TextClockInterface
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- * @noninterop
- */
-interface TextClockInterface {
- /**
- * Construct the text clock component.
- * Specifies the current time zone.
- * The valid value is an integer ranging from - 14 to 12,
- * Where a negative value indicates the eastern time zone, for example, -8.
- *
- * @param { object } options
- * @returns { TextClockAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Construct the text clock component.
- * Specifies the current time zone.
- * The valid value is an integer ranging from - 14 to 12,
- * Where a negative value indicates the eastern time zone, for example, -8.
+ * Defines TextClock Component.
*
- * @param { object } options
- * @returns { TextClockAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
*/
/**
- * Construct the text clock component.
- * Specifies the current time zone.
- * The valid value is an integer ranging from - 14 to 12,
- * Where a negative value indicates the eastern time zone, for example, -8.
+ * Defines TextClock Component.
*
- * @param { object } options
- * @returns { TextClockAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
+ declare const TextClock: TextClockInterface;
+
/**
- * Construct the text clock component.
- * Specifies the current time zone.
- * The valid value is an integer ranging from - 14 to 12,
- * Where a negative value indicates the eastern time zone, for example, -8.
- * Anonymous Object Rectification.
+ * Defines TextClock Component instance.
*
- * @param { TextClockOptions } [options] - TextClock options.
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'18','1.2':'20'}
- * @arkts 1.1&1.2
- */
- (options?: TextClockOptions): TextClockAttribute;
-}
-
-/**
- * Provides attribute for TextClock.
- *
- * @extends CommonMethod
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
-/**
- * Provides attribute for TextClock.
- *
- * @extends CommonMethod
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
-/**
- * Provides attribute for TextClock.
- *
- * @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 TextClockAttribute extends CommonMethod {
- /**
- * set display time format,such as "yyyy/mm/dd","yyyy-mm-dd".
- * support time format:yyyy,mm,mmm(English month abbreviation),mmmm(Full name of the month in English),
- * dd,ddd(English Week abbreviation),dddd(Full name of the week in English),
- * HH/hh(24-hour clock/12-hour clock),MM/mm(minute),SS/ss(second).
- *
- * @param { string } value
- * @returns { TextClockAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * set display time format,such as "yyyy/mm/dd","yyyy-mm-dd".
- * support time format:yyyy,mm,mmm(English month abbreviation),mmmm(Full name of the month in English),
- * dd,ddd(English Week abbreviation),dddd(Full name of the week in English),
- * HH/hh(24-hour clock/12-hour clock),MM/mm(minute),SS/ss(second).
+ * Defines TextClock Component instance.
*
- * @param { string } value
- * @returns { TextClockAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
*/
/**
- * set display time format,such as "yyyy/mm/dd","yyyy-mm-dd".
- * support time format:yyyy,mm,mmm(English month abbreviation),mmmm(Full name of the month in English),
- * dd,ddd(English Week abbreviation),dddd(Full name of the week in English),
- * HH/hh(24-hour clock/12-hour clock),MM/mm(minute),SS/ss(second).
- * The default value is "hh:mm:ss" when TextClock is not in a form.
- * The default value is "hh:mm" when TextClock is in a form.
- * If the value has second or millisecond, the value will be set to the default value.
+ * Defines TextClock Component instance.
*
- * @param { string } value
- * @returns { TextClockAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
- /**
- * set display time format,such as "yyyy/mm/dd","yyyy-mm-dd".
- * support time format:yyyy,mm,mmm(English month abbreviation),mmmm(Full name of the month in English),
- * dd,ddd(English Week abbreviation),dddd(Full name of the week in English),
- * HH/hh(24-hour clock/12-hour clock),MM/mm(minute),SS/ss(second).
- * The default value is "hh:mm:ss" when TextClock is not in a form.
- * The default value is "hh:mm" when TextClock is in a form.
- * If the value has second or millisecond, the value will be set to the default value.
- *
- * @param { ResourceStr } value
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.1&1.2
- */
- format(value: ResourceStr): TextClockAttribute;
-
- /**
- * Provides a date change callback.
- * The callback parameter is Unix Time Stamp,
- * The number of milliseconds that have elapsed since January 1, 1970 (UTC).
- * The minimum callback interval for this event is seconds.
- * You can listen to this callback,
- * Use the format attribute method to customize data display in the callback.
- *
- * @param { function } event - Listening date event callback.
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Provides a date change callback.
- * The callback parameter is Unix Time Stamp,
- * The number of milliseconds that have elapsed since January 1, 1970 (UTC).
- * The minimum callback interval for this event is seconds.
- * You can listen to this callback,
- * Use the format attribute method to customize data display in the callback.
- *
- * @param { function } event - Listening date event callback.
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Provides a date change callback.
- * The callback parameter is Unix Time Stamp,
- * The number of milliseconds that have elapsed since January 1, 1970 (UTC).
- * The minimum callback interval for this event default is seconds when TextClock is not in a form.
- * The minimum callback interval for this event is minutes when TextClock is in a form.
- * If visibility is Hidden the callback be disabled when TextClock is in a form.
- * You can listen to this callback,
- * Use the format attribute method to customize data display in the callback.
- *
- * @param { function } event - Listening date event callback.
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- onDateChange(event: (value: number) => void): TextClockAttribute;
-
- /**
- * Called when the value of TextClock fontColor is set
- *
- * @param { ResourceColor } value
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Called when the value of TextClock fontColor is set
- *
- * @param { ResourceColor } value
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Called when the value of TextClock fontColor is set
- *
- * @param { ResourceColor } value
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- fontColor(value: ResourceColor): TextClockAttribute;
-
- /**
- * Called when the value of TextClock fontSize is set
- *
- * @param { Length } value
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Called when the value of TextClock fontSize is set
- *
- * @param { Length } value
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Called when the value of TextClock fontSize is set
- *
- * @param { Length } value
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- fontSize(value: Length): TextClockAttribute;
-
- /**
- * Called when the value of TextClock fontStyle is set
- *
- * @param { FontStyle } value
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Called when the value of TextClock fontStyle is set
- *
- * @param { FontStyle } value
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Called when the value of TextClock fontStyle is set
- *
- * @param { FontStyle } value
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- fontStyle(value: FontStyle): TextClockAttribute;
-
- /**
- * Called when the value of TextClock fontWeight is set
- *
- * @param { number | FontWeight | string } value
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Called when the value of TextClock fontWeight is set
- *
- * @param { number | FontWeight | string } value
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Called when the value of TextClock fontWeight is set
- *
- * @param { number | FontWeight | string } value
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- fontWeight(value: number | FontWeight | string): TextClockAttribute;
-
- /**
- * Called when the value of TextClock fontFamily is set
- *
- * @param { ResourceStr } value
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Called when the value of TextClock fontFamily is set
- *
- * @param { ResourceStr } value
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
- /**
- * Called when the value of TextClock fontFamily is set
- *
- * @param { ResourceStr } value
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- fontFamily(value: ResourceStr): TextClockAttribute;
-
- /**
- * Called when the text shadow is set.
- *
- * @param { ShadowOptions | Array } value - The shadow options.
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 11
- */
- /**
- * Called when the text shadow is set.
- *
- * @param { ShadowOptions | Array } value - The shadow options.
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
- */
- textShadow(value: ShadowOptions | Array): TextClockAttribute;
-
- /**
- * Called when the text fontFeature is set.
- *
- * @param { string } value - The fontFeature.
- * normal | ,
- * where = [ | on | off ], like: "ss01" 0
- * number of can be single or multiple, and separated by comma ','.
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 11
- */
- /**
- * Called when the text fontFeature is set.
- *
- * @param { string } value - The fontFeature.
- * normal | ,
- * where = [ | on | off ], like: "ss01" 0
- * number of can be single or multiple, and separated by comma ','.
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
- */
- fontFeature(value: string): TextClockAttribute;
-
- /**
- * Set the content modifier of textclock.
- *
- * @param { ContentModifier } modifier - The content modifier of textclock.
- * @returns { TextClockAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
- */
- contentModifier(modifier: ContentModifier): TextClockAttribute;
-
- /**
- * Set hour format
- *
- * @param { Optional } dateTimeOptions - Indicates whether a leading 0 is required for the hour.
- * @returns { TextClockAttribute } the attribute of the text clock
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
- */
- dateTimeOptions(dateTimeOptions: Optional): TextClockAttribute;
-}
-
-/**
- * Defines TextClock Component.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
-/**
- * Defines TextClock Component.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
-/**
- * Defines TextClock Component.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- * @noninterop
- */
-declare const TextClock: TextClockInterface;
-
-/**
- * Defines TextClock Component instance.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
-/**
- * Defines TextClock Component instance.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @since 10
- */
-/**
- * Defines TextClock Component instance.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- * @noninterop
- */
-declare const TextClockInstance: TextClockAttribute;
+ declare const TextClockInstance: TextClockAttribute;
+
\ No newline at end of file
diff --git a/api/@internal/component/ets/text_timer.d.ts b/api/@internal/component/ets/text_timer.d.ts
index c37788701c806dfa654bc3aad26d055e806ef65d..c6db62f919aa7f3d932b3ed3917229d3ff274786 100644
--- a/api/@internal/component/ets/text_timer.d.ts
+++ b/api/@internal/component/ets/text_timer.d.ts
@@ -18,12 +18,6 @@
* @kit ArkUI
*/
-/*** if arkts 1.2 */
-import { CommonConfiguration,CommonMethod,ShadowOptions,ContentModifier } from './common'
-import { ResourceColor,Length,ResourceStr } from './units'
-import { FontStyle,FontWeight } from './enums'
-/*** endif */
-
/**
* Provides a way to control the process.
*
@@ -44,779 +38,717 @@ import { FontStyle,FontWeight } from './enums'
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
+ * @since 11
*/
-declare class TextTimerController {
- /**
- * constructor.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * constructor.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
+ declare class TextTimerController {
+ /**
+ * constructor.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * constructor.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * constructor.
+ * A constructor used to create a TextTimerController object.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ constructor();
+
+ /**
+ * Provides a start event for timer.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Provides a start event for timer.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Starts the timer.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ start();
+
+ /**
+ * Provides a pause event for timer.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Provides a pause event for timer.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Pauses the timer.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ pause();
+
+ /**
+ * Provides an event to reset timer.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Provides an event to reset timer.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Resets the timer.
+ *
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ reset();
+ }
+
/**
- * constructor.
- * A constructor used to create a TextTimerController object.
+ * TextTimerConfiguration used by content modifier.
*
+ * @extends CommonConfiguration
+ * @interface TextTimerConfiguration
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
- * @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- constructor();
-
+ * @since 12
+ */
+ declare interface TextTimerConfiguration extends CommonConfiguration {
+ /**
+ * Timer duration, in milliseconds.
+ * It is effective only when isCountDown is true.
+ * The maximum value is 86400000 ms (24 hours).
+ *
+ * NOTE:
+ *
If the value is between 0 and 86,400,000, it is used as the initial countdown time.
+ *
Otherwise, the default value is used as the initial countdown time.
+ *
+ *
+ * @type { number }
+ * @default 60000
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 12
+ */
+ count: number;
+
+ /**
+ * Whether the timer is a countdown.
+ * The value true means that the timer counts down,
+ * and false means that the timer counts up.
+ *
+ * @type { boolean }
+ * @default false
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 12
+ */
+ isCountDown: boolean;
+
+ /**
+ * Whether the timer has already started.
+ *
+ * @type { boolean }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 12
+ */
+ started: boolean;
+
+ /**
+ * Elapsed time of the timer, in the minimum unit of the format.
+ *
+ * @type { number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 12
+ */
+ elapsedTime: number;
+ }
+
/**
- * Provides a start event for timer.
+ * Defines the options of TextTimer.
*
+ * @interface TextTimerOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Provides a start event for timer.
+ * Defines the options of TextTimer.
*
+ * @interface TextTimerOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Starts the timer.
+ * Parameters of the TextTimer component.
*
+ * @interface TextTimerOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
- start();
-
- /**
- * Provides a start event for timer.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- start():void;
-
+ interface TextTimerOptions {
+ /**
+ * Sets whether to countdown.The default value is false.
+ *
+ * @type { ?boolean }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Sets whether to countdown.The default value is false.
+ *
+ * @type { ?boolean }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Whether the timer is a countdown.
+ * The value true means that the timer counts down,
+ * and false means that the timer counts up.
+ *
+ * @type { ?boolean } - Default value: false
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ isCountDown?: boolean;
+
+ /**
+ * Specifies the timer range.
+ * In the non-countDown scenario, a negative value indicates that the timer is not limited.
+ * The unit is millisecond.
+ *
+ * @type { ?number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Specifies the timer range.
+ * In the non-countDown scenario, a negative value indicates that the timer is not limited.
+ * The unit is millisecond.
+ *
+ * @type { ?number }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Timer duration, in milliseconds.
+ * It is effective only when isCountDown is true.
+ * The maximum value is 86400000 ms (24 hours).
+ *
+ * NOTE:
+ *
If the value is between 0 and 86,400,000, it is used as the initial countdown time.
+ *
Otherwise, the default value is used as the initial countdown time.
+ *
+ *
+ * @type { ?number } - Default value: 60000
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ count?: number;
+
+ /**
+ * Controller of Texttimer.
+ *
+ * @type { ?TextTimerController }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Controller of Texttimer.
+ *
+ * @type { ?TextTimerController }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * TextTimer controller.
+ *
+ * @type { ?TextTimerController }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ controller?: TextTimerController;
+ }
+
/**
- * Provides a pause event for timer.
+ * Provides an interface for texttimer containers.
*
+ * @interface TextTimerInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Provides a pause event for timer.
+ * Provides an interface for texttimer containers.
*
+ * @interface TextTimerInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Pauses the timer.
+ * Provides an interface for texttimer containers.
*
+ * @interface TextTimerInterface
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
- pause();
-
- /**
- * Provides a pause event for timer.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- pause():void;
-
+ interface TextTimerInterface {
+ /**
+ * Defines the TextTimer constructor.
+ *
+ * @param { TextTimerOptions } options
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Defines the TextTimer constructor.
+ *
+ * @param { TextTimerOptions } options
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * A constructor used to create a TextTimerController object.
+ *
+ * @param { TextTimerOptions } options
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ (options?: TextTimerOptions): TextTimerAttribute;
+ }
+
/**
- * Provides an event to reset timer.
+ * Defines the TextTimer attribute functions.
*
- * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @extends CommonMethod
* @since 8
*/
/**
- * Provides an event to reset timer.
+ * Defines the TextTimer attribute functions.
*
+ * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Resets the timer.
+ * Defines the TextTimer attribute functions.
*
+ * @extends CommonMethod
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
- reset();
-
- /**
- * Provides an event to reset timer.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.2
- */
- reset():void;
-}
-
-/**
- * TextTimerConfiguration used by content modifier.
- *
- * @extends CommonConfiguration
- * @interface TextTimerConfiguration
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
- */
-declare interface TextTimerConfiguration extends CommonConfiguration {
- /**
- * Timer duration, in milliseconds.
- * It is effective only when isCountDown is true.
- * The maximum value is 86400000 ms (24 hours).
- *
- * NOTE:
- *
If the value is between 0 and 86,400,000, it is used as the initial countdown time.
- *
Otherwise, the default value is used as the initial countdown time.
- *
- *
- * @type { number }
- * @default 60000
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
- */
- count: number;
-
- /**
- * Whether the timer is a countdown.
- * The value true means that the timer counts down,
- * and false means that the timer counts up.
- *
- * @type { boolean }
- * @default false
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
- */
- isCountDown: boolean;
-
- /**
- * Whether the timer has already started.
- *
- * @type { boolean }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
- */
- started: boolean;
+ declare class TextTimerAttribute extends CommonMethod {
+ /**
+ * Set the display time format, for example, now is hh/mm/ss/ms and current: hh-mm-ss-ms.
+ * The time format string can be hh, mm, ss, or ms.
+ *
+ * @param { string } value
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Set the display time format, for example, now is hh/mm/ss/ms and current: hh-mm-ss-ms.
+ * The time format string can be hh, mm, ss, or ms.
+ *
+ * @param { string } value
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Sets the custom format.
+ * The value must contain at least one of the following keywords: HH, mm, ss, and SS.
+ *
+ * NOTE:
+ *
If the specified date format is yy, MM, or dd, the default value is used instead.
+ *
+ *
+ * @param { string } value - Custom format.Default value: 'HH:mm:ss.SS'
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ format(value: string): TextTimerAttribute;
+
+ /**
+ * Called when the font color is set.
+ *
+ * @param { ResourceColor } value
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Called when the font color is set.
+ *
+ * @param { ResourceColor } value
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Sets the font color.
+ *
+ * @param { ResourceColor } value
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ fontColor(value: ResourceColor): TextTimerAttribute;
+
+ /**
+ * Called when the font size is set.
+ *
+ * @param { Length } value
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Called when the font size is set.
+ *
+ * @param { Length } value
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Sets the font size.
+ *
+ * @param { Length } value - Font size.The default font size is 16 fp.
+ *
If fontSize is of the number type, the unit fp is used.
+ *
The value cannot be a percentage.
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ fontSize(value: Length): TextTimerAttribute;
+
+ /**
+ * Called when the fontStyle is set
+ *
+ * @param { FontStyle } value
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Called when the fontStyle is set
+ *
+ * @param { FontStyle } value
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Sets the font style.
+ *
+ * @param { FontStyle } value - Font style.Default value: FontStyle.Normal
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ fontStyle(value: FontStyle): TextTimerAttribute;
+
+ /**
+ * Called when the fontWeight is set
+ *
+ * @param { number | FontWeight | string } value
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Called when the fontWeight is set
+ *
+ * @param { number | FontWeight | string } value
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Called when the fontWeight is set
+ *
+ * @param { number | FontWeight | string } value
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ /**
+ * Sets the font weight.
+ *
+ * NOTE:
+ *
If the value is too large, the text may be clipped depending on the font.
+ *
+ *
+ * @param { number | FontWeight | ResourceStr } value - Font weight.
+ *
For the number type, Value range: [100, 900], at an interval of 100.The default value is 400.
+ *
A larger value indicates a heavier font weight.
+ *
For the string type, only strings that represent a number.
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ */
+ fontWeight(value: number | FontWeight | ResourceStr): TextTimerAttribute;
+
+ /**
+ * Called when the fontFamily is set
+ *
+ * @param { ResourceStr } value
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Called when the fontFamily is set
+ *
+ * @param { ResourceStr } value
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Sets the font family.
+ *
+ * @param { ResourceStr } value - Font family. Default font: 'HarmonyOS Sans'
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ fontFamily(value: ResourceStr): TextTimerAttribute;
+
+ /**
+ * Called when the timer value is returned.
+ *
+ * @param { function } event
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 8
+ */
+ /**
+ * Called when the timer value is returned.
+ *
+ * @param { function } event
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Triggered when the time text changes.
+ * This event is not triggered when the screen is locked or the application is running in the background.
+ * When high-precision formats (such as SSS or SS) are used, the callback interval may vary.
+ *
+ * @param { function } event
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ onTimer(event: (utc: number, elapsedTime: number) => void): TextTimerAttribute;
+
+ /**
+ * Called when the text shadow is set.
+ *
+ * @param { ShadowOptions | Array } value - The shadow options.
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @since 11
+ */
+ /**
+ * Sets the text shadow.
+ * It supports input parameters in an array to implement multiple text shadows.
+ * This API does not work with the fill attribute or coloring strategy.
+ *
+ * @param { ShadowOptions | Array } value - The shadow options.
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 12
+ */
+ textShadow(value: ShadowOptions | Array): TextTimerAttribute;
+
+ /**
+ * Creates a content modifier.
+ *
+ * @param { ContentModifier } modifier - The content modifier of texttimer.
+ * @returns { TextTimerAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 12
+ */
+ contentModifier(modifier: ContentModifier): TextTimerAttribute;
+ }
/**
- * Elapsed time of the timer, in the minimum unit of the format.
- *
- * @type { number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
- */
- elapsedTime: number;
-}
-
-/**
- * Defines the options of TextTimer.
- *
- * @interface TextTimerOptions
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
-/**
- * Defines the options of TextTimer.
- *
- * @interface TextTimerOptions
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
-/**
- * Parameters of the TextTimer component.
- *
- * @interface TextTimerOptions
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
-interface TextTimerOptions {
- /**
- * Sets whether to countdown.The default value is false.
- *
- * @type { ?boolean }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Sets whether to countdown.The default value is false.
- *
- * @type { ?boolean }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Whether the timer is a countdown.
- * The value true means that the timer counts down,
- * and false means that the timer counts up.
- *
- * @type { ?boolean } - Default value: false
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- isCountDown?: boolean;
-
- /**
- * Specifies the timer range.
- * In the non-countDown scenario, a negative value indicates that the timer is not limited.
- * The unit is millisecond.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Specifies the timer range.
- * In the non-countDown scenario, a negative value indicates that the timer is not limited.
- * The unit is millisecond.
- *
- * @type { ?number }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Timer duration, in milliseconds.
- * It is effective only when isCountDown is true.
- * The maximum value is 86400000 ms (24 hours).
- *
- * NOTE:
- *
If the value is between 0 and 86,400,000, it is used as the initial countdown time.
- *
Otherwise, the default value is used as the initial countdown time.
- *
- *
- * @type { ?number } - Default value: 60000
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- count?: number;
-
- /**
- * Controller of Texttimer.
- *
- * @type { ?TextTimerController }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Controller of Texttimer.
- *
- * @type { ?TextTimerController }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * TextTimer controller.
- *
- * @type { ?TextTimerController }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- controller?: TextTimerController;
-}
-
-/**
- * Provides an interface for texttimer containers.
- *
- * @interface TextTimerInterface
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
-/**
- * Provides an interface for texttimer containers.
- *
- * @interface TextTimerInterface
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
-/**
- * Provides an interface for texttimer containers.
- *
- * @interface TextTimerInterface
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- * @noninterop
- */
-interface TextTimerInterface {
- /**
- * Defines the TextTimer constructor.
- *
- * @param { TextTimerOptions } options
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Defines the TextTimer constructor.
- *
- * @param { TextTimerOptions } options
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * A constructor used to create a TextTimerController object.
- *
- * @param { TextTimerOptions } options
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- (options?: TextTimerOptions): TextTimerAttribute;
-}
-
-/**
- * Defines the TextTimer attribute functions.
- *
- * @extends CommonMethod
- * @since 8
- */
-/**
- * Defines the TextTimer attribute functions.
- *
- * @extends CommonMethod
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
-/**
- * Defines the TextTimer attribute functions.
- *
- * @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 TextTimerAttribute extends CommonMethod {
- /**
- * Set the display time format, for example, now is hh/mm/ss/ms and current: hh-mm-ss-ms.
- * The time format string can be hh, mm, ss, or ms.
- *
- * @param { string } value
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Set the display time format, for example, now is hh/mm/ss/ms and current: hh-mm-ss-ms.
- * The time format string can be hh, mm, ss, or ms.
- *
- * @param { string } value
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Sets the custom format.
- * The value must contain at least one of the following keywords: HH, mm, ss, and SS.
- *
- * NOTE:
- *
If the specified date format is yy, MM, or dd, the default value is used instead.
- *
- *
- * @param { string } value - Custom format.Default value: 'HH:mm:ss.SS'
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- format(value: string): TextTimerAttribute;
-
- /**
- * Called when the font color is set.
- *
- * @param { ResourceColor } value
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Called when the font color is set.
- *
- * @param { ResourceColor } value
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Sets the font color.
- *
- * @param { ResourceColor } value
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- fontColor(value: ResourceColor): TextTimerAttribute;
-
- /**
- * Called when the font size is set.
- *
- * @param { Length } value
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Called when the font size is set.
- *
- * @param { Length } value
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Sets the font size.
- *
- * @param { Length } value - Font size.The default font size is 16 fp.
- *
If fontSize is of the number type, the unit fp is used.
- *
The value cannot be a percentage.
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- fontSize(value: Length): TextTimerAttribute;
-
- /**
- * Called when the fontStyle is set
- *
- * @param { FontStyle } value
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Called when the fontStyle is set
- *
- * @param { FontStyle } value
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Sets the font style.
- *
- * @param { FontStyle } value - Font style.Default value: FontStyle.Normal
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- fontStyle(value: FontStyle): TextTimerAttribute;
-
- /**
- * Called when the fontWeight is set
+ * Defines TextTimer Component.
*
- * @param { number | FontWeight | string } value
- * @returns { TextTimerAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Called when the fontWeight is set
+ * Defines TextTimer Component.
*
- * @param { number | FontWeight | string } value
- * @returns { TextTimerAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Called when the fontWeight is set
+ * Defines TextTimer Component.
*
- * @param { number | FontWeight | string } value
- * @returns { TextTimerAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
* @since 11
*/
+ declare const TextTimer: TextTimerInterface;
+
/**
- * Sets the font weight.
- *
- * NOTE:
- *
If the value is too large, the text may be clipped depending on the font.
- *
- *
- * @param { number | FontWeight | ResourceStr } value - Font weight.
- *
For the number type, Value range: [100, 900], at an interval of 100.The default value is 400.
- *
A larger value indicates a heavier font weight.
- *
For the string type, only strings that represent a number.
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 20
- * @arkts 1.1&1.2
- */
- fontWeight(value: number | FontWeight | ResourceStr): TextTimerAttribute;
-
- /**
- * Called when the fontFamily is set
- *
- * @param { ResourceStr } value
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
- /**
- * Called when the fontFamily is set
- *
- * @param { ResourceStr } value
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
- /**
- * Sets the font family.
- *
- * @param { ResourceStr } value - Font family. Default font: 'HarmonyOS Sans'
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- fontFamily(value: ResourceStr): TextTimerAttribute;
-
- /**
- * Called when the timer value is returned.
+ * Defines TextTimer Component instance.
*
- * @param { function } event
- * @returns { TextTimerAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 8
*/
/**
- * Called when the timer value is returned.
+ * Defines TextTimer Component instance.
*
- * @param { function } event
- * @returns { TextTimerAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @since 10
*/
/**
- * Triggered when the time text changes.
- * This event is not triggered when the screen is locked or the application is running in the background.
- * When high-precision formats (such as SSS or SS) are used, the callback interval may vary.
+ * Defines TextTimer Component instance.
*
- * @param { function } event
- * @returns { TextTimerAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since arkts {'1.1':'11','1.2':'20'}
- * @arkts 1.1&1.2
- */
- onTimer(event: (utc: number, elapsedTime: number) => void): TextTimerAttribute;
-
- /**
- * Called when the text shadow is set.
- *
- * @param { ShadowOptions | Array } value - The shadow options.
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
* @since 11
*/
- /**
- * Sets the text shadow.
- * It supports input parameters in an array to implement multiple text shadows.
- * This API does not work with the fill attribute or coloring strategy.
- *
- * @param { ShadowOptions | Array } value - The shadow options.
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
- */
- textShadow(value: ShadowOptions | Array): TextTimerAttribute;
-
- /**
- * Creates a content modifier.
- *
- * @param { ContentModifier } modifier - The content modifier of texttimer.
- * @returns { TextTimerAttribute }
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @atomicservice
- * @since arkts {'1.1':'12','1.2':'20'}
- * @arkts 1.1&1.2
- */
- contentModifier(modifier: ContentModifier): TextTimerAttribute;
-}
-
-/**
- * Defines TextTimer Component.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
-/**
- * Defines TextTimer Component.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
-/**
- * Defines TextTimer Component.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- * @noninterop
- */
-declare const TextTimer: TextTimerInterface;
-
-/**
- * Defines TextTimer Component instance.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @since 8
- */
-/**
- * Defines TextTimer Component instance.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
-/**
- * Defines TextTimer Component instance.
- *
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @atomicservice
- * @since 11
- * @noninterop
- */
-declare const TextTimerInstance: TextTimerAttribute;
+ declare const TextTimerInstance: TextTimerAttribute;
+
\ No newline at end of file
diff --git a/api/arkui/FrameNode.static.d.ets b/api/arkui/FrameNode.static.d.ets
index 2f8717bc3a8ae6c59592de9078b3fa519acd9c67..bdc925b164de5db45fa52df4c210820fae20c421 100644
--- a/api/arkui/FrameNode.static.d.ets
+++ b/api/arkui/FrameNode.static.d.ets
@@ -66,6 +66,11 @@ import { ToggleAttribute, ToggleOptions } from './component/toggle';
import { CheckboxGroupAttribute, CheckboxGroupOptions } from './component/checkboxgroup';
import { RatingAttribute, RatingOptions } from './component/rating';
import { XComponentAttribute, XComponentController, XComponentOptions, XComponentParameters, NativeXComponentParameters } from './component/xcomponent';
+import image from '../@ohos.multimedia.image';
+import { ImageAIOptions } from './component/imageCommon';
+import { ResourceStr } from './component/units';
+import { LoadingProgressAttribute } from './component/loadingProgress';
+
/**
* Layout constraint, include the max size, the min size and the reference size for children to calculate percent.
@@ -772,7 +777,14 @@ export declare namespace typeNode {
createBlankNode,
createXComponentNodeDefault,
createXComponentNodeWithOptions,
- createXComponentNodeWithNativeParameters
+ createXComponentNodeWithNativeParameters,
+ createImageNode,
+ createQRCodeNode,
+ createTextTimerNode,
+ createTextClockNode,
+ createLoadingProgressNode,
+ createProgressNode,
+ createBadgeNode,
}
/**
@@ -1085,6 +1097,44 @@ export declare namespace typeNode {
*/
export function createDividerNode(context: UIContext, nodeType: 'Divider'): Divider;
+/**
+ * Define the LoadingProgress type of FrameNode.
+ *
+ * @extends TypedFrameNode
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ abstract class LoadingProgressFrameNode extends TypedFrameNode {
+ /**
+ * Initialize LoadingProgress FrameNode.
+ *
+ * @returns { LoadingProgressAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ abstract initialize(): LoadingProgressAttribute;
+ }
+
+ /**
+ * Define the FrameNode type for LoadingProgress.
+ *
+ * @typedef { LoadingProgressFrameNode } LoadingProgress
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ type LoadingProgress = LoadingProgressFrameNode;
+
+ /**
+ * Create a FrameNode of LoadingProgress type.
+ *
+ * @param { UIContext } context - uiContext used to create the FrameNode.
+ * @param { 'LoadingProgress' } nodeType - node type.
+ * @returns { LoadingProgress } - Return LoadingProgress type FrameNode.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ export function createLoadingProgressNode(context: UIContext, nodeType: 'LoadingProgress'): LoadingProgress;
+
/**
* Define the Blank type of FrameNode.
*
@@ -1124,6 +1174,66 @@ export declare namespace typeNode {
*/
export function createBlankNode(context: UIContext, nodeType: 'Blank'): Blank;
+ /**
+ * Define the Image type of FrameNode.
+ *
+ * @extends TypedFrameNode
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ abstract class ImageFrameNode extends TypedFrameNode {
+ /**
+ * Initialize Image FrameNode.
+ *
+ * @param { image.PixelMap | ResourceStr | DrawableDescriptor } src
+ * @returns { ImageAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ abstract initialize(src: image.PixelMap | ResourceStr | DrawableDescriptor): ImageAttribute;
+
+ /**
+ * Initialize Image FrameNode.
+ *
+ * @param { image.PixelMap | ResourceStr | DrawableDescriptor | ImageContent } src
+ * @returns { ImageAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ abstract initialize(src: image.PixelMap | ResourceStr | DrawableDescriptor | ImageContent): ImageAttribute;
+
+ /**
+ * Initialize Image FrameNode.
+ *
+ * @param { image.PixelMap | ResourceStr | DrawableDescriptor } src
+ * @param { ImageAIOptions } value
+ * @returns { ImageAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ abstract initialize(src: image.PixelMap | ResourceStr | DrawableDescriptor, value: ImageAIOptions): ImageAttribute;
+ }
+
+ /**
+ * Define the FrameNode type for Image.
+ *
+ * @typedef { ImageFrameNode } Image
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ type Image = ImageFrameNode;
+
+ /**
+ * Create a FrameNode of Image type.
+ *
+ * @param { UIContext } context - uiContext used to create the FrameNode.
+ * @param { 'Image' } nodeType - node type.
+ * @returns { Image } - Return Image type FrameNode.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ export function createImageNode(context: UIContext, nodeType: 'Image'): Image;
+
/**
* Define the List type of FrameNode.
*
@@ -1241,6 +1351,45 @@ export declare namespace typeNode {
*/
export function createListItemGroupNode(context: UIContext, nodeType: 'ListItemGroup'): ListItemGroup;
+ /**
+ * Define the Progress type of FrameNode.
+ *
+ * @extends TypedFrameNode
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ abstract class ProgressFrameNode extends TypedFrameNode {
+ /**
+ * Initialize Progress FrameNode.
+ *
+ * @param { ProgressOptions } value
+ * @returns { ProgressAttribute }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ abstract initialize(value: ProgressOptions): ProgressAttribute;
+ }
+
+ /**
+ * Define the FrameNode type for Progress.
+ *
+ * @typedef { ProgressFrameNode } Progress
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ type Progress = ProgressFrameNode;
+
+ /**
+ * Create a FrameNode of Progress type.
+ *
+ * @param { UIContext } context - uiContext used to create the FrameNode.
+ * @param { 'Progress' } nodeType - node type.
+ * @returns { Progress } - Return Progress type FrameNode.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @since 20
+ */
+ export function createProgressNode(context: UIContext, nodeType: 'Progress'): Progress;
+
/**
* Define the Scroll type of FrameNode.
*
@@ -1280,6 +1429,84 @@ export declare namespace typeNode {
*/
export function createScrollNode(context: UIContext, nodeType: 'Scroll'): Scroll;
+ /**
+ * Define the TextClock type of FrameNode.
+ *
+ * @extends TypedFrameNode