Skip to main content

parse_device_type

Function parse_device_type 

Source
pub fn parse_device_type(user_agent: &str) -> String
Expand description

Parse device type from User-Agent string. Returns “mobile”, “tablet”, or “desktop”.