BPKDialogView

@interface BPKDialogView : UIView <UIGestureRecognizerDelegate>

A UIView subclass that renders the Backpack Dialog. Used by BPKDialogController, but can also be used directly in rare cases.

See

BPKDialogController
  • The delegate of the view.

    Declaration

    Objective-C

    @property (nonatomic, weak) id<BPKDialogViewDelegate> _Nullable delegate;

    Swift

    weak var delegate: BPKDialogViewDelegate? { get set }
  • The style of the dialog.

    Declaration

    Objective-C

    @property (nonatomic) BPKDialogControllerStyle style;

    Swift

    var style: BPKDialogControllerStyle { get set }
  • The size of the buttons. By default this is BPKButtonSizeLarge.

    Declaration

    Objective-C

    @property (nonatomic) BPKButtonSize buttonSize;

    Swift

    var buttonSize: Int32 { get set }
  • The style of the corners of the Dialog.

    See

    BPKDialogCornerStyle

    Declaration

    Objective-C

    @property (nonatomic) BPKDialogCornerStyle cornerStyle;

    Swift

    var cornerStyle: BPKDialogCornerStyle { get set }
  • The background color of the icon view at the top

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) BPKDialogIconDefinition *iconDefinition;

    Swift

    var iconDefinition: BPKDialogIconDefinition? { get set }
  • The title to display in the view.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *title;

    Swift

    var title: String? { get set }
  • The description to display in the view.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *message;

    Swift

    var message: String? { get set }
  • Create an instance of BPKDialogView.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTitle:(NSString *_Nullable)title
                                  message:(nonnull NSString *)message
                           iconDefinition:
                               (BPKDialogIconDefinition *_Nullable)iconDefinition
                                flareView:(id)flareView;

    Swift

    init(title: String?, message: String, iconDefinition: BPKDialogIconDefinition?, flareView: Any!)

    Parameters

    title

    The title to use.

    message

    The message to use.

    iconDefinition

    the icon to show at the top of the dialog.

    flareView

    the BPKFlareView to show at the top of the dialog.

  • Add a single button action to the view. Buttons actions are rendered below the description and are layed out in the order they are added. The delegate is notified when an action is invoked.

    Declaration

    Objective-C

    - (void)addButtonAction:(nonnull BPKDialogButtonAction *)action;

    Swift

    func addButtonAction(_ action: BPKDialogButtonAction)

    Parameters

    action

    The action to add.