SCPToggleBuilder
Objective-C
@interface SCPToggleBuilder : SCPBuilder <SCPToggle *>
Swift
class ToggleBuilder : SCPBuilder<Toggle>
Builder class for SCPToggle
.
-
Initializes a new instance of the
SCPToggleBuilder
class with the provided default value.Declaration
Objective-C
- (nonnull instancetype)initWithDefaultValue:(SCPToggleValue)defaultValue;
Swift
init(defaultValue: ToggleValue)
-
See
SCPToggle.title
Declaration
Objective-C
- (nonnull SCPToggleBuilder *)setTitle:(nonnull NSString *)title;
Swift
func setTitle(_ title: String) -> ToggleBuilder
-
Declaration
Objective-C
- (nonnull SCPToggleBuilder *)setStripeDescription: (nonnull NSString *)stripeDescription;
Swift
func setStripeDescription(_ stripeDescription: String) -> ToggleBuilder
-
Declaration
Objective-C
- (nonnull SCPToggleBuilder *)setDefaultValue:(SCPToggleValue)defaultValue;
Swift
func setDefaultValue(_ defaultValue: ToggleValue) -> ToggleBuilder
-
Unavailable
Use
initWithStyle
.Declaration
Objective-C
- (nonnull instancetype)init;
-
Unavailable
Use
initWithStyle
.Declaration
Objective-C
+ (nonnull instancetype)new;