public static class StitchAppClientConfiguration.Builder extends StitchClientConfiguration.Builder
StitchAppClientConfigurationobject.| 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, getTransportpublic 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.BuilderbaseUrl - the base URL of the Stitch server that the client will communicate with.public StitchAppClientConfiguration.Builder withStorage(Storage storage)
withStorage in class StitchClientConfiguration.Builderstorage - the underlying storage for Stitch to persist client specific data to.public StitchAppClientConfiguration.Builder withDataDirectory(String dataDirectory)
withDataDirectory in class StitchClientConfiguration.BuilderdataDirectory - 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.Buildertransport - 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.BuilderdefaultRequestTimeout - 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.BuildercodecRegistry - 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.BuildernetworkMonitor - the NetworkMonitor that the client will use check internet
status.public StitchAppClientConfiguration build()
StitchAppClientConfiguration.build in class StitchClientConfiguration.BuilderStitchAppClientConfiguration.