SCPTextInputBuilder

Objective-C


@interface SCPTextInputBuilder : SCPBuilder <SCPTextInput *>

Swift

class TextInputBuilder : SCPBuilder<TextInput>

Builder class for SCPTextInput.

  • Initializes a new instance of the SCPTextInputBuilder class with the provided title.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTitle:(nonnull NSString *)title;

    Swift

    init(title: String)
  • Declaration

    Objective-C

    - (nonnull SCPTextInputBuilder *)setTitle:(nonnull NSString *)title;

    Swift

    func setTitle(_ title: String) -> TextInputBuilder
  • See

    SCPTextInput.required

    Declaration

    Objective-C

    - (nonnull SCPTextInputBuilder *)setRequired:(BOOL)required;

    Swift

    func setRequired(_ required: Bool) -> TextInputBuilder
  • Declaration

    Objective-C

    - (nonnull SCPTextInputBuilder *)setStripeDescription:
        (nonnull NSString *)stripeDescription;

    Swift

    func setStripeDescription(_ stripeDescription: String) -> TextInputBuilder
  • See

    SCPTextInput.skipButton

    Declaration

    Objective-C

    - (nonnull SCPTextInputBuilder *)setSkipButtonText:
        (nonnull NSString *)skipButtonText;

    Swift

    func setSkipButtonText(_ skipButtonText: String) -> TextInputBuilder
  • See

    SCPTextInput.submitButton

    Declaration

    Objective-C

    - (nonnull SCPTextInputBuilder *)setSubmitButtonText:
        (nonnull NSString *)submitButtonText;

    Swift

    func setSubmitButtonText(_ submitButtonText: String) -> TextInputBuilder
  • Declaration

    Objective-C

    - (nonnull SCPTextInputBuilder *)setToggles:
        (nonnull NSArray<SCPToggle *> *)toggles;

    Swift

    func setToggles(_ toggles: [Toggle]) -> TextInputBuilder
  • Unavailable

    Use initWithTitle.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Unavailable

    Use initWithTitle.

    Declaration

    Objective-C

    + (nonnull instancetype)new;