BPKDialogScrimAction

@interface BPKDialogScrimAction : NSObject

An object describing the action to take when the scrim of a BPKDialogController is tapped by the user.

  • A block to invoke when the user taps the scrim.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) BPKDialogScrimActionHandler _Nonnull handler;

    Swift

    var handler: BPKDialogScrimActionHandler { get }
  • Whether the whole controller should be dismissed on scrim taps.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL shouldDismiss;

    Swift

    var shouldDismiss: Bool { get }
  • Create an instance of the class.

    Declaration

    Objective-C

    + (instancetype _Nonnull)actionWithHandler:
                                 (nonnull BPKDialogScrimActionHandler)handler
                                 shouldDismiss:(BOOL)shouldDismiss;

    Swift

    convenience init(handler: @escaping BPKDialogScrimActionHandler, shouldDismiss: Bool)

    Parameters

    handler

    The handler to associate with the action.

    shouldDismiss

    Wether the controller should dimiss on scrim taps.