From 744f204f804c1f6b148a940424b833cd692eb732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B8=E6=BB=A1=E6=B8=9D?= Date: Thu, 12 Jun 2025 22:18:02 +0800 Subject: [PATCH 01/12] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E9=97=AA=E6=8E=A7=E7=90=83=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=20Signed-off-by:=20EmiyaSakura=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.FloatingBall.ts | 282 ++++++++++++++++++++++++++++++++++++++ kits/@kit.ArkUI.d.ts | 3 +- 2 files changed, 284 insertions(+), 1 deletion(-) create mode 100644 api/@ohos.FloatingBall.ts diff --git a/api/@ohos.FloatingBall.ts b/api/@ohos.FloatingBall.ts new file mode 100644 index 0000000000..f154f06eb6 --- /dev/null +++ b/api/@ohos.FloatingBall.ts @@ -0,0 +1,282 @@ +/* + * Copyright (c) 2025 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 + */ + +import type BaseContext from './application/BaseContext'; +import type image from './@ohos.multimedia.image'; +import type Want from './@ohos.app.ability.Want'; + +/** + * Floating-ball + * + * @namespace FloatingBall + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ +declare namespace FloatingBall { + /** + * If floating-ball enabled in current OS. + * + * @returns { boolean } true if floating-ball enabled, otherwise false. + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + function isFloatingBallEnabled(): boolean; + + /** + * Create floating-ball controller + * + * @param { FloatingBallConfiguration } config - Params for floating-ball controller creation. + * The config must be valid, the context in config should not be null. + * @returns { Promise } - The promise returned by the function. + * @throws { BusinessError } 201 - Permission verification failed, usually returned by VerifyAccessToken. + * @throws { BusinessError } 401 - Params error. Possible causes: 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed + * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + function create(config: FloatingBallConfiguration): Promise; + + /** + * FloatingBallConfiguration + * + * @interface FloatingBallConfiguration + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + interface FloatingBallConfiguration { + /** + * Indicates window context. + * + * @type { BaseContext } + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + context: BaseContext; + } + + /** + * FloatingBallController + * + * @interface FloatingBallController + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + interface FloatingBallController { + /** + * Start floating-ball + * @param { FloatingBallOption } option - Params for floating-ball start. The config must be valid, + * @returns { Promise } - The promise returned by the function. + * @throws { BusinessError } 201 - Permission verification failed, usually returned by VerifyAccessToken. + * @throws { BusinessError } 401 - Params error. Possible causes: 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed + * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @throws { BusinessError } 1300019 - Failed to create the floating-Ball window. + * @throws { BusinessError } 1300020 - Cannot start multiple floating-Ball window. + * @throws { BusinessError } 1300021 - Repeated floating-Ball operation. + * @throws { BusinessError } 1300022 - Floating-ball internal error. + * @throws { BusinessError } 1300023 - The floating-ball window state is abnormal. + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + startFloatingBall(option: FloatingBallOption): Promise; + + /** + * Update floating-ball + * @param { FloatingBallOption } option - Params for floating-ball update. The config must be valid, + * @returns { Promise } - The promise returned by the function. + * @throws { BusinessError } 201 - Permission verification failed, usually returned by VerifyAccessToken. + * @throws { BusinessError } 401 - Params error. Possible causes: 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed + * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @throws { BusinessError } 1300022 - Floating-ball internal error. + * @throws { BusinessError } 1300023 - The floating-ball window state is abnormal. + * @throws { BusinessError } 1300024 - The floating-ball state is invalid. + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + updateFloatingBall(option: FloatingBallOption): Promise; + + /** + * Stop floating-ball. + * @returns { Promise } - The promise returned by the function. + * @throws { BusinessError } 201 - Permission verification failed, usually returned by VerifyAccessToken. + * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @throws { BusinessError } 1300020 - Cannot start multiple floating-Ball window. + * @throws { BusinessError } 1300022 - Floating-ball internal error. + * @throws { BusinessError } 1300023 - The floating-ball window state is abnormal. + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + stopFloatingBall(): Promise; + + /** + * Register floating-ball lifecycle event listener. + * @param { 'stateChange' } type - Registration type, floating-ball lifecycle state change, 'stateChange'. + * @param { function } callback - Used to handle {'stateChange'} command. + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + on(type: 'stateChange', callback: (state: FloatingBallState) => void): void; + + /** + * Unregister floating-ball lifecycle event listener. + * @param { 'stateChange' } type - Used to unregister listener for {'stateChange'} command. + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + off(type: 'stateChange'): void; + + /** + * Register floating-ball click event listener. + * @param { 'clickEvent' } type - Registration type, user click event, 'clickEvent'. + * @param { function } callback - Used to handle {'clickEvent'} command. + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + on(type: 'clickEvent', callback: () => void): void; + + /** + * Unregister floating-ball click event listener. + * @param { 'clickEvent' } type - Used to unregister listener for {'clickEvent'} command. + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + off(type: 'clickEvent'): void; + + /** + * Get the info of floating-ball window. + * @returns { Promise } - The promise used to return the floating-ball window info. + * @throws { BusinessError } 201 - Permission verification failed, usually returned by VerifyAccessToken. + * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @throws { BusinessError } 1300022 - Floating-ball internal error. + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + getFloatingBallWindowInfo(): Promise; + + /** + * Restore Ability for floating-ball creatorBundle. + * + * @param { Want } want - Params for floating-ball restoration. The config must be valid, + * @returns { Promise } - The promise returned by the function. + * @throws { BusinessError } 201 - Permission verification failed, usually returned by VerifyAccessToken. + * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @throws { BusinessError } 1300022 - Floating-ball internal error. + * @syscap SystemCapability.Window.SessionManager + * @since 20 + * @test + */ + restoreAbility(want: Want): Promise; + } + + /** + * The option of floating-ball + * + * @interface FloatingBallOption + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + interface FloatingBallOption { + /** + * The template of floating-ball. + * + * @type { ?number } + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + template?: number; + + /** + * The title of floating-ball. + * + * @type { ?string } + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + title?: string; + + /** + * The titleContent of floating-ball. + * + * @type { ?string } + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + titleContent?: string; + + /** + * The icon of floating-ball. + * + * @type { ?image.PixelMap } + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + icon?: image.PixelMap; + } + + /** + * Enum for FloatingBall window callback event type. + * + * @enum { number } + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + enum FloatingBallState { + /** + * FloatingBall window started. + * + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + STARTED = 1, + + /** + * FloatingBall window stopped. + * + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + STOPPED = 2, + } + + /** + * The info of floating-ball window. + * + * @interface FloatingBallWindowInfo + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + interface FloatingBallWindowInfo { + /** + * Indicates target window id. + * + * @type { number } + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + windowId: number; + } +} + +export default FloatingBall; diff --git a/kits/@kit.ArkUI.d.ts b/kits/@kit.ArkUI.d.ts index 2b8d6720b5..82578b676a 100644 --- a/kits/@kit.ArkUI.d.ts +++ b/kits/@kit.ArkUI.d.ts @@ -126,6 +126,7 @@ import matrix4 from '@ohos.matrix4'; import MeasureText, { MeasureOptions } from '@ohos.measure'; import mediaquery from '@ohos.mediaquery'; import PiPWindow from '@ohos.PiPWindow'; +import FloatingBall from '@ohos.FloatingBall'; import pluginComponentManager, { PluginComponentTemplate } from '@ohos.pluginComponent'; import prompt from '@ohos.prompt'; import promptAction, { LevelMode, ImmersiveMode, LevelOrder } from '@ohos.promptAction'; @@ -247,7 +248,7 @@ export { InterstitialDialogAction, IconStyle, TitlePosition, BottomOffset, LabelOptions, LayeredDrawableDescriptor, LoadingDialog, LocaleResponse, MarginType, Matrix4, MeasureOptions, MeasureText, MediaQuery, MediaQueryEvent, MediaQueryList, NodeController, NodeParam, NodeRenderType, Offset, OperateButton, OperateCheck, OperateIcon, - OperateItem, OperationOption, OperationType, OverlayManager, PathShape, PiPWindow, Pivot, Popup, PopupButtonOptions, PopupIconOptions, PopupOptions, + OperateItem, OperationOption, OperationType, OverlayManager, PathShape, PiPWindow, FloatingBall, Pivot, Popup, PopupButtonOptions, PopupIconOptions, PopupOptions, PopupTextOptions, Position, PrefixIconOptions, ProgressButton, ProgressButtonV2, ProgressButtonV2Color, ProgressButtonV2ColorOptions, Prompt, PromptAction, PromptOptions, RectShape, RenderNode, RenderOptions, BuildOptions, RequestFullWindowOptions, Rotation, Router, RouterOptions, RouterState, Scale, ScreenOnVisibleOptions, SegmentButton, SegmentButtonItemOptionsArray, SegmentButtonOptions, SelectDialog, SelectOptions, SelectTitleBar, SelectTitleBarMenuItem, SelectionMenu, -- Gitee From 09d8def2cf5f060f2add3c1ccc0525b3f3dc7114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B8=E6=BB=A1=E6=B8=9D?= Date: Fri, 13 Jun 2025 09:35:32 +0800 Subject: [PATCH 02/12] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E9=97=AA=E6=8E=A7=E7=90=83=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=20Signed-off-by:=20EmiyaSakura=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.FloatingBall.ts | 49 +++++++++++++++++++++------------------ kits/@kit.ArkUI.d.ts | 4 ++-- 2 files changed, 28 insertions(+), 25 deletions(-) diff --git a/api/@ohos.FloatingBall.ts b/api/@ohos.FloatingBall.ts index f154f06eb6..30418a9674 100644 --- a/api/@ohos.FloatingBall.ts +++ b/api/@ohos.FloatingBall.ts @@ -21,15 +21,16 @@ import type BaseContext from './application/BaseContext'; import type image from './@ohos.multimedia.image'; import type Want from './@ohos.app.ability.Want'; +import type { Callback } from './@ohos.base'; /** * Floating-ball * - * @namespace FloatingBall + * @namespace floatingBall * @syscap SystemCapability.Window.SessionManager * @since 20 */ -declare namespace FloatingBall { +declare namespace floatingBall { /** * If floating-ball enabled in current OS. * @@ -42,6 +43,7 @@ declare namespace FloatingBall { /** * Create floating-ball controller * + * @permission ohos.permission.USE_FLOAT_BALL * @param { FloatingBallConfiguration } config - Params for floating-ball controller creation. * The config must be valid, the context in config should not be null. * @returns { Promise } - The promise returned by the function. @@ -83,13 +85,12 @@ declare namespace FloatingBall { interface FloatingBallController { /** * Start floating-ball - * @param { FloatingBallOption } option - Params for floating-ball start. The config must be valid, + * + * @param { FloatingBallOptions } option - Params for floating-ball start. The config must be valid, * @returns { Promise } - The promise returned by the function. - * @throws { BusinessError } 201 - Permission verification failed, usually returned by VerifyAccessToken. * @throws { BusinessError } 401 - Params error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * 3. Parameter verification failed - * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. * @throws { BusinessError } 1300019 - Failed to create the floating-Ball window. * @throws { BusinessError } 1300020 - Cannot start multiple floating-Ball window. * @throws { BusinessError } 1300021 - Repeated floating-Ball operation. @@ -98,30 +99,28 @@ declare namespace FloatingBall { * @syscap SystemCapability.Window.SessionManager * @since 20 */ - startFloatingBall(option: FloatingBallOption): Promise; + startFloatingBall(option: FloatingBallOptions): Promise; /** * Update floating-ball - * @param { FloatingBallOption } option - Params for floating-ball update. The config must be valid, + * + * @param { FloatingBallOptions } option - Params for floating-ball update. The config must be valid, * @returns { Promise } - The promise returned by the function. - * @throws { BusinessError } 201 - Permission verification failed, usually returned by VerifyAccessToken. * @throws { BusinessError } 401 - Params error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * 3. Parameter verification failed - * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. * @throws { BusinessError } 1300022 - Floating-ball internal error. * @throws { BusinessError } 1300023 - The floating-ball window state is abnormal. * @throws { BusinessError } 1300024 - The floating-ball state is invalid. * @syscap SystemCapability.Window.SessionManager * @since 20 */ - updateFloatingBall(option: FloatingBallOption): Promise; + updateFloatingBall(option: FloatingBallOptions): Promise; /** * Stop floating-ball. + * * @returns { Promise } - The promise returned by the function. - * @throws { BusinessError } 201 - Permission verification failed, usually returned by VerifyAccessToken. - * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. * @throws { BusinessError } 1300020 - Cannot start multiple floating-Ball window. * @throws { BusinessError } 1300022 - Floating-ball internal error. * @throws { BusinessError } 1300023 - The floating-ball window state is abnormal. @@ -132,15 +131,17 @@ declare namespace FloatingBall { /** * Register floating-ball lifecycle event listener. + * * @param { 'stateChange' } type - Registration type, floating-ball lifecycle state change, 'stateChange'. - * @param { function } callback - Used to handle {'stateChange'} command. + * @param { Callback } callback - Used to handle {'stateChange'} command. * @syscap SystemCapability.Window.SessionManager * @since 20 */ - on(type: 'stateChange', callback: (state: FloatingBallState) => void): void; + on(type: 'stateChange', callback: Callback): void; /** * Unregister floating-ball lifecycle event listener. + * * @param { 'stateChange' } type - Used to unregister listener for {'stateChange'} command. * @syscap SystemCapability.Window.SessionManager * @since 20 @@ -149,15 +150,17 @@ declare namespace FloatingBall { /** * Register floating-ball click event listener. + * * @param { 'clickEvent' } type - Registration type, user click event, 'clickEvent'. - * @param { function } callback - Used to handle {'clickEvent'} command. + * @param { Callback } callback - Used to handle {'clickEvent'} command. * @syscap SystemCapability.Window.SessionManager * @since 20 */ - on(type: 'clickEvent', callback: () => void): void; + on(type: 'clickEvent', callback: Callback): void; /** * Unregister floating-ball click event listener. + * * @param { 'clickEvent' } type - Used to unregister listener for {'clickEvent'} command. * @syscap SystemCapability.Window.SessionManager * @since 20 @@ -166,9 +169,8 @@ declare namespace FloatingBall { /** * Get the info of floating-ball window. + * * @returns { Promise } - The promise used to return the floating-ball window info. - * @throws { BusinessError } 201 - Permission verification failed, usually returned by VerifyAccessToken. - * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. * @throws { BusinessError } 1300022 - Floating-ball internal error. * @syscap SystemCapability.Window.SessionManager * @since 20 @@ -180,9 +182,10 @@ declare namespace FloatingBall { * * @param { Want } want - Params for floating-ball restoration. The config must be valid, * @returns { Promise } - The promise returned by the function. - * @throws { BusinessError } 201 - Permission verification failed, usually returned by VerifyAccessToken. - * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @throws { BusinessError } 1300020 - Cannot start multiple floating-Ball window. * @throws { BusinessError } 1300022 - Floating-ball internal error. + * @throws { BusinessError } 1300024 - The floating-ball state is invalid. + * @throws { BusinessError } 1300025 - Failed to restore the ability. * @syscap SystemCapability.Window.SessionManager * @since 20 * @test @@ -193,11 +196,11 @@ declare namespace FloatingBall { /** * The option of floating-ball * - * @interface FloatingBallOption + * @interface FloatingBallOptions * @syscap SystemCapability.Window.SessionManager * @since 20 */ - interface FloatingBallOption { + interface FloatingBallOptions { /** * The template of floating-ball. * @@ -279,4 +282,4 @@ declare namespace FloatingBall { } } -export default FloatingBall; +export default floatingBall; diff --git a/kits/@kit.ArkUI.d.ts b/kits/@kit.ArkUI.d.ts index 82578b676a..6020791908 100644 --- a/kits/@kit.ArkUI.d.ts +++ b/kits/@kit.ArkUI.d.ts @@ -126,7 +126,7 @@ import matrix4 from '@ohos.matrix4'; import MeasureText, { MeasureOptions } from '@ohos.measure'; import mediaquery from '@ohos.mediaquery'; import PiPWindow from '@ohos.PiPWindow'; -import FloatingBall from '@ohos.FloatingBall'; +import floatingBall from '@ohos.floatingBall'; import pluginComponentManager, { PluginComponentTemplate } from '@ohos.pluginComponent'; import prompt from '@ohos.prompt'; import promptAction, { LevelMode, ImmersiveMode, LevelOrder } from '@ohos.promptAction'; @@ -248,7 +248,7 @@ export { InterstitialDialogAction, IconStyle, TitlePosition, BottomOffset, LabelOptions, LayeredDrawableDescriptor, LoadingDialog, LocaleResponse, MarginType, Matrix4, MeasureOptions, MeasureText, MediaQuery, MediaQueryEvent, MediaQueryList, NodeController, NodeParam, NodeRenderType, Offset, OperateButton, OperateCheck, OperateIcon, - OperateItem, OperationOption, OperationType, OverlayManager, PathShape, PiPWindow, FloatingBall, Pivot, Popup, PopupButtonOptions, PopupIconOptions, PopupOptions, + OperateItem, OperationOption, OperationType, OverlayManager, PathShape, PiPWindow, floatingBall, Pivot, Popup, PopupButtonOptions, PopupIconOptions, PopupOptions, PopupTextOptions, Position, PrefixIconOptions, ProgressButton, ProgressButtonV2, ProgressButtonV2Color, ProgressButtonV2ColorOptions, Prompt, PromptAction, PromptOptions, RectShape, RenderNode, RenderOptions, BuildOptions, RequestFullWindowOptions, Rotation, Router, RouterOptions, RouterState, Scale, ScreenOnVisibleOptions, SegmentButton, SegmentButtonItemOptionsArray, SegmentButtonOptions, SelectDialog, SelectOptions, SelectTitleBar, SelectTitleBarMenuItem, SelectionMenu, -- Gitee From 8f954fc1e297a6d8e7eaee0d05288e4f71d5d0e2 Mon Sep 17 00:00:00 2001 From: EmiyaSakura Date: Fri, 13 Jun 2025 01:39:00 +0000 Subject: [PATCH 03/12] rename api/@ohos.FloatingBall.ts to api/@ohos.floatingBall.ts. Signed-off-by: EmiyaSakura --- api/{@ohos.FloatingBall.ts => @ohos.floatingBall.ts} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename api/{@ohos.FloatingBall.ts => @ohos.floatingBall.ts} (100%) diff --git a/api/@ohos.FloatingBall.ts b/api/@ohos.floatingBall.ts similarity index 100% rename from api/@ohos.FloatingBall.ts rename to api/@ohos.floatingBall.ts -- Gitee From 6efac92ee05663d01c71318e50fb6d9f4c7a38a3 Mon Sep 17 00:00:00 2001 From: EmiyaSakura Date: Fri, 13 Jun 2025 01:44:17 +0000 Subject: [PATCH 04/12] rename api/@ohos.floatingBall.ts to api/@ohos.floatingBall.d.ts. Signed-off-by: EmiyaSakura --- api/{@ohos.floatingBall.ts => @ohos.floatingBall.d.ts} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename api/{@ohos.floatingBall.ts => @ohos.floatingBall.d.ts} (100%) diff --git a/api/@ohos.floatingBall.ts b/api/@ohos.floatingBall.d.ts similarity index 100% rename from api/@ohos.floatingBall.ts rename to api/@ohos.floatingBall.d.ts -- Gitee From 704d17640da28f587922910f3e5012af22340fab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B8=E6=BB=A1=E6=B8=9D?= Date: Fri, 13 Jun 2025 09:54:48 +0800 Subject: [PATCH 05/12] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E9=97=AA=E6=8E=A7=E7=90=83=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=20Signed-off-by:=20EmiyaSakura=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.floatingBall.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/api/@ohos.floatingBall.d.ts b/api/@ohos.floatingBall.d.ts index 30418a9674..e91489b56d 100644 --- a/api/@ohos.floatingBall.d.ts +++ b/api/@ohos.floatingBall.d.ts @@ -188,7 +188,6 @@ declare namespace floatingBall { * @throws { BusinessError } 1300025 - Failed to restore the ability. * @syscap SystemCapability.Window.SessionManager * @since 20 - * @test */ restoreAbility(want: Want): Promise; } -- Gitee From 58f547f96c742eadc00ddde1023cfb16029ee7e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B8=E6=BB=A1=E6=B8=9D?= Date: Fri, 13 Jun 2025 16:05:44 +0800 Subject: [PATCH 06/12] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E9=97=AA=E6=8E=A7=E7=90=83=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=20Signed-off-by:=20EmiyaSakura=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.floatingBall.d.ts | 82 ++++++++++++++++++++++++++----------- 1 file changed, 58 insertions(+), 24 deletions(-) diff --git a/api/@ohos.floatingBall.d.ts b/api/@ohos.floatingBall.d.ts index e91489b56d..be8a331483 100644 --- a/api/@ohos.floatingBall.d.ts +++ b/api/@ohos.floatingBall.d.ts @@ -43,14 +43,9 @@ declare namespace floatingBall { /** * Create floating-ball controller * - * @permission ohos.permission.USE_FLOAT_BALL * @param { FloatingBallConfiguration } config - Params for floating-ball controller creation. * The config must be valid, the context in config should not be null. * @returns { Promise } - The promise returned by the function. - * @throws { BusinessError } 201 - Permission verification failed, usually returned by VerifyAccessToken. - * @throws { BusinessError } 401 - Params error. Possible causes: 1. Mandatory parameters are left unspecified. - * 2. Incorrect parameter types. - * 3. Parameter verification failed * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. * @syscap SystemCapability.Window.SessionManager * @since 20 @@ -86,11 +81,10 @@ declare namespace floatingBall { /** * Start floating-ball * - * @param { FloatingBallOptions } option - Params for floating-ball start. The config must be valid, + * @permission ohos.permission.USE_FLOAT_BALL + * @param { FloatingBallParams } params - Params for floating-ball start. The config must be valid, * @returns { Promise } - The promise returned by the function. - * @throws { BusinessError } 401 - Params error. Possible causes: 1. Mandatory parameters are left unspecified. - * 2. Incorrect parameter types. - * 3. Parameter verification failed + * @throws { BusinessError } 201 - Permission verification failed, usually returned by VerifyAccessToken. * @throws { BusinessError } 1300019 - Failed to create the floating-Ball window. * @throws { BusinessError } 1300020 - Cannot start multiple floating-Ball window. * @throws { BusinessError } 1300021 - Repeated floating-Ball operation. @@ -99,23 +93,20 @@ declare namespace floatingBall { * @syscap SystemCapability.Window.SessionManager * @since 20 */ - startFloatingBall(option: FloatingBallOptions): Promise; + startFloatingBall(params: FloatingBallParams): Promise; /** * Update floating-ball * - * @param { FloatingBallOptions } option - Params for floating-ball update. The config must be valid, + * @param { FloatingBallParams } params - Params for floating-ball update. The config must be valid, * @returns { Promise } - The promise returned by the function. - * @throws { BusinessError } 401 - Params error. Possible causes: 1. Mandatory parameters are left unspecified. - * 2. Incorrect parameter types. - * 3. Parameter verification failed * @throws { BusinessError } 1300022 - Floating-ball internal error. * @throws { BusinessError } 1300023 - The floating-ball window state is abnormal. * @throws { BusinessError } 1300024 - The floating-ball state is invalid. * @syscap SystemCapability.Window.SessionManager * @since 20 */ - updateFloatingBall(option: FloatingBallOptions): Promise; + updateFloatingBall(params: FloatingBallParams): Promise; /** * Stop floating-ball. @@ -143,10 +134,11 @@ declare namespace floatingBall { * Unregister floating-ball lifecycle event listener. * * @param { 'stateChange' } type - Used to unregister listener for {'stateChange'} command. + * @param { Callback } callback - Indicates the callback function. * @syscap SystemCapability.Window.SessionManager * @since 20 */ - off(type: 'stateChange'): void; + off(type: 'stateChange', callback?: Callback): void; /** * Register floating-ball click event listener. @@ -162,10 +154,11 @@ declare namespace floatingBall { * Unregister floating-ball click event listener. * * @param { 'clickEvent' } type - Used to unregister listener for {'clickEvent'} command. + * @param { Callback } callback - Indicates the callback function. * @syscap SystemCapability.Window.SessionManager * @since 20 */ - off(type: 'clickEvent'): void; + off(type: 'clickEvent', callback?: Callback): void; /** * Get the info of floating-ball window. @@ -195,19 +188,19 @@ declare namespace floatingBall { /** * The option of floating-ball * - * @interface FloatingBallOptions + * @interface FloatingBallParams * @syscap SystemCapability.Window.SessionManager * @since 20 */ - interface FloatingBallOptions { + interface FloatingBallParams { /** * The template of floating-ball. * - * @type { ?number } + * @type { ?FloatingBallTemplate } * @syscap SystemCapability.Window.SessionManager * @since 20 */ - template?: number; + template?: FloatingBallTemplate; /** * The title of floating-ball. @@ -219,13 +212,13 @@ declare namespace floatingBall { title?: string; /** - * The titleContent of floating-ball. + * The content of floating-ball. * * @type { ?string } * @syscap SystemCapability.Window.SessionManager * @since 20 */ - titleContent?: string; + content?: string; /** * The icon of floating-ball. @@ -238,7 +231,7 @@ declare namespace floatingBall { } /** - * Enum for FloatingBall window callback event type. + * Enum for FloatingBall state type. * * @enum { number } * @syscap SystemCapability.Window.SessionManager @@ -262,6 +255,47 @@ declare namespace floatingBall { STOPPED = 2, } + /** + * Enum for FloatingBall template type. + * + * @enum { number } + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + enum FloatingBallTemplate { + /** + * Static layout, support icon and title. + * + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + STATIC = 1, + + /** + * Normal layout, support title and content with different color. + * + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + NORMAL = 2, + + /** + * Emphatic layout, support title and content with different size. + * + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + EMPHATIC = 3, + + /** + * Simple layout, support title with 2-lines display. + * + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + SIMPLE = 4, + } + /** * The info of floating-ball window. * -- Gitee From 6b8e697387a2b14dae785b754c06cf8ec731bdcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B8=E6=BB=A1=E6=B8=9D?= Date: Sat, 14 Jun 2025 18:11:52 +0800 Subject: [PATCH 07/12] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E9=97=AA=E6=8E=A7=E7=90=83=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=20Signed-off-by:=20EmiyaSakura=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.floatingBall.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api/@ohos.floatingBall.d.ts b/api/@ohos.floatingBall.d.ts index be8a331483..bd490fd169 100644 --- a/api/@ohos.floatingBall.d.ts +++ b/api/@ohos.floatingBall.d.ts @@ -82,7 +82,7 @@ declare namespace floatingBall { * Start floating-ball * * @permission ohos.permission.USE_FLOAT_BALL - * @param { FloatingBallParams } params - Params for floating-ball start. The config must be valid, + * @param { FloatingBallParams } params - Params for floating-ball start. * @returns { Promise } - The promise returned by the function. * @throws { BusinessError } 201 - Permission verification failed, usually returned by VerifyAccessToken. * @throws { BusinessError } 1300019 - Failed to create the floating-Ball window. @@ -98,7 +98,7 @@ declare namespace floatingBall { /** * Update floating-ball * - * @param { FloatingBallParams } params - Params for floating-ball update. The config must be valid, + * @param { FloatingBallParams } params - Params for floating-ball update. * @returns { Promise } - The promise returned by the function. * @throws { BusinessError } 1300022 - Floating-ball internal error. * @throws { BusinessError } 1300023 - The floating-ball window state is abnormal. @@ -134,7 +134,7 @@ declare namespace floatingBall { * Unregister floating-ball lifecycle event listener. * * @param { 'stateChange' } type - Used to unregister listener for {'stateChange'} command. - * @param { Callback } callback - Indicates the callback function. + * @param { Callback } [callback] - Indicates the callback function. * @syscap SystemCapability.Window.SessionManager * @since 20 */ @@ -154,7 +154,7 @@ declare namespace floatingBall { * Unregister floating-ball click event listener. * * @param { 'clickEvent' } type - Used to unregister listener for {'clickEvent'} command. - * @param { Callback } callback - Indicates the callback function. + * @param { Callback } [callback] - Indicates the callback function. * @syscap SystemCapability.Window.SessionManager * @since 20 */ @@ -171,18 +171,18 @@ declare namespace floatingBall { getFloatingBallWindowInfo(): Promise; /** - * Restore Ability for floating-ball creatorBundle. + * Restore main window for floating-ball creatorBundle. * - * @param { Want } want - Params for floating-ball restoration. The config must be valid, + * @param { Want } want - Params for floating-ball restoration. * @returns { Promise } - The promise returned by the function. * @throws { BusinessError } 1300020 - Cannot start multiple floating-Ball window. * @throws { BusinessError } 1300022 - Floating-ball internal error. * @throws { BusinessError } 1300024 - The floating-ball state is invalid. - * @throws { BusinessError } 1300025 - Failed to restore the ability. + * @throws { BusinessError } 1300025 - Failed to restore the main window. * @syscap SystemCapability.Window.SessionManager * @since 20 */ - restoreAbility(want: Want): Promise; + restoreMainWindow(want: Want): Promise; } /** -- Gitee From e5231f709405ddc99e2f4cea4c418a9473b7b373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B8=E6=BB=A1=E6=B8=9D?= Date: Thu, 19 Jun 2025 20:40:10 +0800 Subject: [PATCH 08/12] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E9=97=AA=E6=8E=A7=E7=90=83=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=20Signed-off-by:=20EmiyaSakura=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.floatingBall.d.ts | 52 +++++++++++++++++++++++-------------- 1 file changed, 32 insertions(+), 20 deletions(-) diff --git a/api/@ohos.floatingBall.d.ts b/api/@ohos.floatingBall.d.ts index bd490fd169..6f137a0e6e 100644 --- a/api/@ohos.floatingBall.d.ts +++ b/api/@ohos.floatingBall.d.ts @@ -47,6 +47,7 @@ declare namespace floatingBall { * The config must be valid, the context in config should not be null. * @returns { Promise } - The promise returned by the function. * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. + * @throws { BusinessError } 1300019 - Wrong parameters for operating the floating-ball. * @syscap SystemCapability.Window.SessionManager * @since 20 */ @@ -85,11 +86,12 @@ declare namespace floatingBall { * @param { FloatingBallParams } params - Params for floating-ball start. * @returns { Promise } - The promise returned by the function. * @throws { BusinessError } 201 - Permission verification failed, usually returned by VerifyAccessToken. - * @throws { BusinessError } 1300019 - Failed to create the floating-Ball window. - * @throws { BusinessError } 1300020 - Cannot start multiple floating-Ball window. - * @throws { BusinessError } 1300021 - Repeated floating-Ball operation. - * @throws { BusinessError } 1300022 - Floating-ball internal error. - * @throws { BusinessError } 1300023 - The floating-ball window state is abnormal. + * @throws { BusinessError } 1300019 - Wrong parameters for operating the floating-ball. + * @throws { BusinessError } 1300020 - Failed to create the floating-Ball window. + * @throws { BusinessError } 1300021 - Cannot start multiple floating-Ball window. + * @throws { BusinessError } 1300022 - Repeated floating-Ball operation. + * @throws { BusinessError } 1300023 - Floating-ball internal error. + * @throws { BusinessError } 1300024 - The floating-ball window state is abnormal. * @syscap SystemCapability.Window.SessionManager * @since 20 */ @@ -100,9 +102,10 @@ declare namespace floatingBall { * * @param { FloatingBallParams } params - Params for floating-ball update. * @returns { Promise } - The promise returned by the function. - * @throws { BusinessError } 1300022 - Floating-ball internal error. - * @throws { BusinessError } 1300023 - The floating-ball window state is abnormal. - * @throws { BusinessError } 1300024 - The floating-ball state is invalid. + * @throws { BusinessError } 1300019 - Wrong parameters for operating the floating-ball. + * @throws { BusinessError } 1300023 - Floating-ball internal error. + * @throws { BusinessError } 1300024 - The floating-ball window state is abnormal. + * @throws { BusinessError } 1300025 - The floating ball state does not support the current operation. * @syscap SystemCapability.Window.SessionManager * @since 20 */ @@ -112,9 +115,9 @@ declare namespace floatingBall { * Stop floating-ball. * * @returns { Promise } - The promise returned by the function. - * @throws { BusinessError } 1300020 - Cannot start multiple floating-Ball window. - * @throws { BusinessError } 1300022 - Floating-ball internal error. - * @throws { BusinessError } 1300023 - The floating-ball window state is abnormal. + * @throws { BusinessError } 1300022 - Repeated floating-Ball operation. + * @throws { BusinessError } 1300023 - Floating-ball internal error. + * @throws { BusinessError } 1300024 - The floating-ball window state is abnormal. * @syscap SystemCapability.Window.SessionManager * @since 20 */ @@ -164,7 +167,7 @@ declare namespace floatingBall { * Get the info of floating-ball window. * * @returns { Promise } - The promise used to return the floating-ball window info. - * @throws { BusinessError } 1300022 - Floating-ball internal error. + * @throws { BusinessError } 1300023 - Floating-ball internal error. * @syscap SystemCapability.Window.SessionManager * @since 20 */ @@ -175,10 +178,10 @@ declare namespace floatingBall { * * @param { Want } want - Params for floating-ball restoration. * @returns { Promise } - The promise returned by the function. - * @throws { BusinessError } 1300020 - Cannot start multiple floating-Ball window. - * @throws { BusinessError } 1300022 - Floating-ball internal error. - * @throws { BusinessError } 1300024 - The floating-ball state is invalid. - * @throws { BusinessError } 1300025 - Failed to restore the main window. + * @throws { BusinessError } 1300019 - Wrong parameters for operating the floating-ball. + * @throws { BusinessError } 1300023 - Floating-ball internal error. + * @throws { BusinessError } 1300025 - The floating ball state does not support the current operatio. + * @throws { BusinessError } 1300026 - Failed to restore the main window. * @syscap SystemCapability.Window.SessionManager * @since 20 */ @@ -196,20 +199,20 @@ declare namespace floatingBall { /** * The template of floating-ball. * - * @type { ?FloatingBallTemplate } + * @type { FloatingBallTemplate } * @syscap SystemCapability.Window.SessionManager * @since 20 */ - template?: FloatingBallTemplate; + template: FloatingBallTemplate; /** * The title of floating-ball. * - * @type { ?string } + * @type { string } * @syscap SystemCapability.Window.SessionManager * @since 20 */ - title?: string; + title: string; /** * The content of floating-ball. @@ -220,6 +223,15 @@ declare namespace floatingBall { */ content?: string; + /** + * The backgroundColor of floating-ball. + * + * @type { ?string } + * @syscap SystemCapability.Window.SessionManager + * @since 20 + */ + backgroundColor?: string; + /** * The icon of floating-ball. * -- Gitee From 8ebf92150802f39a3b8915622d2f6c0d3e6b94c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B8=E6=BB=A1=E6=B8=9D?= Date: Thu, 19 Jun 2025 20:43:38 +0800 Subject: [PATCH 09/12] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E9=97=AA=E6=8E=A7=E7=90=83=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=20Signed-off-by:=20EmiyaSakura=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.floatingBall.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.floatingBall.d.ts b/api/@ohos.floatingBall.d.ts index 6f137a0e6e..61ffbb386a 100644 --- a/api/@ohos.floatingBall.d.ts +++ b/api/@ohos.floatingBall.d.ts @@ -180,7 +180,7 @@ declare namespace floatingBall { * @returns { Promise } - The promise returned by the function. * @throws { BusinessError } 1300019 - Wrong parameters for operating the floating-ball. * @throws { BusinessError } 1300023 - Floating-ball internal error. - * @throws { BusinessError } 1300025 - The floating ball state does not support the current operatio. + * @throws { BusinessError } 1300025 - The floating ball state does not support the current operation. * @throws { BusinessError } 1300026 - Failed to restore the main window. * @syscap SystemCapability.Window.SessionManager * @since 20 -- Gitee From f443a7c301228ae39fdba9414d52d6e82f34265a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B8=E6=BB=A1=E6=B8=9D?= Date: Thu, 19 Jun 2025 22:05:40 +0800 Subject: [PATCH 10/12] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E9=97=AA=E6=8E=A7=E7=90=83=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=20Signed-off-by:=20EmiyaSakura=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.floatingBall.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/@ohos.floatingBall.d.ts b/api/@ohos.floatingBall.d.ts index 61ffbb386a..91a73f2bab 100644 --- a/api/@ohos.floatingBall.d.ts +++ b/api/@ohos.floatingBall.d.ts @@ -88,7 +88,7 @@ declare namespace floatingBall { * @throws { BusinessError } 201 - Permission verification failed, usually returned by VerifyAccessToken. * @throws { BusinessError } 1300019 - Wrong parameters for operating the floating-ball. * @throws { BusinessError } 1300020 - Failed to create the floating-Ball window. - * @throws { BusinessError } 1300021 - Cannot start multiple floating-Ball window. + * @throws { BusinessError } 1300021 - Failed to start multiple floating-Ball window. * @throws { BusinessError } 1300022 - Repeated floating-Ball operation. * @throws { BusinessError } 1300023 - Floating-ball internal error. * @throws { BusinessError } 1300024 - The floating-ball window state is abnormal. @@ -105,7 +105,7 @@ declare namespace floatingBall { * @throws { BusinessError } 1300019 - Wrong parameters for operating the floating-ball. * @throws { BusinessError } 1300023 - Floating-ball internal error. * @throws { BusinessError } 1300024 - The floating-ball window state is abnormal. - * @throws { BusinessError } 1300025 - The floating ball state does not support the current operation. + * @throws { BusinessError } 1300025 - The floating-ball state does not support this operation. * @syscap SystemCapability.Window.SessionManager * @since 20 */ @@ -180,7 +180,7 @@ declare namespace floatingBall { * @returns { Promise } - The promise returned by the function. * @throws { BusinessError } 1300019 - Wrong parameters for operating the floating-ball. * @throws { BusinessError } 1300023 - Floating-ball internal error. - * @throws { BusinessError } 1300025 - The floating ball state does not support the current operation. + * @throws { BusinessError } 1300025 - The floating-ball state does not support this operation. * @throws { BusinessError } 1300026 - Failed to restore the main window. * @syscap SystemCapability.Window.SessionManager * @since 20 -- Gitee From 211dfd2478a582a8a96d47ffa510bc774443e616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B8=E6=BB=A1=E6=B8=9D?= Date: Fri, 20 Jun 2025 11:29:23 +0800 Subject: [PATCH 11/12] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E9=97=AA=E6=8E=A7=E7=90=83=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=20Signed-off-by:=20EmiyaSakura=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kits/@kit.ArkUI.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kits/@kit.ArkUI.d.ts b/kits/@kit.ArkUI.d.ts index 6020791908..2b8d6720b5 100644 --- a/kits/@kit.ArkUI.d.ts +++ b/kits/@kit.ArkUI.d.ts @@ -126,7 +126,6 @@ import matrix4 from '@ohos.matrix4'; import MeasureText, { MeasureOptions } from '@ohos.measure'; import mediaquery from '@ohos.mediaquery'; import PiPWindow from '@ohos.PiPWindow'; -import floatingBall from '@ohos.floatingBall'; import pluginComponentManager, { PluginComponentTemplate } from '@ohos.pluginComponent'; import prompt from '@ohos.prompt'; import promptAction, { LevelMode, ImmersiveMode, LevelOrder } from '@ohos.promptAction'; @@ -248,7 +247,7 @@ export { InterstitialDialogAction, IconStyle, TitlePosition, BottomOffset, LabelOptions, LayeredDrawableDescriptor, LoadingDialog, LocaleResponse, MarginType, Matrix4, MeasureOptions, MeasureText, MediaQuery, MediaQueryEvent, MediaQueryList, NodeController, NodeParam, NodeRenderType, Offset, OperateButton, OperateCheck, OperateIcon, - OperateItem, OperationOption, OperationType, OverlayManager, PathShape, PiPWindow, floatingBall, Pivot, Popup, PopupButtonOptions, PopupIconOptions, PopupOptions, + OperateItem, OperationOption, OperationType, OverlayManager, PathShape, PiPWindow, Pivot, Popup, PopupButtonOptions, PopupIconOptions, PopupOptions, PopupTextOptions, Position, PrefixIconOptions, ProgressButton, ProgressButtonV2, ProgressButtonV2Color, ProgressButtonV2ColorOptions, Prompt, PromptAction, PromptOptions, RectShape, RenderNode, RenderOptions, BuildOptions, RequestFullWindowOptions, Rotation, Router, RouterOptions, RouterState, Scale, ScreenOnVisibleOptions, SegmentButton, SegmentButtonItemOptionsArray, SegmentButtonOptions, SelectDialog, SelectOptions, SelectTitleBar, SelectTitleBarMenuItem, SelectionMenu, -- Gitee From 587dfef7d400ac443d95752549e89611ec8f2e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B8=E6=BB=A1=E6=B8=9D?= Date: Fri, 20 Jun 2025 11:47:07 +0800 Subject: [PATCH 12/12] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E9=97=AA=E6=8E=A7=E7=90=83=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=20Signed-off-by:=20EmiyaSakura=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kits/@kit.ArkUI.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kits/@kit.ArkUI.d.ts b/kits/@kit.ArkUI.d.ts index 2b8d6720b5..6020791908 100644 --- a/kits/@kit.ArkUI.d.ts +++ b/kits/@kit.ArkUI.d.ts @@ -126,6 +126,7 @@ import matrix4 from '@ohos.matrix4'; import MeasureText, { MeasureOptions } from '@ohos.measure'; import mediaquery from '@ohos.mediaquery'; import PiPWindow from '@ohos.PiPWindow'; +import floatingBall from '@ohos.floatingBall'; import pluginComponentManager, { PluginComponentTemplate } from '@ohos.pluginComponent'; import prompt from '@ohos.prompt'; import promptAction, { LevelMode, ImmersiveMode, LevelOrder } from '@ohos.promptAction'; @@ -247,7 +248,7 @@ export { InterstitialDialogAction, IconStyle, TitlePosition, BottomOffset, LabelOptions, LayeredDrawableDescriptor, LoadingDialog, LocaleResponse, MarginType, Matrix4, MeasureOptions, MeasureText, MediaQuery, MediaQueryEvent, MediaQueryList, NodeController, NodeParam, NodeRenderType, Offset, OperateButton, OperateCheck, OperateIcon, - OperateItem, OperationOption, OperationType, OverlayManager, PathShape, PiPWindow, Pivot, Popup, PopupButtonOptions, PopupIconOptions, PopupOptions, + OperateItem, OperationOption, OperationType, OverlayManager, PathShape, PiPWindow, floatingBall, Pivot, Popup, PopupButtonOptions, PopupIconOptions, PopupOptions, PopupTextOptions, Position, PrefixIconOptions, ProgressButton, ProgressButtonV2, ProgressButtonV2Color, ProgressButtonV2ColorOptions, Prompt, PromptAction, PromptOptions, RectShape, RenderNode, RenderOptions, BuildOptions, RequestFullWindowOptions, Rotation, Router, RouterOptions, RouterState, Scale, ScreenOnVisibleOptions, SegmentButton, SegmentButtonItemOptionsArray, SegmentButtonOptions, SelectDialog, SelectOptions, SelectTitleBar, SelectTitleBarMenuItem, SelectionMenu, -- Gitee