Skip to content

Commit d31bba8

Browse files
update to internal commit 6a93f05c
1 parent b92ebd3 commit d31bba8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

programming/ios/primary-api/camera-enhancer.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,11 +740,12 @@ Select a camera with a camera position.
740740
>
741741
>1.
742742
```objc
743-
- (BOOL)selectCameraWithPosition:(DSCameraPosition)position error:(NSError * _Nullable * _Nullable)error;
743+
- (void)selectCameraWithPosition:(DSCameraPosition)position
744+
completionHandler:(nullable void(^)(BOOL isSuccess, NSError *_Nullable error))completionHandler;
744745
```
745746
2.
746747
```swift
747-
func selectCamera(with position: CameraPosition) throws
748+
func selectCameraWithPosition(_ position: CameraPosition, completionHandler: ((Bool, (any Error)?) -> Void)? = nil)
748749
```
749750

750751
**Parameters**

0 commit comments

Comments
 (0)