diff --git a/api/@internal/component/ets/index-full.d.ts b/api/@internal/component/ets/index-full.d.ts index ba50d08873b44a39d66bc756de705a2b5193d9f4..76ab07278c5d6dd6b2fe858d9f867cd1ab892c17 100644 --- a/api/@internal/component/ets/index-full.d.ts +++ b/api/@internal/component/ets/index-full.d.ts @@ -64,7 +64,6 @@ /// /// /// -/// /// /// /// @@ -151,4 +150,3 @@ /// /// /// -/// \ No newline at end of file diff --git a/api/@internal/component/ets/linearindicator.d.ts b/api/@internal/component/ets/linearindicator.d.ts deleted file mode 100644 index 3b548b466ad7aebae21832188fbfcc8f5b5b2360..0000000000000000000000000000000000000000 --- a/api/@internal/component/ets/linearindicator.d.ts +++ /dev/null @@ -1,325 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @file - * @kit ArkUI - */ - -/*** if arkts 1.2 */ -import { CommonMethod, Optional } from './common'; -import { ColorMetrics, LengthMetrics } from './units'; -/*** endif */ - -/** - * Defines the LinearIndicator Controller. - * - * @interface LinearIndicatorController - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ -declare class LinearIndicatorController { - /** - * constructor. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ - constructor(); - - /** - * Sets the progress of indicator. - * - * @param { number } index - the index of current indicator, value range: [0, count - 1]. - * If index value is out of range, do nothing. - * @param { number } progress - current indicator progress value, value range: [0, 100]. - * If the progress value is out of range, do nothing. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ - setProgress(index: number, progress: number): void; - - /** - * Start indicator auto play. - * - * @param { LinearIndicatorStartOptions } [options] - the options of indicator auto play. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ - start(options?: LinearIndicatorStartOptions): void; - - /** - * Pause indicator auto play. - * Start auto play will be resumed from this paused position. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ - pause(): void; - - /** - * Stop indicator auto play. - * Start auto play will restart from the very beginning. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ - stop(): void; -} - -/** - * Provides options of indicator auto play. - * - * @interface LinearIndicatorAutoPlayOptions - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ -declare interface LinearIndicatorStartOptions { - /** - * The interval between twice auto play. The unit is ms. - * - * @type { ?number } - * @default The default value is 0. if value is less than 0, the value will be 0. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ - interval?: number; - - /** - * The animation curve duration. The unit is ms. - * - * @type { ?number } - * @default 4000 - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ - duration?: number; -} - -/** - * Provides linear indicator style. - * - * @interface LinearIndicatorStyle - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ -declare interface LinearIndicatorStyle { - /** - * The space of two linear indicator. - * - * @type { ?LengthMetrics } - * @default The default value is 4.0vp. if value is less than 0, the value will be 4.0vp. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ - space?: LengthMetrics; - - /** - * Stroke width of the progress indicator. - * - * @type { ?LengthMetrics } - * @default The default value is 2.0vp. if value is less than 0, the value will be 2.0vp. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ - strokeWidth?: LengthMetrics; - - /** - * The stroke radius of linear indicator. - * - * @type { ?LengthMetrics } - * @default The default value is 1.0vp. if value is more than strokeWidth/2, the value will be strokeWidth/2. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ - strokeRadius?: LengthMetrics; - - /** - * The track background color of linear indicator. - * - * @type { ?ColorMetrics } - * @default comp_background_tertiary - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ - trackBackgroundColor?: ColorMetrics; - - /** - * The track color of linear indicator. - * - * @type { ?ColorMetrics } - * @default comp_background_emphasize - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ - trackColor?: ColorMetrics; -} - -/** - * Provides an interface for indicator. - * - * @interface LinearIndicatorInterface - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ -interface LinearIndicatorInterface { - /** - * Constructor parameters - * - * @param { number } count - the number of progress in LinearIndicator. minimum value is 2(default is 5). - * if count is less than 2, the value will be 2. - * @param { LinearIndicatorController } controller - Controller of LinearIndicator. - * @returns { LinearIndicatorAttribute } return the instance of the LinearIndicatorAttribute - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ - (count?: number, controller?: LinearIndicatorController): LinearIndicatorAttribute; -} - -/** - * Defines the Indicator attribute functions. - * - * @extends CommonMethod - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ -declare class LinearIndicatorAttribute extends CommonMethod { - /** - * Sets the indicator style. - * - * @param { Optional } style - the style of LinearIndicator - * @returns { LinearIndicatorAttribute } return the instance of the LinearIndicatorAttribute - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ - indicatorStyle(style: Optional): LinearIndicatorAttribute; - - /** - * Sets whether indicator supports loop, default is true. - * - * @param { Optional } loop - indicate whether loop playback is supported - * @returns { LinearIndicatorAttribute } return the instance of the LinearIndicatorAttribute - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ - indicatorLoop(loop: Optional): LinearIndicatorAttribute; - - /** - * Called when progress value update. - * - * @param { Optional } callback - callback of the progress change event. - * @returns { LinearIndicatorAttribute } return the instance of the LinearIndicatorAttribute - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ - onChange(callback: Optional): LinearIndicatorAttribute; -} - -/** - * Defines the callback type used in the indicator progress change event. - * - * @typedef { function } OnLinearIndicatorChangeCallback - * @param { number } index - index of current indicator. - * @param { number } progress - current indicator progress value. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 - */ -declare type OnLinearIndicatorChangeCallback = (index: number, progress: number) => void; - -/** - * Defines Indicator Component. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 18 - */ -declare const LinearIndicator: LinearIndicatorInterface; - -/** - * Defines Indicator Component instance. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 18 - */ -declare const LinearIndicatorInstance: LinearIndicatorAttribute diff --git a/api/@internal/component/ets/rich_editor.d.ts b/api/@internal/component/ets/rich_editor.d.ts index 739a46d64d45c3c48bb54071ea06c2bf90f6648b..e9d746f8206042a46878e66aaa2978daf59b159a 100644 --- a/api/@internal/component/ets/rich_editor.d.ts +++ b/api/@internal/component/ets/rich_editor.d.ts @@ -2974,7 +2974,6 @@ declare interface RichEditorChangeValue { * @type { ?TextChangeReason } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @atomicservice * @since 20 */ changeReason?: TextChangeReason; diff --git a/api/@internal/component/ets/shape.d.ts b/api/@internal/component/ets/shape.d.ts index 52f08c6535647e947339218877c74d409923dd25..1f5c17fbacd7674153c23f1435c3fd34ec922752 100644 --- a/api/@internal/component/ets/shape.d.ts +++ b/api/@internal/component/ets/shape.d.ts @@ -913,7 +913,7 @@ declare class ShapeAttribute extends CommonMethod { strokeOpacity(value: number | string | Resource): ShapeAttribute; /** - * Called when the transparency of the border is set. + * Called when the transparency of the fill area is set. * * @param { number | string | Resource } value * @returns { ShapeAttribute } @@ -921,7 +921,7 @@ declare class ShapeAttribute extends CommonMethod { * @since 7 */ /** - * Called when the transparency of the border is set. + * Called when the transparency of the fill area is set. * * @param { number | string | Resource } value * @returns { ShapeAttribute } @@ -930,7 +930,7 @@ declare class ShapeAttribute extends CommonMethod { * @since 9 */ /** - * Called when the transparency of the border is set. + * Called when the transparency of the fill area is set. * * @param { number | string | Resource } value * @returns { ShapeAttribute } @@ -940,7 +940,7 @@ declare class ShapeAttribute extends CommonMethod { * @since 10 */ /** - * Called when the transparency of the border is set. + * Called when the transparency of the fill area is set. * * @param { number | string | Resource } value * @returns { ShapeAttribute } diff --git a/api/@internal/component/ets/text_common.d.ts b/api/@internal/component/ets/text_common.d.ts index 5c12670995d28a140e6aee1808dfeb9bea206d5d..3428691ecb75528ff1d3cf8c15b7c6a4dc23debf 100644 --- a/api/@internal/component/ets/text_common.d.ts +++ b/api/@internal/component/ets/text_common.d.ts @@ -2055,7 +2055,7 @@ declare enum MaxLinesMode { * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice + * @systemapi * @since 20 */ declare enum TextChangeReason { @@ -2063,16 +2063,16 @@ declare enum TextChangeReason { * Default value. * * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice + * @systemapi * @since 20 */ UNKNOWN = 0, /** - * Reason for input. + * Reason for input from input method. * * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice + * @systemapi * @since 20 */ INPUT = 1, @@ -2081,7 +2081,7 @@ declare enum TextChangeReason { * Reason for paste. * * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice + * @systemapi * @since 20 */ PASTE = 2, @@ -2090,7 +2090,7 @@ declare enum TextChangeReason { * Reason for cut. * * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice + * @systemapi * @since 20 */ CUT = 3, @@ -2099,7 +2099,7 @@ declare enum TextChangeReason { * Reason for drag. * * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice + * @systemapi * @since 20 */ DRAG = 4, @@ -2108,7 +2108,7 @@ declare enum TextChangeReason { * Reason for auto fill. * * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice + * @systemapi * @since 20 */ AUTO_FILL = 5, @@ -2117,7 +2117,7 @@ declare enum TextChangeReason { * Reason for ai write. * * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice + * @systemapi * @since 20 */ AI_WRITE = 6, @@ -2126,7 +2126,7 @@ declare enum TextChangeReason { * Reason for redo. * * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice + * @systemapi * @since 20 */ REDO = 7, @@ -2135,7 +2135,7 @@ declare enum TextChangeReason { * Reason for undo. * * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice + * @systemapi * @since 20 */ UNDO = 8, @@ -2144,7 +2144,7 @@ declare enum TextChangeReason { * Reason for controller methods. * * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice + * @systemapi * @since 20 */ CONTROLLER = 9, @@ -2153,7 +2153,7 @@ declare enum TextChangeReason { * Reason for accessibilty methods. * * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice + * @systemapi * @since 20 */ ACCESSIBILITY = 10, @@ -2162,7 +2162,7 @@ declare enum TextChangeReason { * Reason for collarboration input. * * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice + * @systemapi * @since 20 */ COLLABORATION = 11, @@ -2171,7 +2171,7 @@ declare enum TextChangeReason { * Reason for stylus input. * * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice + * @systemapi * @since 20 */ STYLUS = 12 diff --git a/api/@ohos.arkui.UIContext.d.ts b/api/@ohos.arkui.UIContext.d.ts index 31107f0821666a756b106865e04e271e83f5ed59..4881309f6f54c99c7705b3933b57a358f5123edc 100644 --- a/api/@ohos.arkui.UIContext.d.ts +++ b/api/@ohos.arkui.UIContext.d.ts @@ -2962,7 +2962,7 @@ export declare class SwiperDynamicSyncScene extends DynamicSyncScene { * @since arkts { '1.1':'14','1.2':'20' } * @arkts 1.1&1.2 */ -export class MarqueeDynamicSyncScene extends DynamicSyncScene { +export declare class MarqueeDynamicSyncScene extends DynamicSyncScene { /** * Type of the MarqueeDynamicSyncSceneType. * @type { MarqueeDynamicSyncSceneType } diff --git a/api/@ohos.arkui.component.d.ets b/api/@ohos.arkui.component.d.ets index 632968f2f541b7543721a80fd58e4aa3a81a8433..a10e0f398be550d92b443f64b9e189939e5cecf8 100644 --- a/api/@ohos.arkui.component.d.ets +++ b/api/@ohos.arkui.component.d.ets @@ -79,7 +79,6 @@ export * from './arkui/component/indicatorcomponent'; export * from './arkui/component/inspector'; export * from './arkui/component/lazyForEach'; export * from './arkui/component/line'; -export * from './arkui/component/linearindicator'; export * from './arkui/component/list'; export * from './arkui/component/listItem'; export * from './arkui/component/listItemGroup'; diff --git a/api/@ohos.arkui.drawableDescriptor.d.ts b/api/@ohos.arkui.drawableDescriptor.d.ts index fdfeda525aec69a3cf9fdf15f1bf6c9fcc5d19d1..6e361e9a73a00e14399cd7a6f746f3a38a5060d0 100644 --- a/api/@ohos.arkui.drawableDescriptor.d.ts +++ b/api/@ohos.arkui.drawableDescriptor.d.ts @@ -20,63 +20,6 @@ import image from './@ohos.multimedia.image'; -/** - * Indicates the return result of the data to be fetched. - * - * @typedef DrawableDescriptorResult - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 18 - */ -declare interface DrawableDescriptorResult { - /** - * DrawableDescriptor width.The default value is -1. - * - * @type { ?number } - * @readonly - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 18 - */ - readonly width?: number; - - /** - * DrawableDescriptor height.The default value is -1. - * - * @type { ?number } - * @readonly - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 18 - */ - readonly height?: number; -} - -/** - * DrawableDescriptor's option which is used in constructor. - * - * @typedef DrawableDescriptorOptions - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 18 - */ -declare interface DrawableDescriptorOptions { - /** - * If true, it will fetch the data using the uri when object is constructing.The default value is false. - * - * @type { ?boolean } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 18 - */ - fetchWhenConstructingWithUri?: boolean; -} - /** * Use the DrawableDescriptor class to get drawable image. * @@ -136,53 +79,6 @@ export declare class DrawableDescriptor { * @arkts 1.1&1.2 */ getPixelMap(): image.PixelMap; - /** - * Get original width of drawable object. - * - * @returns { number } Return the width of the DrawableDescriptor object. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 18 - */ - getOriginalWidth(): number; - - /** - * Get original height of drawable object. - * - * @returns { number } Return the height of the DrawableDescriptor object. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 18 - */ - getOriginalHeight(): number; - - /** - * Fetch the drawable's data whose corresponding uri is passed in constructor.This fetched data can be draw in Image view. - * - * @returns { Promise } Return the promise returned by the funciton. - * @throws { BusinessError } 100001 - Data loading failed. Maybe the uri is invalid. - * @throws { BusinessError } 100002 - Data decoding failed. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 18 - */ - fetch(): Promise; - - /** - * Fetch the drawable's data whose corresponding uri is passed in constructor.This fetched data can be draw in Image view. - * - * @returns { DrawableDescriptorResult } Return the result of the DrawableDescriptor object. - * @throws { BusinessError } 100001 - Data loading failed. Maybe the uri is invalid. - * @throws { BusinessError } 100002 - Data decoding failed. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 18 - */ - fetchSync(): DrawableDescriptorResult; } /** @@ -365,17 +261,6 @@ export declare class PixelMapDrawableDescriptor extends DrawableDescriptor { * @arkts 1.1&1.2 */ constructor(src?: image.PixelMap); - - /** - * Creates a new PixelMapDrawableDescriptor. - * @param { image.PixelMap | ResourceStr } src - Indicates the resource to create PixelMapDrawableDescriptor. - * @param { DrawableDescriptorOptions } options - Indicates the option to create PixelMapDrawableDescriptor. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 18 - */ - constructor(src?: image.PixelMap | ResourceStr, options?: DrawableDescriptorOptions); } /** @@ -411,17 +296,6 @@ export declare interface AnimationOptions { * @arkts 1.1&1.2 */ iterations?: number; - - /** - * If true, it will fetch the data using the uri when object is constructing.The default value is false. - * - * @type { ?boolean } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 18 - */ - fetchWhenConstructingWithUri?: boolean; } /** @@ -447,49 +321,4 @@ export declare class AnimatedDrawableDescriptor extends DrawableDescriptor { * @arkts 1.1&1.2 */ constructor(pixelMaps: Array, options?: AnimationOptions); - - /** - * Creates a new AnimatedDrawableDescriptor. - * @param { Array | ResourceStr } pixelMaps - Indicates the resource to create AnimatedDrawableDescriptor. - * @param { ?AnimationOptions } [options] - Animation control options. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 18 - */ - constructor(pixelMaps: Array | ResourceStr, options?: AnimationOptions); - - /** - * Get the running status of animation. - * - * @returns { boolean } Return the running status of animation. - * @throws { BusinessError } 100001 - Image data is not ready.Maybe you should fetch the data first. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 18 - */ - isRunning(): boolean; - - /** - * Start the animation. - * - * @throws { BusinessError } 100001 - Image data is not ready.Maybe you should fetch the data first. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 18 - */ - start(): void; - - /** - * Stop the animation. - * - * @throws { BusinessError } 100001 - Image data is not ready.Maybe you should fetch the data first. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 18 - */ - stop(): void; } diff --git a/api/@ohos.bluetooth.a2dp.d.ts b/api/@ohos.bluetooth.a2dp.d.ts index 6a64dc35c2c89251d199060ccea9e72c234b9bc7..485030b7cbcc9cdad632e937a06460cfb0240e5b 100644 --- a/api/@ohos.bluetooth.a2dp.d.ts +++ b/api/@ohos.bluetooth.a2dp.d.ts @@ -820,7 +820,21 @@ declare namespace a2dp { * @syscap SystemCapability.Communication.Bluetooth.Core * @since 19 */ - CODEC_BIT_RATE_ABR = 8 + CODEC_BIT_RATE_ABR = 8, + /** + * Codec bit rate 1.5M. + * + * @syscap SystemCapability.Communication.Bluetooth.Core + * @since 21 + */ + CODEC_BIT_RATE_1500000 = 9, + /** + * Codec bit rate 2.3M. + * + * @syscap SystemCapability.Communication.Bluetooth.Core + * @since 21 + */ + CODEC_BIT_RATE_2300000 = 10 } /** * Describes the codec frame length. diff --git a/api/@ohos.bluetooth.socket.d.ts b/api/@ohos.bluetooth.socket.d.ts index c44b7866c50850a33e3ba15ee5640f0d51e31c26..6c8a7e1a40ea1024a43acb2d7cff807c37f384b2 100644 --- a/api/@ohos.bluetooth.socket.d.ts +++ b/api/@ohos.bluetooth.socket.d.ts @@ -48,6 +48,15 @@ declare namespace socket { */ function sppListen(name: string, options: SppOptions, callback: AsyncCallback): void; + /** + * Get l2cap socket psm. + * + * @param { number } serverSocket - Indicates the server socket ID, returned by {@link sppListen}. + * @returns { number } Returns the l2cap socket psm + * @syscap SystemCapability.Communication.Bluetooth.Core + * @since 20 + */ + function getL2capPsm(serverSocket: number): number; /** * Waits for a remote device to connect. * @@ -231,6 +240,14 @@ declare namespace socket { * @since 10 */ type: SppType; + /** + * l2cap protocol service multiplexer + * + * @type { ?number } + * @syscap SystemCapability.Communication.Bluetooth.Core + * @since 20 + */ + psm?: number; } /** @@ -247,7 +264,21 @@ declare namespace socket { * @syscap SystemCapability.Communication.Bluetooth.Core * @since 10 */ - SPP_RFCOMM + SPP_RFCOMM = 0, + /** + * L2CAP of the BR type + * + * @syscap SystemCapability.Communication.Bluetooth.Core + * @since 20 + */ + SPP_L2CAP = 1, + /** + * L2CAP of the BLE type + * + * @syscap SystemCapability.Communication.Bluetooth.Core + * @since 20 + */ + SPP_L2CAP_BLE = 2 } } diff --git a/api/@ohos.calendarManager.d.ts b/api/@ohos.calendarManager.d.ts index 067e0d955fcb9f368c2ce49285ce58cebaadecf0..579a6d245c8fc7b6125967561943474e7c150b1b 100644 --- a/api/@ohos.calendarManager.d.ts +++ b/api/@ohos.calendarManager.d.ts @@ -343,6 +343,14 @@ declare namespace calendarManager { * @syscap SystemCapability.Applications.CalendarData * @since 10 */ + /** + * Delete a single event. + * @param { number } id - Indicates the ID of an event. + * @param {AsyncCallback} callback - The callback of deleteEvent. + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 19 + */ deleteEvent(id: number, callback: AsyncCallback): void; /** @@ -361,6 +369,14 @@ declare namespace calendarManager { * @syscap SystemCapability.Applications.CalendarData * @since 10 */ + /** + * Delete multiple events. + * @param { number[] } ids - Indicates the IDs of multiple events. + * @param {AsyncCallback} callback - The callback of deleteEvents. + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 19 + */ deleteEvents(ids: number[], callback: AsyncCallback): void; /** diff --git a/api/@ohos.commonEventManager.d.ts b/api/@ohos.commonEventManager.d.ts index 4ba551a78f198f9836b034089c6e16fd80d891f6..c381a1b79f003551585d57abdfda85988700bf7f 100644 --- a/api/@ohos.commonEventManager.d.ts +++ b/api/@ohos.commonEventManager.d.ts @@ -2637,6 +2637,16 @@ declare namespace commonEventManager { * @arkts 1.1&1.2 */ COMMON_EVENT_CUSTOM_ROAMING_REGION_UPDATED = 'usual.event.CUSTOM_ROAMING_REGION_UPDATED', + + /** + * This common event means that screen capture. + * This is a protected common event that can only be sent by system. + * @syscap SystemCapability.Notification.CommonEvent + * @systemapi + * @since 20 + * @arkts 1.1&1.2 + */ + COMMON_EVENT_SCREEN_SHARE = 'usual.event.SCREEN_SHARE', } /** diff --git a/api/@ohos.file.cloudSync.d.ts b/api/@ohos.file.cloudSync.d.ts index 59e8548976f40664a777a371b1436eb3782eaf1f..2f85ed87bbcc532006fba5fee3ce5ba7f83af84a 100644 --- a/api/@ohos.file.cloudSync.d.ts +++ b/api/@ohos.file.cloudSync.d.ts @@ -161,6 +161,14 @@ declare namespace cloudSync { * @arkts 1.1&1.2 */ DEVICE_TEMPERATURE_TOO_HIGH = 7, + /** + * Synchronization aborted due to remote server is abnormal. + * + * @syscap SystemCapability.FileManagement.DistributedFileService.CloudSync.Core + * @since 20 + * @arkts 1.1&1.2 + */ + REMOTE_SERVER_ABNORMAL = 8, } diff --git a/api/@ohos.file.photoAccessHelper.d.ts b/api/@ohos.file.photoAccessHelper.d.ts index 2b7ca4583d6458f2d36e501d75a29309e633b70f..9f5f9c66e7fcb3dc5b909f65cb56a4399c60ae47 100644 --- a/api/@ohos.file.photoAccessHelper.d.ts +++ b/api/@ohos.file.photoAccessHelper.d.ts @@ -6637,6 +6637,36 @@ declare namespace photoAccessHelper { * @since 20 */ dateTakenMs: number; + + /** + * asset position. + * + * @type { ?PositionType } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @systemapi + * @since 22 + */ + position?: PositionType; + + /** + * Display name of photo asset. + * + * @type { ?string } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @systemapi + * @since 22 + */ + displayName?: string; + + /** + * Size of photo asset. + * + * @type { ?number } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @systemapi + * @since 22 + */ + size?: number; } /** @@ -6851,6 +6881,24 @@ declare namespace photoAccessHelper { * @since 20 */ hiddenCoverInfo?: PhotoAssetChangeInfo; + + /** + * The order section of album asset. + * @type { ?number } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @systemapi + * @since 22 + */ + orderSection?: number; + + /** + * The album order of album asset. + * @type { ?number } + * @syscap SystemCapability.FileManagement.PhotoAccessHelper.Core + * @systemapi + * @since 22 + */ + albumOrder?: number; } /** diff --git a/api/@ohos.multimedia.audio.d.ts b/api/@ohos.multimedia.audio.d.ts index bd12578b0d250ee1a595c9a380385dbe47c88416..26053b843e42a56efbbe687b9bf8e27df0ed32cb 100644 --- a/api/@ohos.multimedia.audio.d.ts +++ b/api/@ohos.multimedia.audio.d.ts @@ -4838,7 +4838,7 @@ declare namespace audio { * @param { AudioSessionScene } scene - Audio session scene. * @throws { BusinessError } 6800101 - Parameter verification failed. * @throws { BusinessError } 6800103 - Operation not permit at current state. - * @throws { BusinessError } 6800301 - Audio client call audio audio service error, System error. + * @throws { BusinessError } 6800301 - Audio client call audio service error, System error. * @syscap SystemCapability.Multimedia.Audio.Core * @since 20 */ @@ -4852,7 +4852,7 @@ declare namespace audio { * @param { Callback } callback - Callback invoked for the audio session state change event. * @throws { BusinessError } 6800101 - Parameter verification failed. * @throws { BusinessError } 6800102 - Allocate memory failed. - * @throws { BusinessError } 6800301 - Audio client call audio audio service error, System error. + * @throws { BusinessError } 6800301 - Audio client call audio service error, System error. * @syscap SystemCapability.Multimedia.Audio.Core * @since 20 */ @@ -4864,7 +4864,7 @@ declare namespace audio { * Only the audioSessionStateChanged event is supported. * @param { Callback } [callback] - Callback invoked for the audio session state change event. * @throws { BusinessError } 6800101 - Parameter verification failed. - * @throws { BusinessError } 6800301 - Audio client call audio audio service error, System error. + * @throws { BusinessError } 6800301 - Audio client call audio service error, System error. * @syscap SystemCapability.Multimedia.Audio.Core * @since 20 */ @@ -4895,7 +4895,7 @@ declare namespace audio { * @returns { Promise } Promise used to return the result. * @throws { BusinessError } 6800101 - Parameter verification failed. Return by promise. * @throws { BusinessError } 6800102 - Allocate memory failed. Return by promise. - * @throws { BusinessError } 6800301 - Audio client call audio audio service error, System error. + * @throws { BusinessError } 6800301 - Audio client call audio service error, System error. * @syscap SystemCapability.Multimedia.Audio.Device * @since 20 */ @@ -4908,7 +4908,7 @@ declare namespace audio { * @param { Callback } callback - Callback used to listen device change event. * @throws { BusinessError } 6800101 - Parameter verification failed. * @throws { BusinessError } 6800102 - Allocate memory failed. - * @throws { BusinessError } 6800301 - Audio client call audio audio service error, System error. + * @throws { BusinessError } 6800301 - Audio client call audio service error, System error. * @syscap SystemCapability.Multimedia.Audio.Device * @since 20 */ @@ -4919,7 +4919,7 @@ declare namespace audio { * @param { 'currentOutputDeviceChanged' } type - Type of the event to listen for. * @param { Callback } [callback] - Callback used to listen device change event. * @throws { BusinessError } 6800101 - Parameter verification failed. - * @throws { BusinessError } 6800301 - Audio client call audio audio service error, System error. + * @throws { BusinessError } 6800301 - Audio client call audio service error, System error. * @syscap SystemCapability.Multimedia.Audio.Device * @since 20 */ diff --git a/api/@ohos.pasteboard.d.ts b/api/@ohos.pasteboard.d.ts index c5d0d860fd0e1477f49c7494119bc4c40078c961..13f2832d4d427d7f45d3555feaf55590f501d33f 100644 --- a/api/@ohos.pasteboard.d.ts +++ b/api/@ohos.pasteboard.d.ts @@ -638,7 +638,7 @@ declare namespace pasteboard { * @syscap SystemCapability.MiscServices.Pasteboard * @since 7 * @deprecated since 9 - * @useinstead ohos.pasteboard.pasteboard#convertToTextV9 + * @useinstead ohos.pasteboard.pasteboard#toPlainText */ convertToText(callback: AsyncCallback): void; @@ -648,7 +648,7 @@ declare namespace pasteboard { * @syscap SystemCapability.MiscServices.Pasteboard * @since 7 * @deprecated since 9 - * @useinstead ohos.pasteboard.pasteboard#convertToTextV9 + * @useinstead ohos.pasteboard.pasteboard#toPlainText */ convertToText(): Promise; diff --git a/api/@ohos.telephony.esim.d.ts b/api/@ohos.telephony.esim.d.ts index 6e30c906c95da47ab5e581299b43946296984a64..ca86c465a025e810c39ee4f9298047bdaed81c69 100644 --- a/api/@ohos.telephony.esim.d.ts +++ b/api/@ohos.telephony.esim.d.ts @@ -468,6 +468,14 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ + /** + * Establishes a single UICC access rule pursuant to the GlobalPlatform Secure Element Access Control specification. + * + * @interface AccessRule + * @syscap SystemCapability.Telephony.CoreService.Esim + * @since 20 + * arkts 1.1&1.2 + */ export interface AccessRule { /** * Certificate hash hexadecimal string. @@ -477,6 +485,14 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ + /** + * Certificate hash hexadecimal string. + * + * @type { string } + * @syscap SystemCapability.Telephony.CoreService.Esim + * @since 20 + * arkts 1.1&1.2 + */ certificateHashHexStr: string; /** @@ -487,6 +503,14 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ + /** + * The name of package. + * + * @type { string } + * @syscap SystemCapability.Telephony.CoreService.Esim + * @since 20 + * arkts 1.1&1.2 + */ packageName: string; /** @@ -497,6 +521,14 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ + /** + * The type of access. + * + * @type { number } + * @syscap SystemCapability.Telephony.CoreService.Esim + * @since 20 + * arkts 1.1&1.2 + */ accessType: number; } diff --git a/api/@ohos.userIAM.userAuth.d.ts b/api/@ohos.userIAM.userAuth.d.ts index 8e436ec93cd244865e45a538986491eb1930723d..53d88fc11ed906321be5c67ae9aff2ff2a4b131e 100644 --- a/api/@ohos.userIAM.userAuth.d.ts +++ b/api/@ohos.userIAM.userAuth.d.ts @@ -1674,7 +1674,16 @@ declare namespace userAuth { * @atomicservice * @since 20 */ - WIDGET_RELEASED = 6 + WIDGET_RELEASED = 6, + + /** + * Authentication tip for authentication failed which causes authentication frozen. + * + * @syscap SystemCapability.UserIAM.UserAuth.Core + * @atomicservice + * @since 20 + */ + COMPARE_FAILURE_WITH_FROZEN = 7 } /** @@ -1857,16 +1866,13 @@ declare namespace userAuth { *
2. No permission to start authentication from background. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Incorrect parameter types. - * @throws { BusinessError } 12500001 - Authentication failed. * @throws { BusinessError } 12500002 - General operation error. * @throws { BusinessError } 12500003 - Authentication canceled. - * @throws { BusinessError } 12500004 - Authentication timeout. * @throws { BusinessError } 12500005 - The authentication type is not supported. * @throws { BusinessError } 12500006 - The authentication trust level is not supported. - * @throws { BusinessError } 12500007 - Authentication service is busy. * @throws { BusinessError } 12500009 - Authentication is locked out. * @throws { BusinessError } 12500010 - The type of credential has not been enrolled. - * @throws { BusinessError } 12500011 - Switched to the custom authentication process. + * @throws { BusinessError } 12500011 - Switched to the customized authentication process. * @throws { BusinessError } 12500013 - Operation failed because of PIN expired. * @syscap SystemCapability.UserIAM.UserAuth.Core * @atomicservice diff --git a/api/arkui/FrameNode.d.ts b/api/arkui/FrameNode.d.ts index 2f613b50bec975495d3bb8944c9b1b0530ae030d..a5b54323d3e5463868c7bd6544d691a8535a47a0 100644 --- a/api/arkui/FrameNode.d.ts +++ b/api/arkui/FrameNode.d.ts @@ -1269,21 +1269,6 @@ export declare class FrameNode { * @since 20 */ getNodePropertyValue(property: AnimationPropertyType): number[]; - - /** - * Triggers node updates in the current frame. - * - * When node attributes are modified after the current frame's build phase (i.e., after - * the unified processing of dirty nodes), the node updates will be deferred to the next - * frame. This function forces immediate node updates within the current frame to - * ensure rendering effects are applied synchronously. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 21 - */ - invalidateAttributes(): void; } /** diff --git a/build-tools/arkui_transformer/config/arkui_config.json b/build-tools/arkui_transformer/config/arkui_config.json index 890f2d737fd052f0b1f76ff5a6b231b7ea6bc02e..78b303b561cfd6e35af1e0e3ded553002b8eb70f 100644 --- a/build-tools/arkui_transformer/config/arkui_config.json +++ b/build-tools/arkui_transformer/config/arkui_config.json @@ -119,7 +119,6 @@ "WaterFlow", "FlowItem", "ImageSpan", - "LocationButton", "PasteButton", "SaveButton", "UIExtensionComponent", diff --git a/build-tools/dts_parser/kit.json b/build-tools/dts_parser/kit.json index 574dd9748c18de4d4e15f42be1fa61cdc7c1afeb..0baee0c4acd7ce8dba953d4a875574a408145eea 100644 --- a/build-tools/dts_parser/kit.json +++ b/build-tools/dts_parser/kit.json @@ -59,7 +59,6 @@ { "filePath": "@internal/component/ets/list_item.d.ts", "kitName": "ArkUI", "subSystem": "ArkUI开发框架" }, { "filePath": "@internal/component/ets/list_item_group.d.ts", "kitName": "ArkUI", "subSystem": "ArkUI开发框架" }, { "filePath": "@internal/component/ets/loading_progress.d.ts", "kitName": "ArkUI", "subSystem": "ArkUI开发框架" }, - { "filePath": "@internal/component/ets/location_button.d.ts", "kitName": "ArkUI", "subSystem": "ArkUI开发框架" }, { "filePath": "@internal/component/ets/marquee.d.ts", "kitName": "ArkUI", "subSystem": "ArkUI开发框架" }, { "filePath": "@internal/component/ets/matrix2d.d.ts", "kitName": "ArkUI", "subSystem": "ArkUI开发框架" }, { "filePath": "@internal/component/ets/media_cached_image.d.ts", "kitName": "ArkUI", "subSystem": "ArkUI开发框架" }, diff --git a/build-tools/intToNumber.js b/build-tools/intToNumber.js index 92a43c7f00d84e6b899ec179176da281ab2eb6d3..00efb38d76e8cc0c912644ca92f90be0e7277b24 100644 --- a/build-tools/intToNumber.js +++ b/build-tools/intToNumber.js @@ -307,7 +307,6 @@ function applJSDocTransformations(typeExpr, newTypeExpr, tagDataList, isChange) if (finalContent.includes('number') && typeExpr.kind === ts.SyntaxKind.JSDocNullableType && !finalContent.includes('?number') && isChange) { if (typeExpr.type.type && typeExpr.type.type.kind === ts.SyntaxKind.UnionType) { const data = { - isDelete: false, pos: typeExpr.pos, end: typeExpr.end, convertedText: '?' + `(${finalContent})` @@ -315,7 +314,6 @@ function applJSDocTransformations(typeExpr, newTypeExpr, tagDataList, isChange) tagDataList.push(data); } else { const data = { - isDelete: false, pos: typeExpr.pos, end: typeExpr.end, convertedText: '?' + finalContent @@ -324,7 +322,6 @@ function applJSDocTransformations(typeExpr, newTypeExpr, tagDataList, isChange) } } else if (finalContent.includes('number')) { const data = { - isDelete: true, pos: typeExpr.pos, end: typeExpr.end, convertedText: finalContent @@ -344,10 +341,10 @@ function changeContent(tagDataList) { for (const data of tagDataList) { const before = jsDocContent.substring(0, data.pos); const after = jsDocContent.substring(data.end); - if (data.isDelete) { - jsDocContent = before + `${data.convertedText}` + after; - } else { + if (jsDocContent.substring(data.pos, data.pos + 1) === ' ') { jsDocContent = before + ` ${data.convertedText}` + after; + } else { + jsDocContent = before + `${data.convertedText}` + after; } } } diff --git a/kits/@kit.ArkWeb.d.ts b/kits/@kit.ArkWeb.d.ts index 9ebc9732d760a5da771a006ed2049164035ffb6b..219e3b278d29c378065683fa34c7e1abca58d115 100644 --- a/kits/@kit.ArkWeb.d.ts +++ b/kits/@kit.ArkWeb.d.ts @@ -18,7 +18,11 @@ * @kit ArkWeb */ -import webview from '@ohos.web.webview'; import { WebNetErrorList } from '@ohos.web.netErrorList'; +export { WebNetErrorList }; + +/*** if arkts 1.1&1.2 */ +import webview from '@ohos.web.webview'; -export { webview, WebNetErrorList }; +export { webview }; +/*** endif */