Announcement Announcement Module
Collapse
No announcement yet.
Customize the mobile device list Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Customize the mobile device list

    From my understanding the user-agent is detected base on the default value in LiteDeviceResolver (final string KNOWN_MOBILE_USER_AGENT_PREFIXES/KNOWN_MOBILE_USER_AGENT_KEYWORDS/KNOWN_TABLET_USER_AGENT_KEYWORDS). Any chance we can self-define another list to add-on? Just in case there are some new device on the market...

    Thanks!

  • #2
    The LiteDeviceResolver is designed to be subclassed, which will allow you to append to or define these lists as you desire. getMobileUserAgentPrefixes(), getMobileUserAgentKeywords(), getTabletUserAgentKeywords(), and getNormalUserAgentKeywords() can all be overridden in a subclass, for example.

    Comment

    Working...
    X