• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# @ohos.app.ability.ShareExtensionAbility (Share Details Page ExtensionAbility)
2
3ShareExtensionAbility provides extended capabilities for building share details pages. It inherits from [UIExtensionAbility](js-apis-app-ability-uiExtensionAbility.md). For details about the inheritance relationship of each ability, see [Inheritance Relationship](./js-apis-app-ability-ability.md#ability-inheritance-relationship).
4
5> **NOTE**
6>
7> The initial APIs of this module are supported since API version 10. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8>
9> The APIs of this module can be used only in the stage model.
10
11## When to Use
12
13The following uses text sharing as an example. A user selects a piece of text and starts the application to be shared. The application starts the sharing template based on the sharing information and displays the data based on the sharing template content.
14
15## Modules to Import
16
17```ts
18import { ShareExtensionAbility } from '@kit.AbilityKit';
19```
20
21## ShareExtensionAbility
22
23ShareExtensionAbility provides extended capabilities for building share details pages. It inherits from [UIExtensionAbility](js-apis-app-ability-uiExtensionAbility.md).
24
25This module allows you to create share detail pages that can receive shared content, and it places the application entry in the recommended applications area on the system share panel.
26
27**System capability**: SystemCapability.Ability.AbilityRuntime.Core
28