Sometimes it's useful to get detect type of device on backend to be able use appropriate logic in code (blocks, templates) for different views (desktop, mobile).
There is Mobile_Detect (https://github.com/serbanghita/Mobile-Detect) a lightweight PHP class for detecting devices.
Would it be possible include this library in some next releases providing relevant methods of calling it?