Home Server Capabilities
data class HomeServerCapabilities( val canChangePassword: Boolean = true, val canChangeDisplayName: Boolean = true, val canChangeAvatar: Boolean = true, val canChange3pid: Boolean = true, val maxUploadFileSize: Long = MAX_UPLOAD_FILE_SIZE_UNKNOWN, val lastVersionIdentityServerSupported: Boolean = false, val defaultIdentityServerUrl: String? = null, val roomVersions: RoomVersionCapabilities? = null, val canUseThreading: Boolean = false, val canControlLogoutDevices: Boolean = false, val canLoginWithQrCode: Boolean = false, val canUseThreadReadReceiptsAndNotifications: Boolean = false, val canRemotelyTogglePushNotificationsOfDevices: Boolean = false, var canRedactRelatedEvents: Boolean = false, val externalAccountManagementUrl: String? = null, val authenticationIssuer: String? = null, val disableNetworkConstraint: Boolean? = null)
Content copied to clipboard
Constructors
Link copied to clipboard
fun HomeServerCapabilities( canChangePassword: Boolean = true, canChangeDisplayName: Boolean = true, canChangeAvatar: Boolean = true, canChange3pid: Boolean = true, maxUploadFileSize: Long = MAX_UPLOAD_FILE_SIZE_UNKNOWN, lastVersionIdentityServerSupported: Boolean = false, defaultIdentityServerUrl: String? = null, roomVersions: RoomVersionCapabilities? = null, canUseThreading: Boolean = false, canControlLogoutDevices: Boolean = false, canLoginWithQrCode: Boolean = false, canUseThreadReadReceiptsAndNotifications: Boolean = false, canRemotelyTogglePushNotificationsOfDevices: Boolean = false, canRedactRelatedEvents: Boolean = false, externalAccountManagementUrl: String? = null, authenticationIssuer: String? = null, disableNetworkConstraint: Boolean? = null)
Content copied to clipboard
Types
Link copied to clipboard
enum RoomCapabilitySupport : Enum<HomeServerCapabilities.RoomCapabilitySupport>
Content copied to clipboard
Functions
Link copied to clipboard
fun isFeatureSupported(feature: String): HomeServerCapabilities.RoomCapabilitySupport
Content copied to clipboard
Check if a feature is supported by the homeserver.
Link copied to clipboard
Use this method to know if you should force a version when creating a room that requires this feature. You can also use #isFeatureSupported prior to this call to check if the feature is supported and report some feedback to user.
Properties
Link copied to clipboard
Max size of file which can be uploaded to the homeserver in bytes. MAX_UPLOAD_FILE_SIZE_UNKNOWN if unknown or not retrieved yet.