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

NoDataComplicationData

class NoDataComplicationData : ComplicationData
kotlin.Any
   ↳ androidx.wear.complications.data.ComplicationData
   ↳ androidx.wear.complications.data.NoDataComplicationData

Type that can be sent by any provider, regardless of the configured type, when the provider has no data to be displayed. Watch faces may choose whether to render this in some way or leave the slot empty.

Summary

Public constructors

Type that can be sent by any provider, regardless of the configured type, when the provider has no data to be displayed.

Public methods
WireComplicationData

Converts this value to WireComplicationData object used for serialization.

Inherited functions
Companion properties
ComplicationType

The ComplicationType corresponding to objects of this type.

Inherited properties

Public constructors

<init>

NoDataComplicationData()

Type that can be sent by any provider, regardless of the configured type, when the provider has no data to be displayed. Watch faces may choose whether to render this in some way or leave the slot empty.

Public methods

asWireComplicationData

fun asWireComplicationData(): WireComplicationData

Converts this value to WireComplicationData object used for serialization.

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

Companion properties

TYPE

val TYPE: ComplicationType

The ComplicationType corresponding to objects of this type.