• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Starting a DataAbility
2
3
4When a DataAbility is started, a **DataAbilityHelper** object is obtained. The sample code for starting a DataAbility is as follows:
5
6```ts
7// Different from the URI defined in the config.json file, the URI passed in the parameter has an extra slash (/), three slashes in total.
8import featureAbility from '@ohos.ability.featureAbility'
9
10let urivar = "dataability:///com.ix.DataAbility"
11let DAHelper = featureAbility.acquireDataAbilityHelper(urivar);
12```
13