public final class StitchAppClientInfo extends Object
Constructor and Description |
---|
StitchAppClientInfo(String clientAppId,
String dataDirectory,
String localAppName,
String localAppVersion,
CodecRegistry codecRegistry,
NetworkMonitor networkMonitor,
AuthMonitor authMonitor,
Dispatcher eventDispatcher)
Constructs the
StitchAppClientInfo . |
Modifier and Type | Method and Description |
---|---|
AuthMonitor |
getAuthMonitor()
Gets the
AuthMonitor that the client will used to check auth status. |
String |
getClientAppId()
Gets the client app id of the Stitch application that this client communicates with.
|
CodecRegistry |
getCodecRegistry()
Returns the codec registry.
|
String |
getDataDirectory()
Gets the local directory in which Stitch can store any data (e.g.
|
Dispatcher |
getEventDispatcher()
Gets the
Dispatcher that the client will use to send events on. |
String |
getLocalAppName()
Gets the name of the local application.
|
String |
getLocalAppVersion()
Gets the current version of the local application.
|
NetworkMonitor |
getNetworkMonitor()
Gets the
NetworkMonitor that the client will used to check internet status. |
public StitchAppClientInfo(String clientAppId, String dataDirectory, String localAppName, String localAppVersion, CodecRegistry codecRegistry, NetworkMonitor networkMonitor, AuthMonitor authMonitor, Dispatcher eventDispatcher)
StitchAppClientInfo
.clientAppId
- the client app id of the Stitch application that this client is going to
communicate with.dataDirectory
- the local directory in which Stitch can store any data
(e.g. embedded MongoDB data directory).localAppName
- the name of the local application.localAppVersion
- the current version of the local application.codecRegistry
- the codec registry being used for encoding/decoding of JSON.networkMonitor
- the network monitor that the client will used to check internet status.authMonitor
- the auth monitor that the client will used to check auth status.eventDispatcher
- the dispatcher that the client will used to send events on.public String getClientAppId()
public String getDataDirectory()
public String getLocalAppName()
public String getLocalAppVersion()
public CodecRegistry getCodecRegistry()
public NetworkMonitor getNetworkMonitor()
NetworkMonitor
that the client will used to check internet status.NetworkMonitor
that the client will used to check internet status.public AuthMonitor getAuthMonitor()
AuthMonitor
that the client will used to check auth status.AuthMonitor
that the client will used to check auth status.public Dispatcher getEventDispatcher()
Dispatcher
that the client will use to send events on.Dispatcher
that the client will use to send events on.