Home Reference Source
public class | source

Device

A static class which is used to get device information

Static Method Summary

Static Public Methods
public static

Returns true if the device is a desktop

public static

Returns true if the device is a mobile device

public static

Returns the device name

Static Public Methods

public static isDesktop(): Boolean source

Returns true if the device is a desktop

Return:

Boolean

public static isMobile(): Boolean source

Returns true if the device is a mobile device

Return:

Boolean

public static type(): String source

Returns the device name

Return:

String