Cancel
public protocol Cancel
Declare a method to add a cancelable action.
-
Add cancel action for alert and returns approvable object. The title of the action is
Cancel
.Declaration
Swift
func cancel() -> Approve & DestructiveApproveReturn Value
An approvable object.
-
Add cancel action for alert and returns approvable object.
Declaration
Swift
func cancel(title: String) -> Approve & DestructiveApproveParameters
titleThe title of the action.
Return Value
An approvable object.
-
Add cancel action for alert and returns approvable object. The title of the action is
Cancel
.Declaration
Swift
func cancel(_ handler: @escaping ((UIAlertAction) -> Void)) -> Approve & DestructiveApproveParameters
handlerA block to execute when the user selects the action.
Return Value
An approvable object.
-
Add cancel action for alert and returns approvable object.
Declaration
Swift
func cancel(title: String, handler: @escaping ((UIAlertAction) -> Void)) -> Approve & DestructiveApproveParameters
titleThe title of the action.
handlerA block to execute when the user selects the action.
Return Value
An approvable object.
View on GitHub
Install in Dash
Cancel Protocol Reference