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.

Comments

  1. You need to call it like this:

    TAVCaptureDevice.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

    ReplyDelete

Post a Comment