TimeDependentText
public
interface
TimeDependentText
implements
ComplicationText
| com.google.wear.services.complications.TimeDependentText |
Interface for any object that returns different text depending on the given timestamp.
Note: The preferred way to define dynamic data for complication text is to use a DynamicComplicationText. That will be the only supported way to use this data in the future.
Summary
Public methods | |
|---|---|
abstract
long
|
getNextChangeTimeMillis(long fromTime)
Returns the next time after |
abstract
boolean
|
returnsSameTextAt(long firstDateTimeMillis, long secondDateTimeMillis)
Returns true if the result of the calculation of the current text will be the same for both
|
Inherited methods | |
|---|---|
Public methods
getNextChangeTimeMillis
public abstract long getNextChangeTimeMillis (long fromTime)
Returns the next time after fromTime at which the text may change.
| Parameters | |
|---|---|
fromTime |
long |
| Returns | |
|---|---|
long |
|
returnsSameTextAt
public abstract boolean returnsSameTextAt (long firstDateTimeMillis,
long secondDateTimeMillis)Returns true if the result of the calculation of the current text will be the same for both
firstDateTimeMillis and secondDateTimeMillis.
| Parameters | |
|---|---|
firstDateTimeMillis |
long |
secondDateTimeMillis |
long |
| Returns | |
|---|---|
boolean |
|