Mobile-Detect icon indicating copy to clipboard operation
Mobile-Detect copied to clipboard

Feature request: getDevice and getDeviceCategory

Open Wuschba opened this issue 3 years ago • 1 comments

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

Wuschba avatar Mar 04 '21 10:03 Wuschba

I'm looking into this, clearly it's better to have the values programatically available rather than rely on the magic methods

serbanghita avatar Mar 12 '21 10:03 serbanghita