Server Connection View Model
ViewModel that provides two way data bindings for ServerConnectionModel Use this class to retrieve/manipulate data stored in ServerConnectionModel
See also
MVVM Architecture For more information about how this software architectural pattern works.
Constructors
An instance of the current Application
Types
Factory to initiate this ServerConnectionViewModel
Functions
Getter method that returns the hostname of the currently connected server (or "" if not connected)
Getter that returns the value of isConnectedToServer
Getter that returns the value of serverUrl
Getter that returns the value of serverUrlList
Getter that returns serverUrlList as MutableLiveData
Getter that returns serverUrl as MutableLiveData
Set the currently connected server by hostname
Starts the discover/heartbeat cycle of ServerConnectionModel
Properties
Data binding for ServerConnectionModel.isConnected
Data binding for ServerConnectionModel.isDiscovering
Data binding for ServerConnectionModel.isHeartbeating
Data binding for ServerConnectionModel.serverUrl
Data binding for ServerConnectionModel.serverUrlList