SCPInternetConnectionConfigurationBuilder

Objective-C


@interface SCPInternetConnectionConfigurationBuilder
    : SCPBuilder <SCPInternetConnectionConfiguration *>

Swift

class InternetConnectionConfigurationBuilder : SCPBuilder<InternetConnectionConfiguration>

Use this to build SCPInternetConnectionConfiguration objects.

  • Create an InternetConnectionConfigurationBuilder with the provided delegate.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDelegate:
        (nonnull id<SCPInternetReaderDelegate>)delegate;

    Swift

    init(delegate: any InternetReaderDelegate)
  • Set the failIfInUse property for the SCPInternetConnectionConfiguration object that will be built.

    Declaration

    Objective-C

    - (nonnull SCPInternetConnectionConfigurationBuilder *)setFailIfInUse:
        (BOOL)failIfInUse;

    Swift

    func setFailIfInUse(_ failIfInUse: Bool) -> InternetConnectionConfigurationBuilder
  • Set the allowCustomerCancel property for the SCPInternetConnectionConfiguration object that will be built.

    Declaration

    Objective-C

    - (nonnull SCPInternetConnectionConfigurationBuilder *)setAllowCustomerCancel:
        (BOOL)allowCustomerCancel;

    Swift

    func setAllowCustomerCancel(_ allowCustomerCancel: Bool) -> InternetConnectionConfigurationBuilder
  • Unavailable

    Use initWithDelegate:

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Unavailable

    Use initWithDelegate:

    Declaration

    Objective-C

    + (nonnull instancetype)new;