Added missing nullable annotations to iOS SDK.
Some of the PCF and PC methods are actually return nil, but was by default annotated as nonnull via NS_ASSUME_NONNULL_BEGIN. Bug: None No-Presubmit: True Change-Id: Ib8b9263452a61241c9e7a16c1807d87bd597c093 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/209180 Commit-Queue: Yura Yaroshevich <yura.yaroshevich@gmail.com> Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33384}
This commit is contained in:
committed by
Commit Bot
parent
854d59f750
commit
d140c8f43b
@ -40,7 +40,7 @@ NS_EXTENSION_UNAVAILABLE_IOS("Camera not available in app extensions.")
|
||||
- (void)startCaptureWithDevice:(AVCaptureDevice *)device
|
||||
format:(AVCaptureDeviceFormat *)format
|
||||
fps:(NSInteger)fps
|
||||
completionHandler:(nullable void (^)(NSError *))completionHandler;
|
||||
completionHandler:(nullable void (^)(NSError *_Nullable))completionHandler;
|
||||
// Stops the capture session asynchronously and notifies callback on completion.
|
||||
- (void)stopCaptureWithCompletionHandler:(nullable void (^)(void))completionHandler;
|
||||
|
||||
|
||||
@ -153,7 +153,7 @@ const int64_t kNanosecondsPerSecond = 1000000000;
|
||||
- (void)startCaptureWithDevice:(AVCaptureDevice *)device
|
||||
format:(AVCaptureDeviceFormat *)format
|
||||
fps:(NSInteger)fps
|
||||
completionHandler:(nullable void (^)(NSError *))completionHandler {
|
||||
completionHandler:(nullable void (^)(NSError *_Nullable error))completionHandler {
|
||||
_willBeRunning = YES;
|
||||
[RTC_OBJC_TYPE(RTCDispatcher)
|
||||
dispatchAsyncOnType:RTCDispatcherTypeCaptureSession
|
||||
|
||||
Reference in New Issue
Block a user