Image
JSON 表示法 |
{
"url": string,
"accessibilityText": string,
"height": integer,
"width": integer
} |
字段 |
url |
string
图片的来源网址。图片可以是 JPG、PNG 和 GIF(动画和非动画)。例如:https://www.agentx.com/logo.png 。必填。
|
accessibilityText |
string
将用于无障碍功能的图片的文字说明,例如屏幕阅读器。必填。
|
height |
integer
图片的高度(以像素为单位)。可选。
|
width |
integer
图片的宽度(以像素为单位)。可选。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-12。
[null,null,["最后更新时间 (UTC):2024-09-12。"],[[["Images are represented using JSON with fields for URL, accessibility text, height, and width."],["The `url` field specifies the image source and supports JPG, PNG, and GIF formats."],["`accessibilityText` provides a description for screen readers and is required for all images."],["Optional `height` and `width` fields can be used to specify the image dimensions in pixels."]]],["The provided content details the JSON representation of an image. It includes a `url` (string) specifying the image's source, which must be a JPG, PNG, or GIF. An `accessibilityText` (string) is required for screen readers. Optional fields include `height` and `width` (integers) to define the image dimensions in pixels. All fields are contained within a JSON object with the provided schema.\n"]]