WidgetContent

@JsonClass(generateAdapter = true)
data class WidgetContent(    @Json(name = "creatorUserId") val creatorUserId: String? = null,     @Json(name = "id") val id: String? = null,     @Json(name = "type") val type: String? = null,     @Json(name = "url") val url: String? = null,     @Json(name = "name") val name: String? = null,     @Json(name = "data") val data: JsonDict = emptyMap(),     @Json(name = "waitForIframeLoad") val waitForIframeLoad: Boolean = false)

Ref: https://github.com/matrix-org/matrix-doc/issues/1236

Constructors

Link copied to clipboard
fun WidgetContent(    @Json(name = "creatorUserId") creatorUserId: String? = null,     @Json(name = "id") id: String? = null,     @Json(name = "type") type: String? = null,     @Json(name = "url") url: String? = null,     @Json(name = "name") name: String? = null,     @Json(name = "data") data: JsonDict = emptyMap(),     @Json(name = "waitForIframeLoad") waitForIframeLoad: Boolean = false)

Functions

Link copied to clipboard
fun getHumanName(): String
Link copied to clipboard
fun isActive(): Boolean

Properties

Link copied to clipboard
val creatorUserId: String? = null
Link copied to clipboard
val data: JsonDict
Link copied to clipboard
val id: String? = null
Link copied to clipboard
val name: String? = null
Link copied to clipboard
val type: String? = null
Link copied to clipboard
val url: String? = null
Link copied to clipboard
val waitForIframeLoad: Boolean = false