BrowserInfo

public struct BrowserInfo : Encodable

Provides the device default browser info.

  • The device default user-agent.

    Declaration

    Swift

    public var userAgent: String?
  • Initializes a BrowserInfo instance asynchronously.

    Declaration

    Swift

    public static func initialize(completion: @escaping ((_ info: BrowserInfo?) -> Void))

    Parameters

    completion

    A call back when the BrowserInfo instance is ready or when initialization fails.