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/@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.bluetooth.connection.d.ts b/api/@ohos.bluetooth.connection.d.ts index 7d1416b3b6e59468cebb8d16b44ccb3b256fd2fc..4cd7019ad771958997ac46795bb2e7da73170ba3 100644 --- a/api/@ohos.bluetooth.connection.d.ts +++ b/api/@ohos.bluetooth.connection.d.ts @@ -552,7 +552,6 @@ declare namespace connection { * @throws { BusinessError } 2900099 - Get transport failed. * @syscap SystemCapability.Communication.Bluetooth.Core * @since 20 - * @arkts 1.1&1.2 */ function getRemoteDeviceTransport(deviceId: string): BluetoothTransport; @@ -1812,7 +1811,6 @@ declare namespace connection { * * @syscap SystemCapability.Communication.Bluetooth.Core * @since 20 - * @arkts 1.1&1.2 */ TRANSPORT_DUAL = 2, /** @@ -1820,7 +1818,6 @@ declare namespace connection { * * @syscap SystemCapability.Communication.Bluetooth.Core * @since 20 - * @arkts 1.1&1.2 */ TRANSPORT_UNKNOWN = 3 } 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/application/ApplicationContext.d.ts b/api/application/ApplicationContext.d.ts index 988d517a9e298aaa676b7106c0a3ec862bc7bfd9..e4777379ad5c0ff3384a9735a5fbb707486294f6 100644 --- a/api/application/ApplicationContext.d.ts +++ b/api/application/ApplicationContext.d.ts @@ -599,23 +599,6 @@ declare class ApplicationContext extends Context { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - /** - * Sets the language for the application. - * - *

**NOTE**: - *
It can be called only by the main thread. - *

- * - * @param { string } language - Target language. The list of supported languages can be obtained by - * calling getSystemLanguages(). - * @throws { BusinessError } 16000011 - The context does not exist. - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @stagemodelonly - * @crossplatform - * @atomicservice - * @since 21 - * @arkts 1.1&1.2 - */ setLanguage(language: string): void; /** @@ -757,22 +740,6 @@ declare class ApplicationContext extends Context { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - /** - * Sets the font for this application. - * - *

**NOTE**: - *
This API can be called only by the main thread. - *

- * - * @param { string } font - Font, which can be registered by calling UIContext.registerFont. - * @throws { BusinessError } 16000011 - The context does not exist. - * @throws { BusinessError } 16000050 - Internal error. - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @stagemodelonly - * @crossplatform - * @since 21 - * @arkts 1.1&1.2 - */ setFont(font: string): void; /** @@ -805,23 +772,6 @@ declare class ApplicationContext extends Context { * @since arkts {'1.1':'13', '1.2':'20'} * @arkts 1.1&1.2 */ - /** - * Sets the scale ratio for the font size of this application. - * - *

**NOTE**: - *
It can be called only by the main thread. - *

- * - * @param {number} fontSizeScale - Font scale ratio. The value is a non-negative number. When the application's - * {@link fontSizeScale} is set to followSystem and the value set here exceeds the value of - * fontSizeMaxScale, the value of fontSizeMaxScale takes effect. - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @stagemodelonly - * @crossplatform - * @atomicservice - * @since 21 - * @arkts 1.1&1.2 - */ setFontSizeScale(fontSizeScale: number): void; /** diff --git a/api/application/UIAbilityContext.d.ts b/api/application/UIAbilityContext.d.ts index d8b9b4fa64dde69958a1cd5249c6be4f0cb269a1..f1ec7e7b6819e03993ca88ecf5f0c8ba34d62fcb 100644 --- a/api/application/UIAbilityContext.d.ts +++ b/api/application/UIAbilityContext.d.ts @@ -172,18 +172,6 @@ declare class UIAbilityContext extends Context { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - /** - * Indicates windowStage information. - * Exists from onWindowStageCreate lifecycle, does not exist from onWindowStageDestroy lifecycle. - * - * @type { window.WindowStage } - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @stagemodelonly - * @crossplatform - * @atomicservice - * @since 21 - * @arkts 1.1&1.2 - */ windowStage: window.WindowStage; /** 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; } /**