Class StitchAppClientInfo


  • public final class StitchAppClientInfo
    extends Object
    A class providing basic information about a Stitch app client.
    • Constructor Detail

      • StitchAppClientInfo

        public StitchAppClientInfo​(String clientAppId,
                                   String dataDirectory,
                                   String localAppName,
                                   String localAppVersion,
                                   CodecRegistry codecRegistry,
                                   NetworkMonitor networkMonitor,
                                   AuthMonitor authMonitor,
                                   Dispatcher eventDispatcher)
        Constructs the StitchAppClientInfo.
        Parameters:
        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.
    • Method Detail

      • getClientAppId

        public String getClientAppId()
        Gets the client app id of the Stitch application that this client communicates with.
        Returns:
        the client app id of the Stitch application that this client communicates with.
      • getDataDirectory

        public String getDataDirectory()
        Gets the local directory in which Stitch can store any data (e.g. MongoDB Mobile data directory).
        Returns:
        the local directory in which Stitch can store any data.
      • getLocalAppName

        public String getLocalAppName()
        Gets the name of the local application.
        Returns:
        the name of the local application..
      • getLocalAppVersion

        public String getLocalAppVersion()
        Gets the current version of the local application.
        Returns:
        the current version of the local application..
      • getCodecRegistry

        public CodecRegistry getCodecRegistry()
        Returns the codec registry.
        Returns:
        the codec registry.
      • getNetworkMonitor

        public NetworkMonitor getNetworkMonitor()
        Gets the NetworkMonitor that the client will used to check internet status.
        Returns:
        the NetworkMonitor that the client will used to check internet status.
      • getAuthMonitor

        public AuthMonitor getAuthMonitor()
        Gets the AuthMonitor that the client will used to check auth status.
        Returns:
        the AuthMonitor that the client will used to check auth status.
      • getEventDispatcher

        public Dispatcher getEventDispatcher()
        Gets the Dispatcher that the client will use to send events on.
        Returns:
        the Dispatcher that the client will use to send events on.