EmptyComplicationData

public final class EmptyComplicationData extends ComplicationData


Type sent when the user has specified that an active complication should have no complication data source, i.e. when the user has chosen "Empty" in the complication data source chooser. Complication data sources cannot send data of this type.

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

EmptyComplicationData

public final EmptyComplicationData()