Android Studio Sign in

Status.TimerOrStopwatchPart


abstract class Status.TimerOrStopwatchPart : Status.Part

Known direct subclasses
Status.StopwatchPart

An Ongoing activity status (or part of it) representing a stopwatch

Status.TimerPart

An Ongoing activity status (or part of it) representing a timer.


Base class for TimerPart and StopwatchPart, defines the getters but can't be created directly, create one of those instead.

Summary

Public functions

Boolean
equals(obj: Any?)
Long
getNextChangeTimeMillis(fromTimeMillis: Long)

See getNextChangeTimeMillis

Long
CharSequence
getText(context: Context, timeNowMillis: Long)

See getText

Long
Long
Boolean

Determines if this has a total duration set.

Int
Boolean
Boolean

Determines if this Timer or Stopwatch is paused. i.e. the display representation will not change over time.

Public functions

equals

fun equals(obj: Any?): Boolean

getNextChangeTimeMillis

fun getNextChangeTimeMillis(fromTimeMillis: Long): Long

See getNextChangeTimeMillis

getPausedAtMillis

Added in 1.0.0
fun getPausedAtMillis(): Long
Returns
Long

the timestamp of the time when this was paused. Use isPaused to determine if this is paused or not.

getText

fun getText(context: Context, timeNowMillis: Long): CharSequence

See getText

getTimeZeroMillis

Added in 1.0.0
fun getTimeZeroMillis(): Long
Returns
Long

the time at which this Timer or Stopwatch will display 0, will usually be in the past for a stopwatch and in the future for timers.

getTotalDurationMillis

Added in 1.0.0
fun getTotalDurationMillis(): Long
Returns
Long

the total duration of this timer/stopwatch, if set. Use hasTotalDuration to determine if this has a duration set.

hasTotalDuration

Added in 1.0.0
fun hasTotalDuration(): Boolean

Determines if this has a total duration set.

Returns
Boolean

true if this the total duration was set, false if not.

hashCode

fun hashCode(): Int

isCountDown

Added in 1.0.0
fun isCountDown(): Boolean
Returns
Boolean

false if this is a stopwatch or true if this is a timer.

isPaused

Added in 1.0.0
fun isPaused(): Boolean

Determines if this Timer or Stopwatch is paused. i.e. the display representation will not change over time.

Returns
Boolean

true if this is paused, false if it's running.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.