FMX.MediaLibrary.Actions.TCustomTakePhotoAction

Delphi
TCustomTakePhotoAction = class(TSysCommonAction)
C++
class PASCALIMPLEMENTATION TCustomTakePhotoAction : 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
TCustomTakePhotoAction is the base class for taking photos actions.
TCustomTakePhotoAction introduces support for two events:
- OnDidCancelTaking - use it to manage what happens if the taking photo process is canceled.
- OnDidFinishTaking - use it to manage what happens after taking the photo.
There are two ways to take photos to be used in applications:
- Loading a photo from the local photo library: use TTakePhotoFromLibraryAction.
- Capturing a photo with the device camera: use TTakePhotoFromCameraAction.
Do not create instances of TCustomTakePhotoAction. Use TCustomTakePhotoAction as a base class when declaring actions that allow the user to take photos.
See Also
- FMX.MediaLibrary.Actions.TTakePhotoFromLibraryAction
- FMX.MediaLibrary.Actions.TTakePhotoFromCameraAction
- 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