WellknownResult

sealed class WellknownResult

Ref: https://matrix.org/docs/spec/client_server/latest#well-known-uri

Types

Link copied to clipboard
object FailError : WellknownResult

Inform the user that auto-discovery did not return any usable URLs. Do not continue further with the current login process. At this point, valid data was obtained, but no homeserver is available to serve the client. No further guess should be attempted and the user should make a conscientious decision what to do next.

Link copied to clipboard
data class FailPrompt(val homeServerUrl: String?, val wellKnown: WellKnown?) : WellknownResult

Inform the user that auto-discovery failed due to invalid/empty data and PROMPT for the parameter.

Link copied to clipboard
object Ignore : WellknownResult

Stop the current auto-discovery mechanism. If no more auto-discovery mechanisms are available, then the client may use other methods of determining the required parameters, such as prompting the user, or using default values.

Link copied to clipboard
data class Prompt(    val homeServerUrl: String,     val identityServerUrl: String?,     val wellKnown: WellKnown) : WellknownResult

Retrieve the specific piece of information from the user in a way which fits within the existing client user experience, if the client is inclined to do so. Failure can take place instead if no good user experience for this is possible at this point.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard