diff --git a/api/common/@system.package.d.ts b/api/common/@system.package.d.ts deleted file mode 100644 index 4075447959c081fe12f2d5a4c5942724c41462c2..0000000000000000000000000000000000000000 --- a/api/common/@system.package.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2020 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. - */ - -/** - * @devices tv, phone, tablet, wearable - */ -export interface CheckPackageHasInstalledResponse { - /** - * Whether the application exists, or whether the native application has been installed. - * @devices tv, phone, tablet, wearable - * @since 3 - */ - result: boolean; -} - -export interface CheckPackageHasInstalledOptions { - /** - * Application bundle name. - * @devices tv, phone, tablet, wearable - * @since 3 - */ - bundleName: string; - - /** - * Called when native applications are installed. - * @devices tv, phone, tablet, wearable - * @since 3 - */ - success?: (data: CheckPackageHasInstalledResponse) => void; - - /** - * Called when native applications fail to be installed. - * @devices tv, phone, tablet, wearable - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @devices tv, phone, tablet, wearable - * @since 3 - */ - complete?: () => void; -} - -/** - * @devices tv, phone, tablet, wearable - */ -export default class Package { - /** - * Checks whether an application exists, or whether a native application has been installed. - * @param options Options. - * @devices tv, phone, tablet, wearable - */ - static hasInstalled(options: CheckPackageHasInstalledOptions): void; -} diff --git a/api/phone/@system.package.d.ts b/api/phone/@system.package.d.ts deleted file mode 100644 index bcb42820845c41d873edb65c1fcd73d6370411da..0000000000000000000000000000000000000000 --- a/api/phone/@system.package.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) 2020 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. - */ - -export interface CheckPackageHasInstalledResponse { - /** - * Whether the application exists, or whether the native application has been installed. - * @since 3 - */ - result: boolean; -} - -export interface CheckPackageHasInstalledOptions { - /** - * Application bundle name. - * @since 3 - */ - bundleName: string; - - /** - * Called when native applications are installed. - * @since 3 - */ - success?: (data: CheckPackageHasInstalledResponse) => void; - - /** - * Called when native applications fail to be installed. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; -} - -/** - * @Syscap SysCap.ACE.UIEngine - */ -export default class Package { - /** - * Checks whether an application exists, or whether a native application has been installed. - * @param options - */ - static hasInstalled(options: CheckPackageHasInstalledOptions): void; -} diff --git a/api/tablet/@system.package.d.ts b/api/tablet/@system.package.d.ts deleted file mode 100644 index 2a918ec35a897e6332a87cc24b0a615d9ef33944..0000000000000000000000000000000000000000 --- a/api/tablet/@system.package.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2020 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. - */ - -export interface CheckPackageHasInstalledResponse { - /** - * Whether the application exists, or whether the native application has been installed. - * @since 3 - */ - result: boolean; -} - -/** - * @Syscap SysCap.ACE.UIEngine - */ -export default class Package { - /** - * Checks whether an application exists, or whether a native application has been installed. - * @param options - */ - static hasInstalled(options: { - /** - * Application bundle name. - * @since 3 - */ - bundleName: string; - - /** - * Called when native applications are installed.\ - * @since 3 - */ - success?: (data: CheckPackageHasInstalledResponse) => void; - - /** - * Called when native applications fail to be installed. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; -} diff --git a/api/tv/@system.package.d.ts b/api/tv/@system.package.d.ts deleted file mode 100644 index 6dbaf27ac95325b7840ddeeb68cdc1c84ce2f651..0000000000000000000000000000000000000000 --- a/api/tv/@system.package.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2020 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. - */ - -export interface CheckPackageHasInstalledResponse { - /** - * Whether the application exists, or whether the native application has been installed. - * @since 3 - */ - result: boolean; -} - -/** - * @Syscap SysCap.ACE.UIEngine - */ -export default class Package { - /** - * Checks whether an application exists, or whether a native application has been installed. - * @param options - */ - static hasInstalled(options: { - /** - * Application bundle name. - * @since 3 - */ - bundleName: string; - - /** - * Called when native applications are installed. - * @since 3 - */ - success?: (data: CheckPackageHasInstalledResponse) => void; - - /** - * Called when native applications fail to be installed. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; -} diff --git a/api/wearable/@system.package.d.ts b/api/wearable/@system.package.d.ts deleted file mode 100644 index 6dbaf27ac95325b7840ddeeb68cdc1c84ce2f651..0000000000000000000000000000000000000000 --- a/api/wearable/@system.package.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2020 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. - */ - -export interface CheckPackageHasInstalledResponse { - /** - * Whether the application exists, or whether the native application has been installed. - * @since 3 - */ - result: boolean; -} - -/** - * @Syscap SysCap.ACE.UIEngine - */ -export default class Package { - /** - * Checks whether an application exists, or whether a native application has been installed. - * @param options - */ - static hasInstalled(options: { - /** - * Application bundle name. - * @since 3 - */ - bundleName: string; - - /** - * Called when native applications are installed. - * @since 3 - */ - success?: (data: CheckPackageHasInstalledResponse) => void; - - /** - * Called when native applications fail to be installed. - * @since 3 - */ - fail?: (data: any, code: number) => void; - - /** - * Called when the execution is completed. - * @since 3 - */ - complete?: () => void; - }): void; -}