1# StartAbilityParameter 2 3The **StartAbilityParameter** module defines the parameters for starting an ability. The parameters can be used as input parameters in [startAbility](js-apis-ability-featureAbility.md#featureabilitystartability) to start the specified ability. 4 5> **NOTE** 6> 7> The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version. 8> The APIs of this module can be used only in the FA model. 9 10## Modules to Import 11 12```ts 13import ability from '@ohos.ability.ability'; 14``` 15 16## Attributes 17 18**System capability**: SystemCapability.Ability.AbilityRuntime.FAModel 19 20| Name | Type | Mandatory | Description | 21| ------------------- | -------- | ---- | -------------------------------------- | 22| want | [Want](js-apis-app-ability-want.md)| Yes | Want information about the target ability. | 23| abilityStartSetting | { [key: string]: any } | No | Special attribute of the target ability. This attribute can be passed in the call.| 24| abilityStartSettings<sup>11+<sup> | Record\<string, Object> | No | Special attribute of the target ability. This attribute can be passed in the call. You are advised to use this attribute to replace **abilityStartSetting**. When this attribute is set, **abilityStartSetting** does not take effect.| 25 26**Example** 27 28<!--code_no_check_fa--> 29```ts 30import ability from '@ohos.ability.ability'; 31import featureAbility from '@ohos.ability.featureAbility'; 32import Want from '@ohos.app.ability.Want'; 33 34let want: Want = { 35 bundleName: 'com.example.abilityStartSettingApp2', 36 abilityName: 'com.example.abilityStartSettingApp.EntryAbility', 37}; 38 39let startAbilityParameter: ability.StartAbilityParameter = { 40 want : want, 41 abilityStartSettings : { 42 abilityBounds : [100,200,300,400], 43 windowMode : 44 featureAbility.AbilityWindowConfiguration.WINDOW_MODE_UNDEFINED, 45 displayId : 1, 46 } 47}; 48 49try { 50 featureAbility.startAbility(startAbilityParameter, (error, data) => { 51 if (error && error.code !== 0) { 52 console.error(`startAbility fail, error: ${JSON.stringify(error)}`); 53 } else { 54 console.log(`startAbility success, data: ${JSON.stringify(data)}`); 55 } 56 }); 57} catch(error) { 58 console.error(`startAbility error: ${JSON.stringify(error)}`); 59} 60``` 61