BackgroundType

@Serializable
sealed class BackgroundType

This object describes the type of a background. Currently, it can be one of

  • BackgroundTypeFill

  • BackgroundTypeWallpaper

  • BackgroundTypePattern

  • BackgroundTypeChatTheme

Api reference

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "chat_theme")
data class ChatTheme(val themeName: String) : BackgroundType
Link copied to clipboard
@Serializable
@SerialName(value = "fill")
data class Fill(val fill: BackgroundFill, val darkThemeDimming: Int) : BackgroundType
Link copied to clipboard
@Serializable
@SerialName(value = "pattern")
data class Pattern(val document: Document, val fill: BackgroundFill, val intensity: Int, val isInverted: Boolean? = null, val isMoving: Boolean? = null) : BackgroundType
Link copied to clipboard
@Serializable
@SerialName(value = "wallpaper")
data class Wallpaper(val document: Document, val darkThemeDimming: Int, val isBlurred: Boolean? = null, val isMoving: Boolean? = null) : BackgroundType

Properties

Link copied to clipboard