-
Notifications
You must be signed in to change notification settings - Fork 4
$.platform
public static property.
This object has follwing properties, and methods.
- Properties
- .type
- .original
- .tablet
- .mobile
- .pc
- .ipad
- .iphone
- .ipod
- .android
- .windowsphone
- .windows
- .mac
- .linux
- .x86
- .x64
- .arm
- .ia64
- .unknown
- Methods
- .initialize( string )
- .is( string )
type : string
This property has identified string of platform type.
type : string
This property has identified string of platform name.
type : boolean
Get the value indicating whether the platform is "tablet" or not.
When client is iPad or Android tablet, this property indicates true.
type : boolean
Get the value indicating whether the platform is "mobile phone" or not.
When client is Android phone, iPhone, iPod, Windows Phone, BlackBerry or Symbian,
this property indicates true.
type : boolean
Get the value indicating whether the platform is "desktop pc" or "note pc".
When client is Windows, Linux, Mac, this property indicates true.
type : boolean
Get the value indicating whether the platform is "iPad" or not.
type : boolean
Get the value indicating whether the platform is "iPhone" or not.
type : boolean
Get the value indicating whether the platform is "iPod" or not.
type : boolean
Get the value indicating whether the platform is "Android tablet", "Android mobile phone".
type : boolean
Get the value indicating whether the platform is "Window Phone" or not.
type : boolean
Get the value indicating whether the platform is "window" or not.
type : boolean
Get the value indicating whether the platform is "Macintosh" or not.
type : boolean
Get the value indicating whether the platform is "Linux" or not.
type : boolean
Get the value indicating whether the platform is 32bit OS or not.
type : boolean
Get the value indicating whether the platform is 64bit OS or not.
type : boolean
Get the value indicating whether the platform is ARM OS or not.
type : boolean
Get the value indicating whether the platform is Itanium OS or not.
type : version
Get the platform version, if can detect.
See $.browser.version.
type : boolean
Get the value indicating whether the client platform can not detect.
Initialize PlatformInfo class instance. This method set properties according to the given string.
Syntax:
private {void} initialize(
{string} useragent
)
Parameter:
-
{string}useragent
userAgent string.
Return:
-
{void}
no return value.
Get the value indicating whether the current browser is equal to the specified browser or not.
Syntax:
public {boolean} is(
{string} type
)
Parameter:
-
{string}type
Platform type string.
Return:
-
{boolean}
Whether the current platform is equal to the specified platform type.