BrowserCollector

public class BrowserCollector : DeviceCollector, @unchecked Sendable

Collector for browser user agent information.

This collector retrieves the user agent string from the device’s WebKit engine, which provides information about the browser, device, and system version that web applications would see when making requests.

  • Declaration

    Swift

    public typealias DataType = BrowserInfo
  • key

    Unique identifier for browser information data

    Declaration

    Swift

    public let key: String
  • collect() Asynchronous

    Collects browser user agent information

    Declaration

    Swift

    public func collect() async -> BrowserInfo?

    Return Value

    BrowserInfo containing the user agent string

  • Initializes a new instance

    Declaration

    Swift

    public init()