diff --git a/docs/reference/context/device.schema.json b/docs/reference/context/device.schema.json index 75ceb1a24b..9fe7f81eb1 100644 --- a/docs/reference/context/device.schema.json +++ b/docs/reference/context/device.schema.json @@ -73,6 +73,15 @@ "title": "Color Depth", "type": "integer", "description": "The number of colors the display is able to represent." + }, + "xdm:screenOrientation": { + "title": "Screen Orientation", + "type": "string", + "description": "The current screen orientation (\"portait\" or \"landscape\")", + "meta:enum": { + "portrait": "Portrait", + "landscape": "Landscape" + } } } } @@ -96,7 +105,8 @@ "xdm:modelNumber": "A1586", "xdm:screenHeight": 667, "xdm:screenWidth": 375, - "xdm:colorDepth": 16777216 + "xdm:colorDepth": 16777216, + "xdm:screenOrientation": "portrait" } ] } \ No newline at end of file diff --git a/docs/reference/context/device.schema.md b/docs/reference/context/device.schema.md index 219701fb2e..468ae0d489 100644 --- a/docs/reference/context/device.schema.md +++ b/docs/reference/context/device.schema.md @@ -27,7 +27,8 @@ An identified device that is an application or browser instance that is trackabl "xdm:modelNumber": "A1586", "xdm:screenHeight": 667, "xdm:screenWidth": 375, - "xdm:colorDepth": 16777216 + "xdm:colorDepth": 16777216, + "xdm:screenOrientation": "portrait" } ``` @@ -40,6 +41,7 @@ An identified device that is an application or browser instance that is trackabl | [xdm:model](#xdmmodel) | `string` | Optional | Device (this schema) | | [xdm:modelNumber](#xdmmodelnumber) | `string` | Optional | Device (this schema) | | [xdm:screenHeight](#xdmscreenheight) | `integer` | Optional | Device (this schema) | +| [xdm:screenOrientation](#xdmscreenorientation) | `string` | Optional | Device (this schema) | | [xdm:screenWidth](#xdmscreenwidth) | `integer` | Optional | Device (this schema) | | [xdm:type](#xdmtype) | `string` | Optional | Device (this schema) | | [xdm:typeID](#xdmtypeid) | `string` | Optional | Device (this schema) | @@ -146,6 +148,32 @@ The number of veritcal pixels of the device's active display in its default orie +## xdm:screenOrientation +### Screen Orientation + +The current screen orientation ("portait" or "landscape") + +`xdm:screenOrientation` +* is optional +* type: `string` +* defined in this schema + +### xdm:screenOrientation Type + + +`string` + + + +### xdm:screenOrientation Known Values +| Value | Description | +|-------|-------------| +| `portrait` | Portrait | +| `landscape` | Landscape | + + + + ## xdm:screenWidth ### Screen Width diff --git a/docs/reference/context/experienceevent-environment-details.schema.json b/docs/reference/context/experienceevent-environment-details.schema.json index fddd254f89..ef58db08ba 100644 --- a/docs/reference/context/experienceevent-environment-details.schema.json +++ b/docs/reference/context/experienceevent-environment-details.schema.json @@ -65,6 +65,18 @@ "xdm:operatingSystemVersion": "10.13", "xdm:connectionType": "cable" }, + "xdm:device": { + "xdm:typeID": "TypeIdentifier-111", + "xdm:typeIDService": "https://ns.adobe.com/xdm/external/deviceatlas", + "xdm:type": "mobile", + "xdm:manufacturer": "Apple", + "xdm:model": "iPhone 6", + "xdm:modelNumber": "A1586", + "xdm:screenHeight": 667, + "xdm:screenWidth": 375, + "xdm:colorDepth": 16777216, + "xdm:screenOrientation": "portrait" + }, "xdm:placeContext": { "xdm:localTime": "2017-09-26T15:52:25+13:00", "xdm:geo": { diff --git a/docs/reference/context/experienceevent-environment-details.schema.md b/docs/reference/context/experienceevent-environment-details.schema.md index eec3c74bf0..467859d64e 100644 --- a/docs/reference/context/experienceevent-environment-details.schema.md +++ b/docs/reference/context/experienceevent-environment-details.schema.md @@ -40,6 +40,18 @@ ExperienceEvent Environment Details. "xdm:operatingSystemVersion": "10.13", "xdm:connectionType": "cable" }, + "xdm:device": { + "xdm:typeID": "TypeIdentifier-111", + "xdm:typeIDService": "https://ns.adobe.com/xdm/external/deviceatlas", + "xdm:type": "mobile", + "xdm:manufacturer": "Apple", + "xdm:model": "iPhone 6", + "xdm:modelNumber": "A1586", + "xdm:screenHeight": 667, + "xdm:screenWidth": 375, + "xdm:colorDepth": 16777216, + "xdm:screenOrientation": "portrait" + }, "xdm:placeContext": { "xdm:localTime": "2017-09-26T15:52:25+13:00", "xdm:geo": { diff --git a/schemas/context/device.example.1.json b/schemas/context/device.example.1.json index 193086e1e1..c09119fdd0 100644 --- a/schemas/context/device.example.1.json +++ b/schemas/context/device.example.1.json @@ -7,5 +7,6 @@ "xdm:modelNumber": "A1586", "xdm:screenHeight": 667, "xdm:screenWidth": 375, - "xdm:colorDepth": 16777216 + "xdm:colorDepth": 16777216, + "xdm:screenOrientation": "portrait" } diff --git a/schemas/context/device.schema.json b/schemas/context/device.schema.json index 996d4d3263..ab8f691fdf 100644 --- a/schemas/context/device.schema.json +++ b/schemas/context/device.schema.json @@ -82,6 +82,16 @@ "type": "integer", "description": "The number of colors the display is able to represent." + }, + "xdm:screenOrientation": { + "title": "Screen Orientation", + "type": "string", + "description": + "The current screen orientation (\"portait\" or \"landscape\")", + "meta:enum": { + "portrait": "Portrait", + "landscape": "Landscape" + } } } }