CreateCardViewController

public final class CreateCardViewController : UIViewController
extension CreateCardViewController: DismissDelegate
extension CreateCardViewController: ViewDelegate
extension CreateCardViewController: ErrorDelegate

Create card view controller. Can be used to easily integrate the SDK.

  • Style customizations that will be applied to the view.

    Declaration

    Swift

    public var style: CreateCardStyle { get set }
  • Validation customizations that will be applied to the view.

    Declaration

    Swift

    public var validation: CardValidation { get set }
  • Controls if UIViewController shows a back button.

    Declaration

    Swift

    public var hasBackButton: Bool { get set }
  • Controls if UIViewController shows a close button.

    Declaration

    Swift

    public var hasCloseButton: Bool { get set }
  • Init an CreateCardViewController with the default style and without close button.

    Declaration

    Swift

    override public init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?)
  • Init an CreateCardViewController with the default style and without close button when created from Interface Builder.

    Declaration

    Swift

    public required init?(coder: NSCoder)
  • Loads an CreateCardView into the current view controller.

    Declaration

    Swift

    override public func loadView()
  • View has finished loading into the current view controller.

    Declaration

    Swift

    override public func viewDidLoad()
  • Called when the view has been fully transitioned onto the screen.

    Declaration

    Swift

    override public func viewDidAppear(_ animated: Bool)

DismissDelegate

  • Defines a method to dismiss the view.

    Declaration

    Swift

    public func dismiss()

AddCardViewDelegate

  • Called on UIView appear lifecycle event.

    Declaration

    Swift

    public func viewDidAppear(_ view: UIView)

    Parameters

    view

    current view.

  • Called on UIView disappear lifecycle event.

    Declaration

    Swift

    public func viewDidDisappear(_ view: UIView)

    Parameters

    view

    current view.

  • Called to show an error.

    Declaration

    Swift

    public func showError(with message: String)

    Parameters

    message

    error message to show.

LoadingDelegate, ErrorDelegate

  • An event occured on the SDK.

    Declaration

    Swift

    public func didHandleEvent(_ event: String, metadata: [String : String]?)

    Parameters

    event

    event name.

    metadata

    optional dictionary with details about the event that has occurred.