Google is committed to advancing racial equity for Black communities. See how.

ComplicationType

enum class ComplicationType
kotlin.Any
   ↳ kotlin.Enum<androidx.wear.complications.data.ComplicationType>
   ↳ androidx.wear.complications.data.ComplicationType

The possible complication data types.

Summary

Enum values

Public methods
Int

Converts this value to the integer value used for serialization.

Companion functions
ComplicationType
fromWireType(wireType: Int)

Converts the integer value used for serialization into a ComplicationType.

List<ComplicationType>

Converts an array of integer values used for serialization into the corresponding list of ComplicationType.

Array<ComplicationType>

Converts an array of integer values used for serialization into the corresponding array of ComplicationType.

IntArray

Converts an array of ComplicationType to an array of integers with the corresponding wire types.

Inherited extension functions
From androidx.core.util
infix Range<T>
T.rangeTo(that: T)

Creates a range from this Comparable value to that.

Enum values

BACKGROUND_IMAGE

enum val BACKGROUND_IMAGE : ComplicationType

EMPTY

enum val EMPTY : ComplicationType

LONG_TEXT

enum val LONG_TEXT : ComplicationType

MONOCHROMATIC_IMAGE

enum val MONOCHROMATIC_IMAGE : ComplicationType

NOT_CONFIGURED

enum val NOT_CONFIGURED : ComplicationType

NO_DATA

enum val NO_DATA : ComplicationType

NO_PERMISSION

enum val NO_PERMISSION : ComplicationType

RANGED_VALUE

enum val RANGED_VALUE : ComplicationType

SHORT_TEXT

enum val SHORT_TEXT : ComplicationType

SMALL_IMAGE

enum val SMALL_IMAGE : ComplicationType

Public methods

asWireComplicationType

fun asWireComplicationType(): Int

Converts this value to the integer value used for serialization.

This is only needed internally to convert to the underlying communication protocol.

Companion functions

fromWireType

@JvmStatic fun fromWireType(wireType: Int): ComplicationType

Converts the integer value used for serialization into a ComplicationType.

This is only needed internally to convert to the underlying communication protocol.

fromWireTypeList

@JvmStatic fun fromWireTypeList(types: IntArray): List<ComplicationType>

Converts an array of integer values used for serialization into the corresponding list of ComplicationType.

fromWireTypes

@JvmStatic fun fromWireTypes(types: IntArray): Array<ComplicationType>

Converts an array of integer values used for serialization into the corresponding array of ComplicationType.

This is only needed internally to convert to the underlying communication protocol.

Needed to access this conveniently in Java.

toWireTypes

@JvmStatic fun toWireTypes(types: Collection<ComplicationType>): IntArray

Converts an array of ComplicationType to an array of integers with the corresponding wire types.

This is only needed internally to convert to the underlying communication protocol.

Needed to access this conveniently in Java.