• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) Huawei Technologies Co., Ltd. 2024-2024. All rights reserved.
3 */
4/**
5 * @file Define capabilities to access app domain verification info.
6 * @kit AbilityKit
7 */
8
9/**
10 * This module provides app domain verification info.
11 *
12 * @namespace appDomainVerify
13 * @syscap SystemCapability.BundleManager.AppDomainVerify
14 * @systemapi
15 * @stagemodelonly
16 * @since 13
17 */
18declare namespace appDomainVerify {
19
20
21  /**
22   * query domains verify associated with bundleName.
23   * @permission ohos.permission.GET_APP_DOMAIN_BUNDLE_INFO
24   * @param { string } bundleName - app bundleName.
25   * @returns { string[] } Result domains.
26   * @throws { BusinessError } 201 - Permission denied.
27   * @throws { BusinessError } 202 - System API accessed by non-system app.
28   * @throws { BusinessError } 401 - Parameter error.
29   * @throws { BusinessError } 29900001 - Internal error.
30   * @syscap SystemCapability.BundleManager.AppDomainVerify
31   * @systemapi
32   * @stagemodelonly
33   * @since 13
34   */
35  function queryAssociatedDomains(bundleName: string): string[];
36
37  /**
38   * query bundleNames associated with domain.
39   * @permission ohos.permission.GET_APP_DOMAIN_BUNDLE_INFO
40   * @param { string } domain - Parameters related to the function.
41   * @returns { string[] } Result bundleNames.
42   * @throws { BusinessError } 201 - Permission denied.
43   * @throws { BusinessError } 202 - System API accessed by non-system app.
44   * @throws { BusinessError } 401 - Parameter error.
45   * @throws { BusinessError } 29900001 - Internal error.
46   * @syscap SystemCapability.BundleManager.AppDomainVerify
47   * @systemapi
48   * @stagemodelonly
49   * @since 13
50   */
51  function queryAssociatedBundleNames(domain: string): string[];
52}
53
54export default appDomainVerify;
55
56