\Pydio\Core\Utils\HttpUserAgent

Helpers to detect current User-Agent values

Summary

Methods
Properties
Constants
userAgentIsMobile()
userAgentIsIOS()
userAgentIsWindowsPhone()
userAgentIsAndroid()
userAgentIsNativePydioApp()
osFromUserAgent()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

userAgentIsMobile()

userAgentIsMobile() : boolean

Detect mobile browsers

Returns

boolean

userAgentIsIOS()

userAgentIsIOS() : boolean

Detect iOS browser

Returns

boolean

userAgentIsWindowsPhone()

userAgentIsWindowsPhone() : boolean

Detect Windows Phone

Returns

boolean

userAgentIsAndroid()

userAgentIsAndroid() : boolean

Detect Android UA

Returns

boolean

userAgentIsNativePydioApp()

userAgentIsNativePydioApp() : boolean

Detect native apps user agent values (io, android, python)

Returns

boolean

osFromUserAgent()

osFromUserAgent(null  $useragent = null) : integer|string

Parameters

null $useragent

Returns

integer|string