UAInspector v0.19.0 UAInspector.Parser behaviour View Source
Parser module to call individual data parsers and aggregate the results.
Link to this section Summary
Functions
Checks if a user agent is a known bot
Checks if a user agent is a HbbTV and returns its version if so
Parses a given user agent string
Parses a user agent without checking for bots
Link to this section Functions
Link to this function
bot?(ua) View Source
Checks if a user agent is a known bot.
Link to this function
hbbtv?(ua) View Source
Checks if a user agent is a HbbTV and returns its version if so.
Link to this function
parse(ua)
View Source
parse(ua)
View Source
parse(String.t()) :: UAInspector.Result.t()
parse(String.t()) :: UAInspector.Result.t()
Parses a given user agent string.
Link to this function
parse_client(ua)
View Source
parse_client(ua)
View Source
parse_client(String.t()) :: UAInspector.Result.t()
parse_client(String.t()) :: UAInspector.Result.t()
Parses a user agent without checking for bots.
Link to this section Callbacks
Link to this callback
parse(ua) View Source
Parses information from a user agent.
Returns :unknown
if no information is not found in the database.
iex> parse("--- undetectable ---")
:unknown