Presents the user with an option to choose an image stored on their current platform, for example a photo on a phone or an image saved on a PC. This does not immediately capture the image.
class procedure ChooseASync(const Owner: TAgkObject); overload; static;
Parameters |
Description |
const Owner: TAgkObject |
the object that will become owner of the chosen image (eg. a TAgkScene object). |
Depending on the platform your app may continue running in the background whilst the user is choosing an image, or it may pause execution whilst the image is chosen. In any case you must assume your app continues running but is no longer visible.
Use IsChoosingImage to check when the user returns from the image choosing process, and ChosenImage to discover the result of the process.
There is another version of ChooseASync that fires an event instead when the user has finished choosing.
Copyright (c) 2012. All rights reserved.
|