WatchFaceColorsWireFormat


Note: As of July 10, 2024, watch faces must use the Watch Face Format in order to be installed on new watches that launch with Wear OS 5 pre-installed. Learn more about the user-facing changes in this Help Center article.

Additionally, starting in early 2025 (specific date to be announced during Q4 2024), all new watch faces published on Google Play must use the Watch Face Format.

class WatchFaceColorsWireFormat : VersionedParcelable, Parcelable


Wire format for WatchFaceColorsWireFormat.

Summary

Public constructors

WatchFaceColorsWireFormat(
    primaryColor: Int,
    secondaryColor: Int,
    tertiaryColor: Int
)

Public functions

Int
Int
Int
Int
Unit
writeToParcel(parcel: Parcel?, flags: Int)

Serializes this WatchFaceColorsWireFormat to the specified Parcel.

Constants

CREATOR

Added in 1.2.0
const val CREATORParcelable.Creator<WatchFaceColorsWireFormat!>

Public constructors

WatchFaceColorsWireFormat

Added in 1.2.0
WatchFaceColorsWireFormat(
    primaryColor: Int,
    secondaryColor: Int,
    tertiaryColor: Int
)

Public functions

describeContents

Added in 1.2.0
fun describeContents(): Int

getPrimaryColor

Added in 1.2.0
fun getPrimaryColor(): Int

getSecondaryColor

Added in 1.2.0
fun getSecondaryColor(): Int

getTertiaryColor

Added in 1.2.0
fun getTertiaryColor(): Int

writeToParcel

Added in 1.2.0
fun writeToParcel(parcel: Parcel?, flags: Int): Unit

Serializes this WatchFaceColorsWireFormat to the specified Parcel.