class DeviceDetector::Browser

Constants

AVAILABLE_BROWSERS

github.com/matomo-org/device-detector/blob/75d88bbefb0182f9207c9f48dc39b1bc8c7cc43f/Parser/Client/Browser.php#L48-L680

BROWSER_FULL_TO_SHORT
KNOWN_BROWSER_TO_NAME
MOBILE_ONLY_BROWSERS

github.com/matomo-org/device-detector/blob/75d88bbefb0182f9207c9f48dc39b1bc8c7cc43f/Parser/Client/Browser.php#L746-L768

NAME_TO_KNOWN_BROWSERS

github.com/matomo-org/device-detector/blob/75d88bbefb0182f9207c9f48dc39b1bc8c7cc43f/Parser/Client/Browser.php#L775-L783

Public Class Methods

mobile_only_browser?(name) click to toggle source
# File lib/device_detector/browser.rb, line 684
def self.mobile_only_browser?(name)
  return true if MOBILE_ONLY_BROWSERS.include?(name)

  short = BROWSER_FULL_TO_SHORT[name]
  MOBILE_ONLY_BROWSERS.include?(short)
end