PSPDFMultimediaViewController

Objective-C

@protocol PSPDFMultimediaViewController <NSObject>

Swift

protocol MultimediaViewController : NSObjectProtocol

A protocol that defines the interface that multimedia view controller plugins must conform to.

Warning

The class that implements this protocol must be a UIViewController subclass!
  • Indicates if the controller is currently in fullscreen mode or changes the state.

    Declaration

    Objective-C

    @property (nonatomic, getter=isFullscreen) BOOL fullscreen;

    Swift

    var isFullscreen: Bool { get set }
  • Specifies whether the receiver is visible. In regular operation, this will be set by its owner. There are cases where-in you might want to alter behaviour based on the receiver’s visibility.

    Declaration

    Objective-C

    @property (nonatomic, getter=isVisible) BOOL visible;

    Swift

    var isVisible: Bool { get set }
  • Toggle fullscreen presentation, optionally animated

    Declaration

    Objective-C

    - (void)setFullscreen:(BOOL)fullscreen animated:(BOOL)animated;

    Swift

    func setFullscreen(_ fullscreen: Bool, animated: Bool)
  • The zoom scale at which the controller is presented.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat zoomScale;

    Swift

    var zoomScale: CGFloat { get set }
  • The delegate that can be used to override classes.

    Declaration

    Objective-C

    @property (nonatomic, weak) id _Nullable overrideDelegate;

    Swift

    weak var overrideDelegate: AnyObject? { get set }
  • Called when a multimedia action (either PSPDFRenditionAction or PSPDFRichMediaExecuteAction) should be performed.

    Declaration

    Objective-C

    - (void)performAction:(nonnull PSPDFAction *)action;

    Swift

    func perform(_ action: PSPDFAction)
  • Configures the controller with the given PDFConfiguration.

    Declaration

    Objective-C

    - (void)configure:(nonnull PSPDFConfiguration *)configuration;

    Swift

    optional func configure(_ configuration: PSPDFConfiguration)