ParcelableTextStyle

data class ParcelableTextStyle(val fontFamily: List<ParcelableFont>? = null, val fontWeight: FontWeight? = null, val fontSize: TextUnit? = null, val lineHeight: TextUnit? = null) : Parcelable

Parcelable version of TextStyle that can be used in ParcelableUiTypography. Customizations are limited to the most important TextStyle parameters. Font family is represented as a list of ParcelableFont objects.

Constructors

Link copied to clipboard
constructor(fontFamily: List<ParcelableFont>? = null, fontWeight: FontWeight? = null, fontSize: TextUnit? = null, lineHeight: TextUnit? = null)

Types

Link copied to clipboard
object Companion : Parceler<ParcelableTextStyle>

Properties

Link copied to clipboard

List of ParcelableFont objects representing the font family. Defaults to null.

Link copied to clipboard
val fontSize: TextUnit? = null

Font size. Defaults to null.

Link copied to clipboard
val fontWeight: FontWeight? = null

Font weight. Defaults to null.

Link copied to clipboard
val lineHeight: TextUnit? = null

Line height. Defaults to null.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
Link copied to clipboard
open override fun ParcelableTextStyle.write(parcel: Parcel, flags: Int)
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)