PSPDFGalleryContainerView
Objective-C
@interface PSPDFGalleryContainerView : UIView <PSPDFOverridable>
Swift
class GalleryContainerView : UIView, Overridable
Used to group the error, loading and gallery view and to properly lay them out.
-
The content state.
Declaration
Objective-C
@property (nonatomic) PSPDFGalleryContainerViewContentState contentState;
Swift
var contentState: GalleryContainerView.ContentState { get set }
-
The presentation mode.
Declaration
Objective-C
@property (nonatomic) PSPDFGalleryContainerViewPresentationMode presentationMode;
Swift
var presentationMode: GalleryContainerView.PresentationMode { get set }
-
The gallery view.
Declaration
Objective-C
@property (nonatomic) PSPDFGalleryView *_Nonnull galleryView;
Swift
var galleryView: PSPDFGalleryView { get set }
-
The loading view.
Declaration
Objective-C
@property (nonatomic) UIView<PSPDFGalleryContentViewLoading> *_Nonnull loadingView;
Swift
var loadingView: UIView & GalleryContentViewLoading { get set }
-
The background view.
Declaration
Objective-C
@property (nonatomic) PSPDFGalleryEmbeddedBackgroundView *_Nonnull backgroundView;
Swift
var backgroundView: GalleryEmbeddedBackgroundView { get set }
-
The fullscreen background view.
Declaration
Objective-C
@property (nonatomic) PSPDFGalleryFullscreenBackgroundView *_Nonnull fullscreenBackgroundView;
Swift
var fullscreenBackgroundView: GalleryFullscreenBackgroundView { get set }
-
The status HUD view.
Declaration
Objective-C
@property (nonatomic) PSPDFStatusHUDView *_Nonnull statusHUDView;
Swift
var statusHUDView: PSPDFStatusHUDView { get set }
-
This view conveniently groups together the
galleryView
,loadingView
andstatusHUDView
.Declaration
Objective-C
@property (nonatomic, readonly) UIView *_Nonnull contentContainerView;
Swift
var contentContainerView: UIView { get }
-
Presents the HUD. After the given
timeout
, it will automatically be dismissed.Note
You can use a negativetimeout
to present the HUD indefinitely.Declaration
Objective-C
- (void)presentStatusHUDWithTimeout:(NSTimeInterval)timeout animated:(BOOL)animated;
Swift
func presentStatusHUD(withTimeout timeout: TimeInterval, animated: Bool)
-
Dismisses the HUD.
Declaration
Objective-C
- (void)dismissStatusHUDAnimated:(BOOL)animated;
Swift
func dismissStatusHUD(animated: Bool)