TermsService

interface TermsService

Types

Link copied to clipboard
enum ServiceType : Enum<TermsService.ServiceType>

Functions

Link copied to clipboard
abstract suspend fun agreeToTerms(    serviceType: TermsService.ServiceType,     baseUrl: String,     agreedUrls: List<String>,     token: String?)
Link copied to clipboard
abstract suspend fun getHomeserverTerms(baseUrl: String): TermsResponse

Get the homeserver terms, from the register API. Will be updated once https://github.com/matrix-org/matrix-doc/pull/3012 will be implemented.

Link copied to clipboard
abstract suspend fun getTerms(serviceType: TermsService.ServiceType, baseUrl: String): GetTermsResponse