STPCoreViewController

public class STPCoreViewController : UIViewController

This is the base class for all Stripe view controllers. It is intended for use only by Stripe classes, you should not subclass it yourself in your app. It theming, back/cancel button management, and other shared logic for Stripe view controllers.

  • A convenience initializer; equivalent to calling init(theme: STPTheme.defaultTheme).

    Declaration

    Swift

    @objc
    public convenience init()
  • Initializes a new view controller with the specified theme

    Declaration

    Swift

    @objc
    public required init(theme: STPTheme?)

    Parameters

    theme

    The theme to use to inform the view controller’s visual appearance. - seealso: STPTheme

  • Passes through to the default UIViewController behavior for this initializer, and then also sets the default theme as in init

    Declaration

    Swift

    @objc
    public required override init(
        nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?
    )
  • Passes through to the default UIViewController behavior for this initializer, and then also sets the default theme as in init

    Declaration

    Swift

    @objc
    public required init?(coder aDecoder: NSCoder)