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.6.492
Syntax
public XHRServiceResponseGeneric<ScreenSize> UpdateGenericDevice(
	ScreenSize data
)

Parameters

data  ScreenSize

The screen size of Generic Mobile Device

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

Return Value

XHRServiceResponseGenericScreenSize

Updated Generic Device resolution

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