as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容

Example

Reference

Methods

share() Android iOS

Open a dialog to share text content. In iOS, returns a Promise which will be invoked with an object containing action and activityType. If the user dismissed the dialog, the Promise will still be resolved with action being Share.dismissedAction and all the other keys being undefined. Note that some share options will not appear or work on the iOS simulator. In Android, returns a Promise which will always be resolved with action being Share.sharedAction. Properties:

Properties

sharedAction Android iOS

The content was successfully shared.

dismissedAction iOS

The dialog has been dismissed.
最后修改于 2026年10月26日