1# @ohos.customization.customConfig (定制配置)
2
3本模块接口为应用提供定制配置的获取能力,如渠道号等。
4
5>  **说明:**
6>
7>  本模块首批接口从API version 12开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
8
9## 导入模块
10
11```ts
12import { customConfig } from '@kit.BasicServicesKit';
13```
14
15## customConfig.getChannelId
16
17getChannelId(): string
18
19根据应用的BundleName获取渠道号。
20
21**原子化服务API:** 从API version 13开始,该接口支持在原子化服务中使用。
22
23**系统能力**:SystemCapability.Customization.CustomConfig
24
25**返回值:**
26
27|  类型  |  说明  |
28| ------ | ----- |
29| string | 渠道号 |
30
31**示例:**
32
33  ```ts
34    let channelId: string = customConfig.getChannelId();
35    console.log('app channelId is ' + channelId);
36  ```
37