Share Kit provides two modes for host apps to integrate the System Share capability.
| Integration Mode | Method & Application Scenario | Display Effect |
|---|---|---|
| Full integration | Directly use the system sharing panel. This mode is applicable to Huawei-developed apps and apps which do not have business requirements on the sharing mode area. You can directly use the system sharing panel to reduce development costs. | The system sharing panel is directly used.
|
| Half integration | You develop the sharing panel and provide the System Share entry on the sharing panel. This mode is applicable to apps which have business requirements for the sharing mode area or have their unique service logic. | On the left is a demo of your self-developed sharing panel, which provides the System Share entry. When a user taps System Share, the system sharing panel is displayed.
|
Reference: Development Procedure for Initiating Content Sharing Through System Share in a Mobile App
To enhance sharing experience, use the HarmonyOS system resource $r('sys.symbol.share') for the icon and System Share for text. Do not change the settings.
// Use the icon in Symbol format provided by the system as the sharing icon.
SymbolGlyph($r('sys.symbol.share'))
// Use System Share as the text.
Text('System Share') For details about the complete sample code, please refer to Sample Code - Access Model.