UAInspector v0.19.0 UAInspector View Source

UAInspector - User agent parser library

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 user agent

Parses a user agent without checking for bots

Checks if there is data to use in lookups

Reloads all databases

Link to this section Functions

Checks if a user agent is a known bot.

Link to this function

hbbtv?(ua) View Source
hbbtv?(String.t() | nil) :: false | String.t()

Checks if a user agent is a HbbTV and returns its version if so.

Parses a user agent.

Link to this function

parse_client(ua) View Source
parse_client(String.t() | nil) :: UAInspector.Result.t()

Parses a user agent without checking for bots.

Checks if there is data to use in lookups.

The check is done against all currently available internal data tables.

An empty database is any of the lookup modules considered to be "not ready".

Link to this function

reload() View Source
reload() :: :ok

Reloads all databases.