From 32489a038a2c29256cabd81b103a0211e3f3b8f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=88=98?= Date: Wed, 19 Mar 2025 19:22:00 +0800 Subject: [PATCH] =?UTF-8?q?ani=E6=8E=A5=E5=8F=A3=E6=94=B9=E9=80=A0:datasha?= =?UTF-8?q?re=E4=BE=9D=E8=B5=96=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈战 Change-Id: I93fec1a18264d331236e23987626d5d620d702ef --- api/@ohos.multimodalInput.intentionCode.d.ets | 246 ++++++++++++++++++ .../RunningMultiInstanceInfo.d.ets | 59 +++++ 2 files changed, 305 insertions(+) create mode 100644 api/@ohos.multimodalInput.intentionCode.d.ets create mode 100644 api/application/RunningMultiInstanceInfo.d.ets diff --git a/api/@ohos.multimodalInput.intentionCode.d.ets b/api/@ohos.multimodalInput.intentionCode.d.ets new file mode 100644 index 0000000000..79445f8cc2 --- /dev/null +++ b/api/@ohos.multimodalInput.intentionCode.d.ets @@ -0,0 +1,246 @@ +/* + * Copyright (c) 2023 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 InputKit + */ + +/** + * IntentionCode + * + * @enum { number } + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 10 + */ +/** + * IntentionCode + * + * @enum { number } + * @syscap SystemCapability.MultimodalInput.Input.Core + * @atomicservice + * @since 12 + */ +export declare enum IntentionCode { + /** + * INTENTION_UNKNOWN + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 10 + */ + /** + * INTENTION_UNKNOWN + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @atomicservice + * @since 12 + */ + INTENTION_UNKNOWN = -1, + + /** + * INTENTION_UP + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 10 + */ + /** + * INTENTION_UP + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @atomicservice + * @since 12 + */ + INTENTION_UP = 1, + + /** + * INTENTION_DOWN + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 10 + */ + /** + * INTENTION_DOWN + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @atomicservice + * @since 12 + */ + INTENTION_DOWN = 2, + + /** + * INTENTION_LEFT + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 10 + */ + /** + * INTENTION_LEFT + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @atomicservice + * @since 12 + */ + INTENTION_LEFT = 3, + + /** + * INTENTION_RIGHT + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 10 + */ + /** + * INTENTION_RIGHT + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @atomicservice + * @since 12 + */ + INTENTION_RIGHT = 4, + + /** + * INTENTION_SELECT + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 10 + */ + /** + * INTENTION_SELECT + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @atomicservice + * @since 12 + */ + INTENTION_SELECT = 5, + + /** + * INTENTION_ESCAPE + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 10 + */ + /** + * INTENTION_ESCAPE + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @atomicservice + * @since 12 + */ + INTENTION_ESCAPE = 6, + + /** + * INTENTION_BACK + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 10 + */ + /** + * INTENTION_BACK + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @atomicservice + * @since 12 + */ + INTENTION_BACK = 7, + + /** + * INTENTION_FORWARD + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 10 + */ + /** + * INTENTION_FORWARD + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @atomicservice + * @since 12 + */ + INTENTION_FORWARD = 8, + + /** + * INTENTION_MENU + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 10 + */ + /** + * INTENTION_MENU + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @atomicservice + * @since 12 + */ + INTENTION_MENU = 9, + + /** + * INTENTION_PAGE_UP + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 10 + */ + /** + * INTENTION_PAGE_UP + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @atomicservice + * @since 12 + */ + INTENTION_PAGE_UP = 11, + + /** + * INTENTION_PAGE_DOWN + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 10 + */ + /** + * INTENTION_PAGE_DOWN + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @atomicservice + * @since 12 + */ + INTENTION_PAGE_DOWN = 12, + + /** + * INTENTION_ZOOM_OUT + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 10 + */ + /** + * INTENTION_ZOOM_OUT + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @atomicservice + * @since 12 + */ + INTENTION_ZOOM_OUT = 13, + + /** + * INTENTION_ZOOM_IN + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 10 + */ + /** + * INTENTION_ZOOM_IN + * + * @syscap SystemCapability.MultimodalInput.Input.Core + * @atomicservice + * @since 12 + */ + INTENTION_ZOOM_IN = 14 +} diff --git a/api/application/RunningMultiInstanceInfo.d.ets b/api/application/RunningMultiInstanceInfo.d.ets new file mode 100644 index 0000000000..fc279f3031 --- /dev/null +++ b/api/application/RunningMultiInstanceInfo.d.ets @@ -0,0 +1,59 @@ +/* + * 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 AbilityKit + */ + +/** + * The class of app running instance information. + * + * @typedef RunningMultiInstanceInfo + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @systemapi + * @since 14 + */ +export interface RunningMultiInstanceInfo { + /** + * The index of current instance. + * + * @type { string } + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @systemapi + * @since 14 + */ + instanceKey: string; + + /** + * The uid of current app instance. + * + * @type { number } + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @systemapi + * @since 14 + */ + uid: number; + + /** + * All pids of current app instance. + * + * @type { Array } + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @systemapi + * @since 14 + */ + pids: Array; + } \ No newline at end of file -- Gitee