NotConfiguredComplicationData

public final class NotConfiguredComplicationData extends ComplicationData


Type sent when a complication does not have a complication data source configured. The system will send data of this type to watch faces when the user has not chosen a complication data source for an active complication, and the watch face has not set a default complication data source. Complication data sources cannot send data of this type.

Summary

Public fields

static final @NonNull ComplicationType

The ComplicationType corresponding to objects of this type.

Public constructors

Public methods

@NonNull String

Inherited methods

From androidx.wear.watchface.complications.data.ComplicationData
boolean
equals(Object other)
final ComponentName

The ComponentName of the androidx.wear.watchface.complications.datasource.ComplicationDataSourceService that provided the ComplicationData.

final int

The display policy for this complication.

final ComplicationData

Used in case any dynamic value has been invalidated.

@NonNull Instant

Returns the next Instant after afterInstant at which any field of the complication may change.

final int

The persistence policy for this complication.

final PendingIntent

The PendingIntent to send when the complication is tapped on.

final boolean

tapAction which is a PendingIntent unfortunately can't be serialized.

final @NonNull ComplicationType

The ComplicationType of this complication data.

final @NonNull TimeRange

The TimeRange within which the complication should be displayed.

boolean

Returns true if any of the fields of this ComplicationData are placeholders.

int
final void
setTapActionLostDueToSerialization(
    boolean tapActionLostDueToSerialization
)

tapAction which is a PendingIntent unfortunately can't be serialized.

Public fields

TYPE

public static final @NonNull ComplicationType TYPE

The ComplicationType corresponding to objects of this type.

Public constructors

NotConfiguredComplicationData

Added in 1.0.0
public NotConfiguredComplicationData()

Public methods

toString

public @NonNull String toString()