smartdevicelink / sdl_hmi

BSD 3-Clause "New" or "Revised" License
14 stars 43 forks source link

Missing WEB_VIEW Display Capabilities #686

Closed ShobhitAd closed 2 years ago

ShobhitAd commented 2 years ago

Currently, the textFields and imageFields params are missing from the display capabilites for WEB_VIEW. The following capabilities should be added for WEB_VIEW in display_capabilities.js

"WEB_VIEW": {
        "displayCapabilities": {
            ...
            "textFields": [
                {
                    "name": "templateTitle",
                    "characterSet": "UTF_8",
                    "width": 100,
                    "rows": 1
                },
                {
                    "name": "alertText1",
                    "characterSet": "UTF_8",
                    "width": 500,
                    "rows": 1
                },
                {
                    "name": "alertText2",
                    "characterSet": "UTF_8",
                    "width": 500,
                    "rows": 1
                },
                {
                    "name": "alertText3",
                    "characterSet": "UTF_8",
                    "width": 500,
                    "rows": 1
                },
                {
                    "name": "scrollableMessageBody",
                    "characterSet": "UTF_8",
                    "width": 500,
                    "rows": 1
                },
                {
                    "name": "initialInteractionText",
                    "characterSet": "UTF_8",
                    "width": 500,
                    "rows": 1
                },
                {
                    "name": "audioPassThruDisplayText1",
                    "characterSet": "UTF_8",
                    "width": 500,
                    "rows": 1
                },
                {
                    "name": "audioPassThruDisplayText2",
                    "characterSet": "UTF_8",
                    "width": 500,
                    "rows": 1
                },
                {
                    "name": "sliderHeader",
                    "characterSet": "UTF_8",
                    "width": 500,
                    "rows": 1
                },
                {
                    "name": "sliderFooter",
                    "characterSet": "UTF_8",
                    "width": 500,
                    "rows": 1
                }
            ],
            "imageFields": [
                {
                    "name": "alertIcon",
                    "imageTypeSupported": [
                        "GRAPHIC_BMP",
                        "GRAPHIC_JPEG",
                        "GRAPHIC_PNG"
                    ],
                    "imageResolution": {
                        "resolutionWidth": 105,
                        "resolutionHeight": 65
                    }
                },
                {
                    "name": "choiceImage",
                    "imageTypeSupported": [
                        "GRAPHIC_BMP",
                        "GRAPHIC_JPEG",
                        "GRAPHIC_PNG"
                    ],
                    "imageResolution": {
                        "resolutionWidth": 64,
                        "resolutionHeight": 64
                    }
                },
                {
                    "name": "choiceSecondaryImage",
                    "imageTypeSupported": [
                        "GRAPHIC_BMP",
                        "GRAPHIC_JPEG",
                        "GRAPHIC_PNG"
                    ],
                    "imageResolution": {
                        "resolutionWidth": 64,
                        "resolutionHeight": 64
                    }
                },
                {
                    "name": "cmdIcon",
                    "imageTypeSupported": [
                        "GRAPHIC_BMP",
                        "GRAPHIC_JPEG",
                        "GRAPHIC_PNG"
                    ],
                    "imageResolution": {
                        "resolutionWidth": 64,
                        "resolutionHeight": 64
                    }
                },
                {
                    "name": "subMenuIcon",
                    "imageTypeSupported": [
                      "GRAPHIC_BMP",
                      "GRAPHIC_JPEG",
                      "GRAPHIC_PNG"
                    ],
                    "imageResolution": {
                      "resolutionWidth": 64,
                      "resolutionHeight": 64
                    }
                },
                {
                    "name": "menuCommandSecondaryImage",
                    "imageTypeSupported": [
                      "GRAPHIC_BMP",
                      "GRAPHIC_JPEG",
                      "GRAPHIC_PNG"
                    ],
                    "imageResolution": {
                      "resolutionWidth": 105,
                      "resolutionHeight": 65
                    }
                  },
                  {
                    "name": "menuSubMenuSecondaryImage",
                    "imageTypeSupported": [
                      "GRAPHIC_BMP",
                      "GRAPHIC_JPEG",
                      "GRAPHIC_PNG"
                    ],
                    "imageResolution": {
                      "resolutionWidth": 105,
                      "resolutionHeight": 65
                    }
                  },
                  {
                    "name": "subtleAlertIcon",
                    "imageTypeSupported": [
                      "GRAPHIC_BMP",
                      "GRAPHIC_JPEG",
                      "GRAPHIC_PNG"
                    ],
                    "imageResolution": {
                      "resolutionWidth": 105,
                      "resolutionHeight": 65
                    }
                  }
            ],
            ...
        }
    }
ShobhitAd commented 2 years ago

Closed via https://github.com/smartdevicelink/sdl_hmi/pull/688