From a6ef4a58c0cdd6139615bf6259b3b4b96782d0aa Mon Sep 17 00:00:00 2001 From: hanhaibin Date: Thu, 20 Jan 2022 19:09:32 +0800 Subject: [PATCH] Add ohos.application.Configuration.d.ts and ohos.application.abilityManager.d.ts Signed-off-by: hanhaibin --- api/@ohos.application.Configuration.d.ts | 26 ++++++++++++++++++++ api/@ohos.application.abilityManager.d.ts | 30 +++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 api/@ohos.application.Configuration.d.ts create mode 100644 api/@ohos.application.abilityManager.d.ts diff --git a/api/@ohos.application.Configuration.d.ts b/api/@ohos.application.Configuration.d.ts new file mode 100644 index 0000000000..35528c5c86 --- /dev/null +++ b/api/@ohos.application.Configuration.d.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2021 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. + */ + + +/** + * @name Configuration + * @since 8 + * @sysCap AAFwk + * @devices phone, tablet, tv, wearable, car + * @permission N/A + */ +export default class Configuration { + language: string; +} \ No newline at end of file diff --git a/api/@ohos.application.abilityManager.d.ts b/api/@ohos.application.abilityManager.d.ts new file mode 100644 index 0000000000..5ae40f9840 --- /dev/null +++ b/api/@ohos.application.abilityManager.d.ts @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2021 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. + */ + +import { AsyncCallback } from './basic'; +import Configuration from './@ohos.application.Configuration'; + +/** + * The class of an ability manager. + * + * @since 8 + * @sysCap AAFwk + * @devices phone, tablet, tv, wearable, car + * @permission N/A + */ +declare namespace abilityManager { + function updateConfiguration(config: Configuration, callback: AsyncCallback): void; + function updateConfiguration(config: Configuration): Promise; +} \ No newline at end of file -- Gitee