public static class StitchAppClientConfiguration.Builder extends StitchClientConfiguration.Builder
StitchAppClientConfiguration
object.Constructor and Description |
---|
Builder()
Constructs a new builder.
|
Modifier and Type | Method and Description |
---|---|
StitchAppClientConfiguration |
build()
Builds the
StitchAppClientConfiguration . |
String |
getLocalAppName()
Gets the name of the local application.
|
String |
getLocalAppVersion()
Gets the current version of the local application.
|
StitchAppClientConfiguration.Builder |
withBaseUrl(String baseUrl)
Sets the base URL of the Stitch server that the client will communicate with to retrieve
application metadata.
|
StitchAppClientConfiguration.Builder |
withCodecRegistry(CodecRegistry codecRegistry)
Merges the provided codec registry with the default codec registry.
|
StitchAppClientConfiguration.Builder |
withDataDirectory(String dataDirectory)
Sets the local directory in which Stitch can store any data (e.g.
|
StitchAppClientConfiguration.Builder |
withDefaultRequestTimeout(Long defaultRequestTimeout)
Sets the number of milliseconds that a `Transport` should spend by default on an HTTP round
trip before failing with an error.
|
StitchAppClientConfiguration.Builder |
withLocalAppName(String localAppName)
Sets the name of the local application.
|
StitchAppClientConfiguration.Builder |
withLocalAppVersion(String localAppVersion)
Sets the current version of the local application.
|
StitchAppClientConfiguration.Builder |
withNetworkMonitor(NetworkMonitor networkMonitor)
Sets the
NetworkMonitor that the client will used to check internet status. |
StitchAppClientConfiguration.Builder |
withStorage(Storage storage)
Sets the underlying storage for Stitch to persist client specific data to.
|
StitchAppClientConfiguration.Builder |
withTransport(Transport transport)
Sets the
Transport that the client will use to make round trips to the Stitch server. |
getBaseUrl, getCodecRegistry, getDataDirectory, getDefaultRequestTimeout, getNetworkMonitor, getStorage, getTransport
public StitchAppClientConfiguration.Builder withLocalAppName(String localAppName)
localAppName
- the name of the local application.public StitchAppClientConfiguration.Builder withLocalAppVersion(String localAppVersion)
localAppVersion
- the current version of the local application.public String getLocalAppName()
public String getLocalAppVersion()
public StitchAppClientConfiguration.Builder withBaseUrl(String baseUrl)
withBaseUrl
in class StitchClientConfiguration.Builder
baseUrl
- the base URL of the Stitch server that the client will communicate with.public StitchAppClientConfiguration.Builder withStorage(Storage storage)
withStorage
in class StitchClientConfiguration.Builder
storage
- the underlying storage for Stitch to persist client specific data to.public StitchAppClientConfiguration.Builder withDataDirectory(String dataDirectory)
withDataDirectory
in class StitchClientConfiguration.Builder
dataDirectory
- the local directory in which Stitch can store any data.public StitchAppClientConfiguration.Builder withTransport(Transport transport)
Transport
that the client will use to make round trips to the Stitch server.withTransport
in class StitchClientConfiguration.Builder
transport
- the Transport
that the client will use to make round trips to
the Stitch server.public StitchAppClientConfiguration.Builder withDefaultRequestTimeout(Long defaultRequestTimeout)
withDefaultRequestTimeout
in class StitchClientConfiguration.Builder
defaultRequestTimeout
- the number of milliseconds that a `Transport` should spend by
default on an HTTP round trip before failing with an error.public StitchAppClientConfiguration.Builder withCodecRegistry(CodecRegistry codecRegistry)
withCodecRegistry
in class StitchClientConfiguration.Builder
codecRegistry
- the codec registry to merge with the default registry.public StitchAppClientConfiguration.Builder withNetworkMonitor(NetworkMonitor networkMonitor)
NetworkMonitor
that the client will used to check internet status.withNetworkMonitor
in class StitchClientConfiguration.Builder
networkMonitor
- the NetworkMonitor
that the client will use check internet
status.public StitchAppClientConfiguration build()
StitchAppClientConfiguration
.build
in class StitchClientConfiguration.Builder
StitchAppClientConfiguration
.