Constructor
new DeviceSelector(options)
Get the current Display and Device Type of a Browser.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | The DeviceSelector options.
Properties
|
- Source:
Methods
(static) deviceType(string) → {string|undefined}
Get the current Device Type; // Device Type.
Parameters:
Name | Type | Description |
---|---|---|
string |
string | The current Device Type. |
- Source:
Returns:
The current Device Type Name.
- Type
- string | undefined
(static) displayType(string) → {string|undefined}
Get the current Display Type.
Parameters:
Name | Type | Description |
---|---|---|
string |
string | The current Display Type. |
- Source:
Returns:
The current Display Type Name.
- Type
- string | undefined