FMX.MediaLibrary.Actions.TTakePhotoFromCameraAction
Delphi
TTakePhotoFromCameraAction = class(TCustomTakePhotoAction)
C++
class PASCALIMPLEMENTATION TTakePhotoFromCameraAction : public TCustomTakePhotoAction
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | FMX.MediaLibrary.Actions.pas FMX.MediaLibrary.Actions.hpp |
FMX.MediaLibrary.Actions | FMX.MediaLibrary.Actions |
Description
TTakePhotoFromCameraAction is the standard action for taking photos from the camera device.
Write an event handler for OnDidFinishTaking to manage the taken photo.
When clicking on the control to which a TTakePhotoFromCameraAction is attached, the camera window is displayed and allows the user to choose the camera to be used (front or back) and to take a photo.
TTakePhotoFromCameraAction can be found in Action List editor, in the Media Library section.
See Also
- FMX.MediaLibrary.Actions.TTakePhotoFromLibraryAction
- FMX.MediaLibrary.Actions.TCustomTakePhotoAction
- 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 (Delphi)
- FireMonkey Access Camera sample
- FireMonkey Share Sheet sample
- RTL Photo Wall sample