Documentation Archive Developer
Search

AVKit Changes for Objective-C

AVKit

AVCaptureView.h

Declaration
From
@property(weak) id<AVCaptureViewDelegate> delegate
To
@property(weak, nullable) id<AVCaptureViewDelegate> delegate

Declaration
From
@property(readonly) AVCaptureFileOutput *fileOutput
To
@property(readonly, nullable) AVCaptureFileOutput *fileOutput

Declaration
From
@property(readonly) AVCaptureSession *session
To
@property(readonly, nullable) AVCaptureSession *session

Declaration
From
- (void)setSession:(AVCaptureSession *)session showVideoPreview:(BOOL)showVideoPreview showAudioPreview:(BOOL)showAudioPreview
To
- (void)setSession:(AVCaptureSession * _Nullable)session showVideoPreview:(BOOL)showVideoPreview showAudioPreview:(BOOL)showAudioPreview

Declaration
From
@property(copy) NSString *videoGravity
To
@property(copy, nonnull) NSString *videoGravity

Declaration
From
- (void)captureView:(AVCaptureView *)captureView startRecordingToFileOutput:(AVCaptureFileOutput *)fileOutput
To
- (void)captureView:(AVCaptureView * _Nonnull)captureView startRecordingToFileOutput:(AVCaptureFileOutput * _Nonnull)fileOutput

AVPlayerView.h

Declaration
From
@property NSMenu *actionPopUpButtonMenu
To
@property(nullable) NSMenu *actionPopUpButtonMenu

Declaration
From
- (void)beginTrimmingWithCompletionHandler:(void (^)(AVPlayerViewTrimResult result))handler
To
- (void)beginTrimmingWithCompletionHandler:(void (^ _Nullable)(AVPlayerViewTrimResult result))handler

Declaration
From
@property(readonly) NSView *contentOverlayView
To
@property(readonly, nullable) NSView *contentOverlayView

Declaration
From
- (void)flashChapterNumber:(NSUInteger)chapterNumber chapterTitle:(NSString *)chapterTitle
To
- (void)flashChapterNumber:(NSUInteger)chapterNumber chapterTitle:(NSString * _Nonnull)chapterTitle

Declaration
From
@property AVPlayer *player
To
@property(nullable) AVPlayer *player

Declaration
From
@property(copy) NSString *videoGravity
To
@property(copy, nonnull) NSString *videoGravity