FMX.MediaLibrary.TMessageDidFinishTakingImageFromCamera
Delphi
TMessageDidFinishTakingImageFromCamera = class(TMessage<TBitmap>);
C++
class PASCALIMPLEMENTATION TMessageDidFinishTakingImageFromCamera : public System::Messaging::TMessage__1<Fmx::Graphics::TBitmap*>
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | FMX.MediaLibrary.pas FMX.MediaLibrary.hpp |
FMX.MediaLibrary | FMX.MediaLibrary |
Description
Message that contains a picture that the user took by request of your application.
When your application calls IFMXCameraService.TakePhoto, this opens the device camera application for the user to take a picture. After the user takes a picture and your application regains focus, a TMessageReceivedImagePath message is sent, followed by a TMessageDidFinishTakingImageFromCamera message.
The Value of a TMessageDidFinishTakingImageFromCamera message is a TBitmap containing the picture that the user took.
TMessageDidFinishTakingImageFromCamera messages are only sent if the call to IFMXCameraService.TakePhoto does not specify an event handler for successfully taking a picture. However, even if you do specify this event handler, Android may unload your application while your user is taking a picture. When your application regains focus, it might actually have restarted, and any event information passed on the call to IFMXCameraService.TakePhoto is lost, which is why a TMessageDidFinishTakingImageFromCamera message is sent instead.
Using Events Instead of Messages
Instead of using messages, you can pass an event handler for successfully taking a picture in your call to IFMXCameraService.TakePhoto. See When to Use Messages.
Platform Support
FireMonkey only sends this type of message on Android.
See Also
- System.Messaging.TMessage
- FMX.Graphics.TBitmap
- FMX.MediaLibrary.IFMXCameraService.TakePhoto
- FMX.MediaLibrary.TMessageDidFinishTakingImageFromLibrary
- System.Messaging (Delphi) code example
- System.Messaging (C++) code example