NoDataComplicationData

public final class NoDataComplicationData extends ComplicationData


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

Summary

Public fields

final @Nullable PendingIntent
final @NonNull ComplicationType
final @NonNull TimeRange

Describes when the complication should be displayed.

Public constructors

Public fields

tapAction

@Nullable
public final @Nullable PendingIntent tapAction

type

@NonNull
public final @NonNull ComplicationType type

validTimeRange

@NonNull
public final @NonNull TimeRange validTimeRange

Describes when the complication should be displayed.

Whether the complication is active and should be displayed at the given time should be checked with TimeRange.contains.

Public constructors

NoDataComplicationData

public final NoDataComplicationData()