Devices

object Devices(source)

Functions

Link copied to clipboard
fun browser(userAgent: String): String

The engine, its major version and the OS family read from a browser's user agent.

Link copied to clipboard
fun id(host: Host, runtime: String? = null): String
Link copied to clipboard
suspend fun measure(dataset: Dataset, host: Host = systemHost(), runtime: String? = null, progress: (Int, Int) -> Unit = { _, _ -> }): Device

Each probe runs off the caller's thread where there is one, and progress is called on the caller's thread after each; the yield lets a single-threaded caller draw in between.

Link copied to clipboard
fun measurer(runtime: String? = null): DeviceMeasure
Link copied to clipboard
fun of(label: String, transcript: String, dataset: Dataset): Device