FMX.MediaLibrary.Actions.TShowShareSheetAction
Delphi
TShowShareSheetAction = class(TSysCommonAction)
C++
class PASCALIMPLEMENTATION TShowShareSheetAction : public Fmx::Stdactns::TSysCommonAction
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | FMX.MediaLibrary.Actions.pas FMX.MediaLibrary.Actions.hpp |
FMX.MediaLibrary.Actions | FMX.MediaLibrary.Actions |
Description
TShowShareSheetAction is the standard action for sharing images and text.
Use TShowShareSheetAction to:
- share images or text to social networks.
- send data to be printed.
- attach data to an e-mail.
- assign image to a contact within the phone.
- copy an image.
- save an image to the local library.
The image and the text to be shared can be specified through the Bitmap and the TextMessage properties.
Write an event handler for OnBeforeExecute to manage what happens before executing the sharing process (for example displaying the shared image on the form).
When clicking on the control to which a TTakePhotoFromCameraAction is attached, a window is displayed and allows the user to choose the sharing action.
TShowShareSheetAction can be found in Action List editor, in the Media Library section.
See Also
- FMX.StdActns.TSysCommonAction
- Action List editor
- Mobile Tutorial: Taking and Sharing a Picture, and Sharing Text (iOS and Android)
- FMX.ActnList.TAction
- FireMonkey Actions
- Action List editor
- Handling VCL Actions Using an Action List
Code Examples
- FireMonkey Photo Editor sample
- FireMonkey Share Sheet sample