userAgent

abstract fun userAgent(url: String? = null, isDesktop: Boolean = false): String

Provides the user agent based on a specific URL and if the website should be displayed in desktop mode or not

Return

a string with the user agent

Parameters

url

where the ua will be set

isDesktop

boolean to know if the website should be displayed in desktop mode or not