SaveCaptionStyle

@Serializable
@Immutable
data class SaveCaptionStyle(val foregroundColor: Int, val backgroundColor: Int, val windowColor: Int, val edgeType: @CaptionStyleCompat.EdgeType Int, val edgeColor: Int, val font: SubtitleFont? = null, val typefaceFilePath: String?, val elevation: Int, val fixedTextSize: Float?, @Px val edgeSize: Float? = null, val removeCaptions: Boolean = false, val removeBloat: Boolean = true, val upperCase: Boolean = false, val bold: Boolean = false, val italic: Boolean = false, val backgroundRadius: Float? = null, val alignment: Int? = null)(source)

Constructors

Link copied to clipboard
constructor(foregroundColor: Int, backgroundColor: Int, windowColor: Int, edgeType: @CaptionStyleCompat.EdgeType Int, edgeColor: Int, font: SubtitleFont? = null, typefaceFilePath: String?, elevation: Int, fixedTextSize: Float?, @Px edgeSize: Float? = null, removeCaptions: Boolean = false, removeBloat: Boolean = true, upperCase: Boolean = false, bold: Boolean = false, italic: Boolean = false, backgroundRadius: Float? = null, alignment: Int? = null)

Properties

Link copied to clipboard
@SerialName(value = "alignment")
val alignment: Int?

The SSA_ALIGNMENT

Link copied to clipboard
@SerialName(value = "backgroundColor")
val backgroundColor: Int
Link copied to clipboard
@SerialName(value = "backgroundRadius")
val backgroundRadius: Float?

in px, background radius, aka how round the background (backgroundColor) on each row is

Link copied to clipboard
@SerialName(value = "bold")
val bold: Boolean

Apply bold to the text

Link copied to clipboard
@SerialName(value = "edgeColor")
val edgeColor: Int
Link copied to clipboard
@SerialName(value = "edgeSize")
val edgeSize: Float?
Link copied to clipboard
@SerialName(value = "edgeType")
val edgeType: @CaptionStyleCompat.EdgeType Int
Link copied to clipboard
@SerialName(value = "elevation")
val elevation: Int
Link copied to clipboard
@SerialName(value = "fixedTextSize")
val fixedTextSize: Float?
Link copied to clipboard
@SerialName(value = "font")
val font: SubtitleFont?
Link copied to clipboard
@SerialName(value = "foregroundColor")
val foregroundColor: Int
Link copied to clipboard
@SerialName(value = "italic")
val italic: Boolean

Apply italic to the text

Link copied to clipboard
@SerialName(value = "removeBloat")
val removeBloat: Boolean
Link copied to clipboard
@SerialName(value = "removeCaptions")
val removeCaptions: Boolean
Link copied to clipboard
@SerialName(value = "typefaceFilePath")
val typefaceFilePath: String?
Link copied to clipboard
@SerialName(value = "upperCase")
val upperCase: Boolean

Apply caps lock to the text

Link copied to clipboard
@SerialName(value = "windowColor")
val windowColor: Int