TimeFormatComplicationText

public final class TimeFormatComplicationText implements ComplicationText


A ComplicationText that shows a formatted time.

Summary

Inherited methods

From class ComplicationText
@NonNull Instant

Returns the next time after afterInstant at which the text may change.

@NonNull CharSequence
getTextAt(@NonNull Resources resources, @NonNull Instant instant)

Returns the text that should be displayed for the given timestamp.

boolean
boolean
returnsSameText(
    @NonNull Instant firstInstant,
    @NonNull Instant secondInstant
)

Returns true if the result of getTextAt will be the same for both firstInstant and secondInstant.