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 | |
---|---|
<init>() 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 | |
Boolean |
isActiveAt(dateTimeMillis: Long) Returns true if the complication is active and should be displayed at the given time. |
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
isActiveAt
fun isActiveAt(dateTimeMillis: Long): Boolean
Returns true if the complication is active and should be displayed at the given time. If this returns false, the complication should not be displayed.
This must be checked for any time for which the complication will be displayed.