ParcelableFont

data class ParcelableFont(@FontRes val resId: Int, val weight: FontWeight = FontWeight.Normal, val style: FontStyle = FontStyle.Normal) : Parcelable

Parcelable version of Font that can be used in ParcelableUiTypography. Customizations are limited to the most important Font parameters.

Constructors

Link copied to clipboard
constructor(@FontRes resId: Int, weight: FontWeight = FontWeight.Normal, style: FontStyle = FontStyle.Normal)

Types

Link copied to clipboard
object Companion : Parceler<ParcelableFont>

Properties

Link copied to clipboard
val resId: Int

Resource ID of the font.

Link copied to clipboard

Font style. Defaults to FontStyle.Normal.

Link copied to clipboard

Font weight. Defaults to FontWeight.Normal.

Functions

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