Added support to a new field additionalInfoFields

This commit is contained in:
Alexander Cerutti
2024-10-17 01:46:27 +02:00
parent 2b7be248b4
commit d871580fbf
3 changed files with 53 additions and 0 deletions

View File

@@ -20,6 +20,38 @@
],
"primaryFields": [
{ "key": "event_name", "label": "event-name", "value": "Dune" }
],
"additionalInfoFields": [
{
"key": "additionalInfo-1",
"label": "Additional Info 1",
"value": "The text to show"
},
{
"key": "additionalInfo-1",
"label": "Additional Info 2",
"value": "The text to show 2"
},
{
"key": "lineItem3",
"label": "Emergency Contact",
"value": "+1 8716 12736131",
"dataDetectorTypes": [
"PKDataDetectorTypePhoneNumber",
"used only on Watch"
]
},
{
"key": "lineItem4",
"label": "Test link",
"value": "https://apple.com",
"dataDetectorTypes": [
"PKDataDetectorTypeLink",
"used only on Watch"
],
"textAlignment": "<unused in these fields>",
"attributedValue": "<a href=\"https://apple.com\">Used literally on iPhone, used correctly on Watch</a>"
}
]
},
"semantics": {