NoPermissionComplicationData

public final class NoPermissionComplicationData extends ComplicationData


Type sent by the system when the watch face does not have permission to receive complication data.

The text, title, and icon may be displayed by watch faces, but this is not required.

It is recommended that, where possible, tapping on the complication when in this state should trigger a permission request. Note this is done by androidx.wear.watchface.ComplicationSlotsManager for androidx watch faces.

Summary

Public fields

final @Nullable MonochromaticImage
final @Nullable PendingIntent
final @Nullable ComplicationText
final @Nullable ComplicationText
final @NonNull ComplicationType
final @NonNull TimeRange

Describes when the complication should be displayed.

Public fields

monochromaticImage

@Nullable
public final @Nullable MonochromaticImage monochromaticImage

tapAction

@Nullable
public final @Nullable PendingIntent tapAction

text

@Nullable
public final @Nullable ComplicationText text

title

@Nullable
public final @Nullable ComplicationText title

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.