DurationStringResolver

data class DurationStringResolver(duration: Duration) : StringResolver

A StringResolver that takes a duration and resolves that to a String representation of the duration (e.g. h:mm:ss for English) in which the hour component is only added when it is non-zero.

Constructors

Link copied to clipboard
fun DurationStringResolver(duration: Duration)
Link copied to clipboard
fun DurationStringResolver(duration: Duration)

Functions

Link copied to clipboard
open override fun get(context: Context): String

Resolves a String based on the given Context. The resulting value may differ per Context. E.g. due to differing locales.

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)