StitchAppClientConfigurationBuilder

public class StitchAppClientConfigurationBuilder : StitchClientConfigurationBuilder

A builder that can build a StitchAppClientConfiguration object. Use this class to prepare a builder to pass into client initialization methods on the Stitch utility class.

  • Undocumented

    Declaration

    Swift

    public internal(set) var localAppName: String? {
      get
      }
  • Undocumented

    Declaration

    Swift

    public internal(set) var localAppVersion: String? {
      get
      }
  • Sets the base URL of the Stitch server that the client will communicate with.

    Declaration

    Swift

    @discardableResult
    public override func with(baseURL: String) -> Self
  • Sets the local directory in which Stitch can store any data (e.g. embedded MongoDB data directory).

    Declaration

    Swift

    @discardableResult
    public override func with(dataDirectory: URL) -> Self
  • Sets the underlying storage for authentication info.

    Declaration

    Swift

    @discardableResult
    public override func with(storage: Storage) -> Self
  • Sets the Transport that the client will use to make HTTP round trips to the Stitch server.

    Declaration

    Swift

    @discardableResult
    public override func with(transport: Transport) -> Self
  • Sets the number of seconds that a Transport should spend by default on an HTTP round trip before failing with an error.

    Important

    If a request timeout was specified for a specific operation, for example in a function call, that timeout will override this one.

    Declaration

    Swift

    @discardableResult
    public override func with(defaultRequestTimeout: TimeInterval) -> Self
  • Sets the name of the local application.

    Declaration

    Swift

    @discardableResult
    public func with(localAppName: String) -> Self
  • Sets he current version of the local application.

    Declaration

    Swift

    @discardableResult
    public func with(localAppVersion: String) -> Self
  • Builds a StitchAppClientConfiguration with the builder’s specified settings.

    Important

    The Stitch utility class accepts a builder for its client initialization methods so that it can can add defaults for various internal properties, so in most cases you do not need to call this method.

    Declaration

    Swift

    public override func build() -> StitchAppClientConfiguration