interface AndroidStringFormatter<T : Any!> : Contextable
Format data using strings from android resources.
abstract fun format(input: T): String!
Format data. |
abstract fun getContext(): Context?
Returns associated context object. |
open class TimeLengthFormatter : AndroidStringFormatter<Long!>
Format seconds to more readable format for humans. - 59s to 59 s - 62s to 1 min 2 s |