Skip to content

Commit

Permalink
#630 add screenOrientation to device
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsnyder committed Mar 25, 2019
1 parent bfd0962 commit 40d6900
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 3 deletions.
12 changes: 11 additions & 1 deletion docs/reference/context/device.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
Expand All @@ -96,7 +105,8 @@
"xdm:modelNumber": "A1586",
"xdm:screenHeight": 667,
"xdm:screenWidth": 375,
"xdm:colorDepth": 16777216
"xdm:colorDepth": 16777216,
"xdm:screenOrientation": "portrait"
}
]
}
30 changes: 29 additions & 1 deletion docs/reference/context/device.schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
```

Expand All @@ -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) |
Expand Down Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion schemas/context/device.example.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"xdm:modelNumber": "A1586",
"xdm:screenHeight": 667,
"xdm:screenWidth": 375,
"xdm:colorDepth": 16777216
"xdm:colorDepth": 16777216,
"xdm:screenOrientation": "portrait"
}
10 changes: 10 additions & 0 deletions schemas/context/device.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
Expand Down

0 comments on commit 40d6900

Please sign in to comment.