This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Commit 725fbf6 1 parent f97addb commit 725fbf6 Copy full SHA for 725fbf6
File tree 1 file changed +5
-5
lines changed
packages/camera/camera/ios/Classes
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -100,14 +100,14 @@ - (void)handleMethodCallAsync:(FlutterMethodCall *)call
100
100
result : (FLTThreadSafeFlutterResult *)result {
101
101
if ([@" availableCameras" isEqualToString: call.method]) {
102
102
if (@available (iOS 10.0 , *)) {
103
- NSMutableArray *dicscoveryDevices = [NSMutableArray array ];
104
- [dicscoveryDevices addObject: AVCaptureDeviceTypeBuiltInWideAngleCamera];
105
- [dicscoveryDevices addObject: AVCaptureDeviceTypeBuiltInTelephotoCamera];
103
+ NSMutableArray *discoveryDevices = [NSMutableArray array ];
104
+ [discoveryDevices addObject: AVCaptureDeviceTypeBuiltInWideAngleCamera];
105
+ [discoveryDevices addObject: AVCaptureDeviceTypeBuiltInTelephotoCamera];
106
106
if (@available (iOS 13.0 , *)) {
107
- [dicscoveryDevices addObject: AVCaptureDeviceTypeBuiltInUltraWideCamera];
107
+ [discoveryDevices addObject: AVCaptureDeviceTypeBuiltInUltraWideCamera];
108
108
}
109
109
AVCaptureDeviceDiscoverySession *discoverySession = [AVCaptureDeviceDiscoverySession
110
- discoverySessionWithDeviceTypes: dicscoveryDevices
110
+ discoverySessionWithDeviceTypes: discoveryDevices
111
111
mediaType: AVMediaTypeVideo
112
112
position: AVCaptureDevicePositionUnspecified];
113
113
NSArray <AVCaptureDevice *> *devices = discoverySession.devices ;
You can’t perform that action at this time.
0 commit comments