Mobile-Detect
Mobile-Detect copied to clipboard
Feature request: getDevice and getDeviceCategory
Great and usefull work!
Is there already a way to get a string which device was detected? If not, it would be great to get 2 methods:
function getDevice() -> returns the device which was detected (like "iPhone", "iPad", "Samsung", "SamsungTablet" etc).
And (just for convenience): function getDeviceCategory() -> returns "mobile", "tablet" or "desktop" as a string
I'm looking into this, clearly it's better to have the values programatically available rather than rely on the magic methods