BPKDialogButtonAction
@interface BPKDialogButtonAction : NSObject
An object describing individual button actions in a
BPKDialogController or BPKDialogView. Each action
has an associated handler to invoke when the button is
tapped or otherwise triggered.
-
The style of the button.
See
BPKButtonStyleDeclaration
Objective-C
@property (nonatomic, readonly) BPKButtonStyle style;Swift
var style: Int32 { get } -
The title of the button.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull title;Swift
var title: String { get } -
The handler to invoke when the button is tapped.
Declaration
Objective-C
@property (nonatomic, strong, readonly) BPKDialogButtonActionHandler _Nonnull handler;Swift
var handler: BPKDialogButtonActionHandler { get } -
Create an instance of the class.
Declaration
Objective-C
+ (instancetype _Nonnull)actionWithTitle:(nonnull NSString *)title style:(BPKButtonStyle)style handler:(nonnull BPKDialogButtonActionHandler) handler;Swift
convenience init(title: String, style: Any!, handler: @escaping BPKDialogButtonActionHandler)Parameters
titleThe title to use.
styleThe style of the
BPKButtonto use.handlerThe handler to invoke when the button is tapped.
BPKDialogButtonAction Class Reference