PSPDFControllerStateHandling
Objective-C
@protocol PSPDFControllerStateHandling <NSObject>
Swift
protocol ControllerStateHandling : NSObjectProtocol
Handles state changes for a given document.
-
The document that this controller state is about.
Declaration
Objective-C
@property (nonatomic, weak) PSPDFDocument *_Nullable document;
Swift
weak var document: PSPDFDocument? { get set }
-
Updates the controller state to the passed in one.
Declaration
Objective-C
- (void)setControllerState:(PSPDFControllerState)state error:(nullable NSError *)error animated:(BOOL)animated;
Swift
func setControllerState(_ state: ControllerState, error: Error?, animated: Bool)
Parameters
state
The state to update to.
error
If the state is
PSPDFControllerStateError
, this contains the underlying error.animated
If
true
the controller state change should be animated in the UI.