NotConfiguredComplicationData
class NotConfiguredComplicationData : ComplicationData
kotlin.Any | ||
↳ | androidx.wear.complications.data.ComplicationData | |
↳ | androidx.wear.complications.data.NotConfiguredComplicationData |
Type sent when a complication does not have a provider configured. The system will send data of this type to watch faces when the user has not chosen a provider for an active complication, and the watch face has not set a default provider. Providers cannot send data of this type.
Summary
Public constructors | |
---|---|
<init>() Type sent when a complication does not have a provider configured. |
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>
NotConfiguredComplicationData()
Type sent when a complication does not have a provider configured. The system will send data of this type to watch faces when the user has not chosen a provider for an active complication, and the watch face has not set a default provider. Providers cannot send data of this type.
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.