Click or drag to resize

MobileDeviceServicesUpdateGenericDevice Method


Updates Generic Device information. Generic Device is the fall back emulation for all mobile devices that can be detected as mobile, but cannot obtain the resolution information. Setting up the resolution for Generic Device will allow testing of Preview on these unknown mobile devices.

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax
public XHRServiceResponseGeneric<ScreenSize> UpdateGenericDevice(
	ScreenSize data
)

Parameters

data
Type: ScreenSize

The screen size of Generic Mobile Device

Examples
Sample JSON input
JavaScript
{
    "data": {
        "ScreenWidth": 240,
        "ScreenHeight": 320
    }
}

Return Value

Type: XHRServiceResponseGenericScreenSize

Updated Generic Device resolution

Examples
Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "ScreenHeight": 320,
        "ScreenWidth": 240
    }
}
See Also