moving and updating duplicated service function doc
This commit is contained in:
parent
b0c294b41b
commit
4f8aedb038
|
@ -28,9 +28,11 @@ import org.matrix.android.sdk.api.session.Session
|
||||||
* This interface defines methods to authenticate or to create an account to a matrix server.
|
* This interface defines methods to authenticate or to create an account to a matrix server.
|
||||||
*/
|
*/
|
||||||
interface AuthenticationService {
|
interface AuthenticationService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Request the supported login flows for this homeserver.
|
* Request the supported login flows for this homeserver.
|
||||||
* This is the first method to call to be able to get a wizard to login or to create an account
|
* This is the first method to call to be able to get a wizard to login or to create an account.
|
||||||
|
* @param homeServerConnectionConfig contains the homeserver URL to login to, a wellKnown lookup will be attempted.
|
||||||
*/
|
*/
|
||||||
suspend fun getLoginFlow(homeServerConnectionConfig: HomeServerConnectionConfig): LoginFlowResult
|
suspend fun getLoginFlow(homeServerConnectionConfig: HomeServerConnectionConfig): LoginFlowResult
|
||||||
|
|
||||||
|
|
|
@ -130,11 +130,6 @@ internal class DefaultAuthenticationService @Inject constructor(
|
||||||
?.trim { it == '/' }
|
?.trim { it == '/' }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This is the entry point of the authentication service.
|
|
||||||
* homeServerConnectionConfig contains a homeserver URL probably entered by the user, which can be a
|
|
||||||
* valid homeserver API url, the url of Element Web, or anything else.
|
|
||||||
*/
|
|
||||||
override suspend fun getLoginFlow(homeServerConnectionConfig: HomeServerConnectionConfig): LoginFlowResult {
|
override suspend fun getLoginFlow(homeServerConnectionConfig: HomeServerConnectionConfig): LoginFlowResult {
|
||||||
val result = runCatching {
|
val result = runCatching {
|
||||||
getLoginFlowInternal(homeServerConnectionConfig)
|
getLoginFlowInternal(homeServerConnectionConfig)
|
||||||
|
|
Loading…
Reference in New Issue