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
    Modifier and Type
    Interface
    Description
    static final class 
    A builder of UserAgentData.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Returns the architecture of the platform on which a given user agent is executing (e.g.
    default String
    Returns the bitness of the architecture of the platform on which a given user agent is executing (e.g.
    Returns the list of brands of the user-agent.
    default List<String>
    Returns the list of form factors associated with the device of the user agent.
    default String
    Returns the full version of the user-agent (e.g.
    default boolean
    Returns whether the user agent is running on a mobile device (e.g.
    default boolean
    Returns whether the user agent binary is running in 32-bit mode on 64-bit Windows.
    default String
    Returns the model of the device on which a given user agent is executing.
    Create a new UserAgentData builder.
    default String
    Returns the platform on which a given user agent is executing (e.g.
    default String
    Returns the platform version on which a given user agent is executing.
  • Method Details

    • newBuilder

      static UserAgentData.Builder newBuilder()
      Create a new UserAgentData builder.
    • brands

      default List<UserAgentBrand> brands()
      Returns the list of brands of the user-agent.
    • formFactors

      default List<String> formFactors()
      Returns the list of form factors associated with the device of the user agent.
    • fullVersion

      default String fullVersion()
      Returns the full version of the user-agent (e.g. "133.0.4472.124").
    • platform

      default String platform()
      Returns the platform on which a given user agent is executing (e.g. "Windows", "macOS", "Linux", "Android").
    • platformVersion

      default String platformVersion()
      Returns the platform version on which a given user agent is executing.
    • architecture

      default String architecture()
      Returns the architecture of the platform on which a given user agent is executing (e.g. "x86", "x86_64", "ARM").
    • bitness

      default String bitness()
      Returns the bitness of the architecture of the platform on which a given user agent is executing (e.g. "32", "64").
    • model

      default String 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.