On iOS versions prior to 17, the legacy method (_ : requestMediaCapturePermissionFor:...) is used, while on iOS 17 and later, the updated asynchronous API (_ : decideMediaCapturePermissionsFor:...) is employed.