PTToolGroupManagerDelegate

@protocol PTToolGroupManagerDelegate <NSObject>

The PTToolGroupManagerDelegate protocol allows the adopting class to respond to messages from the PTToolGroupManager class.

  • This method is called when the items in the given group should be edited.

    Declaration

    Objective-C

    - (void)toolGroupManager:(nonnull PTToolGroupManager *)toolGroupManager
           editItemsForGroup:(nonnull PTToolGroup *)group;

    Swift

    optional func toolGroupManager(_ toolGroupManager: PTToolGroupManager, editItemsFor group: PTToolGroup)

    Parameters

    toolGroupManager

    The tool group manager requesting the edit

    group

    The tool group to be edited

  • This method is called when add pages tool is selected.

    Declaration

    Objective-C

    - (void)toolGroupManager:(nonnull PTToolGroupManager *)toolGroupManager
          showAddPagesViewOn:(nonnull id)sender;

    Swift

    optional func toolGroupManager(_ toolGroupManager: PTToolGroupManager, showAddPagesViewOn sender: Any)

    Parameters

    toolGroupManager

    The tool group manager requesting the edit

    sender

    the selected bar button.

  • This method is called when an action item is selected.

    Declaration

    Objective-C

    - (void)toolGroupManager:(nonnull PTToolGroupManager *)toolGroupManager
        performActionForItem:(nonnull id)sender;

    Swift

    optional func toolGroupManager(_ toolGroupManager: PTToolGroupManager, performActionForItem sender: Any)

    Parameters

    toolGroupManager

    The tool group manager requesting the edit

    sender

    the selected bar button.