• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 启动DataAbility
2
3
4启动DataAbility会获取一个工具接口类对象(DataAbilityHelper)。启动DataAbility的示例代码如下:
5
6```ts
7// 作为参数传递的URI,与config中定义的URI的区别是多了一个"/",有三个"/",具体原因详见。
8import featureAbility from '@ohos.ability.featureAbility'
9
10let urivar = "dataability:///com.ix.DataAbility"
11let DAHelper = featureAbility.acquireDataAbilityHelper(urivar);
12```
13
14