ds v1.1.5 DS View Source

Device Structure module.

This module defines a DS struct.

Link to this section Summary

Types

t()

UA - user agent.

Functions

Parses user agent.

Link to this section Types

Link to this type

t()

View Source
t() :: %DS{
  bot_name: String.t(),
  browser: String.t(),
  browser_version: String.t(),
  device_brand: String.t(),
  device_model: String.t(),
  device_type: String.t(),
  is_bot?: boolean(),
  is_mobile?: boolean(),
  os: String.t(),
  os_version: String.t()
}

UA - user agent.

Link to this section Functions

Link to this function

parse(ua)

View Source
parse(ua()) :: t() | nil

Parses user agent.