Does anyone knows how to use iOS avauthorizationstatus in Delphi. I need to check if app is authorize to use the camera, if not, display the permission dialog window. When user deny the app it will not continue displaying the camera app.
Does anyone knows how to use iOS avauthorizationstatus in Delphi. I need to check if app is authorize to use the camera, if not, display the permission dialog window. When user deny the app it will not continue displaying the camera app.
The built in TTakeCameraPhotoAction when user denied permission it will continue displaying the camera app.
The built in TTakeCameraPhotoAction when user denied permission it will continue displaying the camera app.
Thanks... I will try it out....
ReplyDeleteYou need to call it like this:
ReplyDeleteTAVCaptureDevice.OCClass.authorizationStatusForMediaType(AVMediaTypeVideo)
I suggest learning about how to use Objective-C classes in Delphi from somewhere like this:
youtube.com - Oct 17, 6am - Accessing The iOS API
Code works now... many thanks....
ReplyDelete