Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tablet vs phone detection with 51degrees.mobi

I am trying to find a way to determine a mobile device as a phone or a tablet. I am using the C# library by 51Degree.mobi (http://51degrees.codeplex.com/). I see that the there is already a IsMobileDevice property on the Browser object so I know whether it is a mobile device or not but now I am looking for another property IsTablet (or some other way to figure out that). I suppose I can base that decision on the screen size, but that doesn't seem solid.

like image 505
codelove Avatar asked Feb 25 '23 14:02

codelove


1 Answers

For anyone stumbling across this in the future, it may be worth bearing in mind that the current (March 2012) version doesn't expose a IsTabletDevice property unless you have the premium version.

Reference: http://51degrees.mobi/Products/DeviceData/PropertyDictionary.aspx

like image 129
Jag Avatar answered Mar 07 '23 04:03

Jag