WellKnown

@JsonClass(generateAdapter = true)
data class WellKnown(    @Json(name = "m.homeserver") val homeServer: WellKnownBaseConfig? = null,     @Json(name = "m.identity_server") val identityServer: WellKnownBaseConfig? = null,     @Json(name = "m.integrations") val integrations: JsonDict? = null,     @Json(name = "org.matrix.msc2965.authentication") val unstableDelegatedAuthConfig: DelegatedAuthConfig? = null,     @Json(name = "io.element.disable_network_constraint") val disableNetworkConstraint: Boolean? = null)

https://matrix.org/docs/spec/client_server/r0.4.0.html#server-discovery

{
     "m.homeserver": {
         "base_url": "https://matrix.org"
     },
     "m.identity_server": {
         "base_url": "https://vector.im"
     }
     "m.integrations": {
          "managers": [
              {
                  "api_url": "https://integrations.example.org",
                  "ui_url": "https://integrations.example.org/ui"
              },
              {
                  "api_url": "https://bots.example.org"
              }
          ]
    }
}

.

Constructors

Link copied to clipboard
fun WellKnown(    @Json(name = "m.homeserver") homeServer: WellKnownBaseConfig? = null,     @Json(name = "m.identity_server") identityServer: WellKnownBaseConfig? = null,     @Json(name = "m.integrations") integrations: JsonDict? = null,     @Json(name = "org.matrix.msc2965.authentication") unstableDelegatedAuthConfig: DelegatedAuthConfig? = null,     @Json(name = "io.element.disable_network_constraint") disableNetworkConstraint: Boolean? = null)

Properties

Link copied to clipboard
val disableNetworkConstraint: Boolean? = null

If set to true, the SDK will not use the network constraint when configuring Worker for the WorkManager.

Link copied to clipboard
val homeServer: WellKnownBaseConfig? = null
Link copied to clipboard
val identityServer: WellKnownBaseConfig? = null
Link copied to clipboard
val integrations: JsonDict? = null
Link copied to clipboard
val unstableDelegatedAuthConfig: DelegatedAuthConfig? = null

For delegation of auth via OIDC as per MSC2965.