TimerStat
class TimerStat : Parcelable
| kotlin.Any | |
| ↳ | android.os.health.TimerStat | 
A TimerStat object stores a count and a time.
Summary
| Inherited constants | |
|---|---|
| Public constructors | |
|---|---|
| Construct an empty TimerStat object with the count and time set to 0. | |
| Construct a TimerStat object reading the values from a  | |
| Construct a TimerStat object with the supplied count and time fields. | |
| Public methods | |
|---|---|
| Int | |
| Int | getCount()Get the count for this timer. | 
| Long | getTime()Get the time for this timer in milliseconds. | 
| Unit | Set the count for this timer. | 
| Unit | Set the time for this timer in milliseconds. | 
| Unit | writeToParcel(out: Parcel, flags: Int)Write this TimerStat object to a parcel. | 
| Properties | |
|---|---|
| static Parcelable.Creator<TimerStat!> | The CREATOR instance for use by aidl Binder interfaces. | 
Public constructors
TimerStat
TimerStat()
Construct an empty TimerStat object with the count and time set to 0.
TimerStat
TimerStat(in: Parcel!)
Construct a TimerStat object reading the values from a Parcel object.
TimerStat
TimerStat(
count: Int,
time: Long)
Construct a TimerStat object with the supplied count and time fields.
| Parameters | |
|---|---|
| count | Int: The count | 
| time | Long: The time | 
Public methods
describeContents
fun describeContents(): Int
| Return | |
|---|---|
| Int | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0orandroid.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
setTime
fun setTime(time: Long): Unit
Set the time for this timer in milliseconds.
writeToParcel
fun writeToParcel(
out: Parcel,
flags: Int
): Unit
Write this TimerStat object to a parcel.
| Parameters | |
|---|---|
| dest | The Parcel in which the object should be written. This value cannot be null. | 
| flags | Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either0or a combination ofandroid.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
Properties
CREATOR
static val CREATOR: Parcelable.Creator<TimerStat!>
The CREATOR instance for use by aidl Binder interfaces.
