public static class ApiConnection.Companion
Contains static methods of the class
Modifier and Type | Method and Description |
---|---|
ApiConnection |
loadStored(BaseActivity context)
Loads a previously stored API connection
|
ApiConnection |
login(java.lang.String username,
java.lang.String password,
java.lang.String serverUrl)
Allows initializing an ApiConnection object using username and password
|
public ApiConnection loadStored(BaseActivity context)
Loads a previously stored API connection
context
- : The context in from which to get the shared preferencespublic ApiConnection login(java.lang.String username, java.lang.String password, java.lang.String serverUrl)
Allows initializing an ApiConnection object using username and password
username
- : The username to usepassword
- : The password to use