Namespace Pot.OS
Defined in: <potlite.js>.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Detect the user operating system.
|
| Field Attributes | Field Name and Description |
|---|---|
|
Android.
|
|
|
BlackBerry.
|
|
|
iPad.
|
|
|
iPhone.
|
|
|
iPod.
|
|
|
Linux.
|
|
|
Mac.
|
|
|
Represents OS as a string.
|
|
|
Windows.
|
|
|
X11.
|
Namespace Detail
Pot.OS
Detect the user operating system.
if (Pot.OS.win) {
debug('OS : ' + Pot.OS.toString());
}
Field Detail
{Boolean}
android
Android.
{Boolean}
blackberry
BlackBerry.
{Boolean}
ipad
iPad.
{Boolean}
iphone
iPhone.
{Boolean}
ipod
iPod.
{Boolean}
linux
Linux.
{Boolean}
mac
Mac.
{Function}
toString
Represents OS as a string.
{Boolean}
win
Windows.
{Boolean}
x11
X11.