SCPBuilder
Objective-C
@interface SCPBuilder<__covariant T> : NSObject
Swift
class SCPBuilder<T> : NSObject where T : AnyObject
Base class for all builders. Defines the build
method that all builders must implement.
-
Declaration
Objective-C
- (nullable T)build:(NSError *_Nullable *_Nullable)error;
Swift
func build() throws -> T
Parameters
error
Error out-parameter in the
SCPErrorDomain
.Return Value
A new instance of the object with the attributes set. If any fields are invalid, returns
nil
and populates the reason in theerror
out-parameter.