Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Commit

Permalink
add isPreviewing getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Moldover committed Jan 13, 2018
1 parent 9f5564d commit f807a95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Source/PBJVision.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ static CGFloat const PBJVideoBitRate1280x750 = 5000000 * 8; // 40bmps
@property (nonatomic, readonly) BOOL supportsVideoCapture;
@property (nonatomic, readonly) BOOL canCaptureVideo;
@property (nonatomic, readonly, getter=isRecording) BOOL recording;
@property (nonatomic, readonly, getter=isPreviewing) BOOL isPreviewing;
@property (nonatomic, readonly, getter=isPaused) BOOL paused;

@property (nonatomic, getter=isVideoRenderingEnabled) BOOL videoRenderingEnabled;
Expand Down
5 changes: 5 additions & 0 deletions Source/PBJVision.m
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@ - (BOOL)isRecording
return _flags.recording;
}

- (BOOL)isPreviewing
{
return _flags.previewRunning;
}

- (BOOL)isPaused
{
return _flags.paused;
Expand Down

0 comments on commit f807a95

Please sign in to comment.