ReadingTimeEstimator

Java‑friendly wrapper around ReadingTime.

Provides a stable API for computing reading time, word count, and image count without exposing Kotlin‑specific details or configuration types to Java.

Instances are created via the factory methods in companion object.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
@JvmName(name = "imgCount")
fun imgCount(): Int

Returns the number of images detected in the configured text.

Link copied to clipboard
@JvmName(name = "readingTime")
fun readingTime(): String

Returns the formatted reading‑time string using the configured suffixes.

Link copied to clipboard
@JvmName(name = "readingTimeInMinutes")
fun readingTimeInMinutes(): Int

Returns the estimated reading time in whole minutes.

Link copied to clipboard
@JvmName(name = "readingTimeInSeconds")
fun readingTimeInSeconds(): Double

Returns the estimated reading time in seconds.

Link copied to clipboard
@JvmName(name = "wordCount")
fun wordCount(): Int

Returns the number of words detected in the configured text.