PSPDFBackForwardActionListDelegate
Objective-C
@protocol PSPDFBackForwardActionListDelegate <NSObject>
Swift
protocol BackForwardActionListDelegate : NSObjectProtocol
An object to handle events from a BackForwardActionList
.
Implementing one of each of the requestedBackActionExecution
and requestedForwardActionExecution
methods is required.
They are marked optional during the deprecation transitional period.
-
Should execute the provided back actions in reverse order and also call
registerAction:
to register the inverse actions.This method will become required when the deprecated variant without the
animated
parameter is removed.Declaration
Objective-C
- (void)backForwardList:(nonnull PSPDFBackForwardActionList *)list requestedBackActionExecution:(nonnull NSArray<PSPDFAction *> *)actions animated:(BOOL)animated;
Swift
optional func backForwardList(_ list: BackForwardActionList, requestedBackActionExecution actions: [PSPDFAction], animated: Bool)
-
Should execute the provided forward actions in reverse order and also call
registerAction:
to register the inverse actions.This method will become required when the deprecated variant without the
animated
parameter is removed.Declaration
Objective-C
- (void)backForwardList:(nonnull PSPDFBackForwardActionList *)list requestedForwardActionExecution:(nonnull NSArray<PSPDFAction *> *)actions animated:(BOOL)animated;
Swift
optional func backForwardList(_ list: BackForwardActionList, requestedForwardActionExecution actions: [PSPDFAction], animated: Bool)
-
Called whenever
backList
orforwardList
get updated.Declaration
Objective-C
- (void)backForwardListDidUpdate:(nonnull PSPDFBackForwardActionList *)list;
Swift
optional func backForwardListDidUpdate(_ list: BackForwardActionList)
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
backForwardList(_:requestedBackActionExecution:animated:)
instead.This method is deprecated in favor of the variant with an
animated
parameter.Declaration
Objective-C
- (void)backForwardList:(nonnull PSPDFBackForwardActionList *)list requestedBackActionExecution: (nonnull NSArray<__kindof PSPDFAction *> *)actions;
Swift
optional func backForwardList(_ list: BackForwardActionList, requestedBackActionExecution actions: [PSPDFAction])
-
Deprecated
Deprecated in PSPDFKit 4.4 for macOS. Use
backForwardList(_:requestedForwardActionExecution:animated:)
instead.This method is deprecated in favor of the variant with an
animated
parameter.Declaration
Objective-C
- (void)backForwardList:(nonnull PSPDFBackForwardActionList *)list requestedForwardActionExecution: (nonnull NSArray<__kindof PSPDFAction *> *)actions;
Swift
optional func backForwardList(_ list: BackForwardActionList, requestedForwardActionExecution actions: [PSPDFAction])