Package com.teamdev.jxbrowser.net
Interface UserAgentData
public interface UserAgentData
Represents information about the browser and operating system of a user.
- Since:
- 8.4.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the architecture of the platform on which a given user agent is executing (e.g.default Stringbitness()Returns the bitness of the architecture of the platform on which a given user agent is executing (e.g.default List<UserAgentBrand>brands()Returns the list of brands of the user-agent.Returns the list of form factors associated with the device of the user agent.default StringReturns the full version of the user-agent (e.g.default booleanisMobile()Returns whether the user agent is running on a mobile device (e.g.default booleanisWow64()Returns whether the user agent binary is running in 32-bit mode on 64-bit Windows.default Stringmodel()Returns the model of the device on which a given user agent is executing.static UserAgentData.BuilderCreate a newUserAgentDatabuilder.default Stringplatform()Returns the platform on which a given user agent is executing (e.g.default StringReturns the platform version on which a given user agent is executing.
-
Method Details
-
newBuilder
Create a newUserAgentDatabuilder. -
brands
Returns the list of brands of the user-agent. -
formFactors
Returns the list of form factors associated with the device of the user agent. -
fullVersion
Returns the full version of the user-agent (e.g. "133.0.4472.124"). -
platform
Returns the platform on which a given user agent is executing (e.g. "Windows", "macOS", "Linux", "Android"). -
platformVersion
Returns the platform version on which a given user agent is executing. -
architecture
Returns the architecture of the platform on which a given user agent is executing (e.g. "x86", "x86_64", "ARM"). -
bitness
Returns the bitness of the architecture of the platform on which a given user agent is executing (e.g. "32", "64"). -
model
Returns the model of the device on which a given user agent is executing. -
isMobile
default boolean isMobile()Returns whether the user agent is running on a mobile device (e.g. a smartphone or tablet). -
isWow64
default boolean isWow64()Returns whether the user agent binary is running in 32-bit mode on 64-bit Windows.
-