4

モバイルデバイスを電話またはタブレットとして判別する方法を見つけようとしています。51Degree.mobi (http://51degrees.codeplex.com/) の C# ライブラリを使用しています。Browser オブジェクトに IsMobileDevice プロパティが既に存在することがわかりました。モバイル デバイスであるかどうかはわかりますが、別のプロパティ IsTablet (またはそれを把握する他の方法) を探しています。画面サイズに基づいてその決定を下すことができると思いますが、それは確実ではないようです.

4

2 に答える 2

7

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

于 2012-03-27T12:09:29.120 に答える
1

web.config 内で構成可能です。is_tablet チェックを使用して、次のように記述します。

<location name="tablet" url="/Tablet/Tablet.aspx">
   <add property="is_tablet" matchExpression="true"/>
</location>

完全なガイドについては、 http : //51degrees.mobi/Support/Documentation/Foundation/UserGuide.aspxを参照してください。

于 2011-04-07T02:03:37.873 に答える