Protocols

The following protocols are available globally.

  • Delegate for configuring and respodning to interactions in a calendar.

    See more

    Declaration

    Objective-C

    @protocol BPKCalendarDelegate <NSObject>

    Swift

    protocol BPKCalendarDelegate
  • Delegate for dialog for managing dialog actions.

    See more

    Declaration

    Objective-C

    @protocol BPKDialogViewDelegate <NSObject>

    Swift

    protocol BPKDialogViewDelegate
  • Delegate for responding to changes and actions in horizontal navigation.

    See more

    Declaration

    Objective-C

    @protocol BPKHorizontalNavigationDelegate <NSObject>

    Swift

    protocol BPKHorizontalNavigationDelegate : NSObjectProtocol
  • Represents a single navigation option in BPKHorizontalNavigation. For common use cases BPKHorizontalNavigationOption is provided but by implementing a custom type that conform to this protocol you can implement custom navigation items.

    Make sure you implement isEqual: from NSObject too.

    See

    BPKHorizontalNavigationItem

    See

    BPKHorizontalNavigationOption
    See more

    Declaration

    Objective-C

    @protocol BPKHorizontalNavigationOptionType <NSObject>

    Swift

    protocol BPKHorizontalNavigationOptionType : NSObjectProtocol
  • Methods for being notified when the display of a snackbar changes for example when it is dimissed.

    See more

    Declaration

    Objective-C

    @protocol BPKSnackbarDelegate

    Swift

    protocol BPKSnackbarDelegate
  • An abstract base class to define a theme that can be applied to a view hierarchy containing Backpack components. This should be subclassed to create concrete themes.

    See more

    Declaration

    Objective-C

    @protocol BPKThemeDefinition;
    

    Swift

    protocol BPKThemeDefinition