Utility to help determine what device, platform, and browser user is in

Static methods

staticandroid ():Bool

Checks if the current device has Android.

Returns:

Bool true if current device has Android OS

staticchrome ():Bool

Checks if the current browser is chrome.

Returns:

Bool true if current browser is chrome

staticdesktop ():Bool

Checks if the current device is desktop.

Returns:

Bool true if current device is desktop

staticedge ():Bool

Checks if the current browser is edge.

Returns:

Bool true if current browser is edge

staticfirefox ():Bool

Checks if the current browser is firefox.

Returns:

Bool true if current browser is firefox

staticie (version:Int):Bool

Checks if the current browser is ie.

Parameters:

version

The version number of browser.

Returns:

Bool true if current browser is ie

staticios ():Bool

Checks if the current device has ios.

Returns:

Bool true if current device is iPhone, iPad or iPod

staticmobile ():Bool

Checks if the current device is mobile.

Returns:

Bool true if current device is iPhone, iPod, Android Phone, Windows Phone, Blackberry.

staticmobileLike ():Bool

Checks if the current device is mobile or tablet.

Returns:

Bool true if current device is mobile or tablet

staticsafari ():Bool

Checks if the current browser is safari.

Returns:

Bool true if current browser is safari

statictablet ():Bool

Checks if the current device is tablet.

Returns:

Bool true if current device is iPad, Android Tablet, Windows Tablet