PSPDFFlexibleToolbarDelegate

Objective-C

@protocol PSPDFFlexibleToolbarDelegate<NSObject>

@optional

/// The toolbar container will be displayed (called before `showToolbarAnimated:completion:` is performed).
- (void)flexibleToolbarWillShow:(PSPDFFlexibleToolbar *)toolbar;

/// The toolbar container has been displayed (called after `showToolbarAnimated:completion:` is performed).
- (void)flexibleToolbarDidShow:(PSPDFFlexibleToolbar *)toolbar;

/// The toolbar container will be hidden (called before `hideToolbarAnimated:completion:` is performed).
- (void)flexibleToolbarWillHide:(PSPDFFlexibleToolbar *)toolbar;

/// The toolbar container has ben hidden (called after `hideToolbarAnimated:completion:` is performed).
- (void)flexibleToolbarDidHide:(PSPDFFlexibleToolbar *)toolbar;

/// Called whenever the flexible toolbar changes position in response to a user drag & drop action
- (void)flexibleToolbar:(PSPDFFlexibleToolbar *)toolbar didChangePosition:(PSPDFFlexibleToolbarPosition)position;

@end

Swift

protocol FlexibleToolbarDelegate : NSObjectProtocol

Undocumented

  • The toolbar container will be displayed (called before showToolbarAnimated:completion: is performed).

    Declaration

    Objective-C

    - (void)flexibleToolbarWillShow:(nonnull PSPDFFlexibleToolbar *)toolbar;

    Swift

    optional func flexibleToolbarWillShow(_ toolbar: FlexibleToolbar)
  • The toolbar container has been displayed (called after showToolbarAnimated:completion: is performed).

    Declaration

    Objective-C

    - (void)flexibleToolbarDidShow:(nonnull PSPDFFlexibleToolbar *)toolbar;

    Swift

    optional func flexibleToolbarDidShow(_ toolbar: FlexibleToolbar)
  • The toolbar container will be hidden (called before hideToolbarAnimated:completion: is performed).

    Declaration

    Objective-C

    - (void)flexibleToolbarWillHide:(nonnull PSPDFFlexibleToolbar *)toolbar;

    Swift

    optional func flexibleToolbarWillHide(_ toolbar: FlexibleToolbar)
  • The toolbar container has ben hidden (called after hideToolbarAnimated:completion: is performed).

    Declaration

    Objective-C

    - (void)flexibleToolbarDidHide:(nonnull PSPDFFlexibleToolbar *)toolbar;

    Swift

    optional func flexibleToolbarDidHide(_ toolbar: FlexibleToolbar)
  • Called whenever the flexible toolbar changes position in response to a user drag & drop action

    Declaration

    Objective-C

    - (void)flexibleToolbar:(nonnull PSPDFFlexibleToolbar *)toolbar
          didChangePosition:(PSPDFFlexibleToolbarPosition)position;

    Swift

    optional func flexibleToolbar(_ toolbar: FlexibleToolbar, didChange position: FlexibleToolbar.Position)