1e41f4b71Sopenharmony_ci# AbilityResult 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ciThe **AbilityResult** module defines the result code and data returned when an ability is terminated after being started. 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ciIn the stage model, you can use [startAbilityForResult](js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartabilityforresult) to obtain the **AbilityResult** object returned after the started ability is terminated by calling [terminateSelfWithResult](js-apis-inner-application-uiAbilityContext.md#uiabilitycontextterminateselfwithresult). 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ciIn the FA model, you can use [startAbilityForResult](js-apis-ability-featureAbility.md#featureabilitystartabilityforresult7) to obtain the **AbilityResult** object returned after the started ability is terminated by calling [terminateSelfWithResult](js-apis-ability-featureAbility.md#featureabilityterminateselfwithresult7). 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci> **NOTE** 10e41f4b71Sopenharmony_ci> 11e41f4b71Sopenharmony_ci> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci## Modules to Import 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ciStage model: 16e41f4b71Sopenharmony_ci```ts 17e41f4b71Sopenharmony_ciimport { common } from '@kit.AbilityKit'; 18e41f4b71Sopenharmony_ci``` 19e41f4b71Sopenharmony_ci 20e41f4b71Sopenharmony_ciFA model: 21e41f4b71Sopenharmony_ci```ts 22e41f4b71Sopenharmony_ciimport ability from '@ohos.ability.ability'; 23e41f4b71Sopenharmony_ci``` 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ci## Attributes 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11. 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ci**System capability**: SystemCapability.Ability.AbilityBase 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci| Name | Type | Read-only| Optional| Description | 32e41f4b71Sopenharmony_ci| ----------- | -------------------- | ---- | ---- | ------------------------------------------------------------ | 33e41f4b71Sopenharmony_ci| resultCode | number | No | No | Result code returned after the started ability is terminated. | 34e41f4b71Sopenharmony_ci| want | [Want](js-apis-app-ability-want.md) | No | Yes | Data returned after the started ability is terminated.| 35