We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e07e08 + d31bba8 commit 7c9c7a7Copy full SHA for 7c9c7a7
programming/ios/primary-api/camera-enhancer.md
@@ -740,11 +740,12 @@ Select a camera with a camera position.
740
>
741
>1.
742
```objc
743
-- (BOOL)selectCameraWithPosition:(DSCameraPosition)position error:(NSError * _Nullable * _Nullable)error;
+- (void)selectCameraWithPosition:(DSCameraPosition)position
744
+ completionHandler:(nullable void(^)(BOOL isSuccess, NSError *_Nullable error))completionHandler;
745
```
746
2.
747
```swift
-func selectCamera(with position: CameraPosition) throws
748
+func selectCameraWithPosition(_ position: CameraPosition, completionHandler: ((Bool, (any Error)?) -> Void)? = nil)
749
750
751
**Parameters**
0 commit comments