TVIScreenCapturer Class Reference

Inherits from NSObject
Conforms to TVIVideoCapturer
Declared in TVIScreenCapturer.h

Overview

TVIScreenCapturer captures content from a UIView.

  capturing

Indicates that screen capture is active.

@property (atomic, assign, readonly, getter=isCapturing) BOOL capturing

Declared In

TVIScreenCapturer.h

– initWithView:

Constructs a TVIScreenCapturer with a UIView.

- (null_unspecified instancetype)initWithView:(nonnull UIView *)view

Parameters

view

The UIView to capture content from.

Return Value

An instance of TVIScreenCapturer if creation was successful, and nil otherwise.

Discussion

TVIScreenCapturer captures the contents of a single view at 1x scale. Because this class depends on UIKit and CoreGraphics to snapshot content it does not function if the application is backgrounded. This class will not respond to TVIVideoConstraints. Instead, it will use the dimensions of the view to determine its capture size.

Declared In

TVIScreenCapturer.h

– init

Developers shouldn’t initialize this class using init.

- (null_unspecified instancetype)init

Discussion

Initialize TVIScreenCapturer with a UIView.

Declared In

TVIScreenCapturer.h