getRegistrationFlow

abstract suspend fun getRegistrationFlow(): RegistrationResult

Call this method to get the possible registration flow of the current homeserver. It can be useful to ensure that your application implementation supports all the stages required to create an account. If it is not the case, you will have to use the web fallback to let the user create an account with your application. See org.matrix.android.sdk.api.auth.AuthenticationService.getFallbackUrl