AppLinkData
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
字段 |
androidAppLinkInfo |
object (AppLinkInfo )
有关合作伙伴应用链接的可选信息。
|
iosAppLinkInfo (deprecated) |
object (AppLinkInfo )
已弃用。不支持用于打开 iOS 应用的链接。
|
webAppLinkInfo |
object (AppLinkInfo )
有关合作伙伴网站链接的可选信息。
|
displayText |
object (LocalizedString )
应用链接按钮的可选显示文本。字符数限制为 30 个。
|
AppLinkInfo
字段 |
appLogoImage (deprecated) |
object (Image )
已弃用。应用链接模块不支持图片。
|
title (deprecated) |
object (LocalizedString )
已弃用。应用链接模块不支持标题。
|
description (deprecated) |
object (LocalizedString )
已弃用。应用链接模块不支持说明。
|
appTarget |
object (AppTarget )
在客户端上打开应用链接时要前往的目标。合作伙伴将使用它来打开其应用或网页。
|
AppTarget
JSON 表示法 |
{
// Union field target can be only one of the following:
"targetUri": {
object (Uri )
},
"packageName": string
// End of list of possible types for union field target .
} |
字段 |
联合字段 target 。 target 只能是下列其中一项:
|
targetUri |
object (Uri )
AppTarget 的 URI。必须设置 URI 的说明。如果为应用定义了此目标,请改为设置 package 字段。
|
packageName |
string
AppTarget 的软件包名称。例如:com.google.android.gm
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eAppLinkData objects contain information about app links for Android, iOS, and web apps, along with display text.\u003c/p\u003e\n"],["\u003cp\u003eAppLinkInfo objects, while largely deprecated, can define targets for opening app links.\u003c/p\u003e\n"],["\u003cp\u003eAppTarget objects specify either a URI or package name as the target for the app link.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edisplayText\u003c/code\u003e field within AppLinkData allows for customization of the app link button's text, with a 30-character limit.\u003c/p\u003e\n"],["\u003cp\u003eApp link functionality enables integration with external apps or web pages directly from Google Wallet passes.\u003c/p\u003e\n"]]],["The core content describes data structures for app links, including `JSON representation`, `AppLinkInfo`, and `AppTarget`. `AppLinkInfo` contains information for Android and web app links, with `displayText`. `AppLinkInfo` further specifies `appTarget`, which defines how to open the link, via either a `targetUri` or `packageName`. Several fields, such as `iosAppLinkInfo`, `appLogoImage`, `title`, and `description`, are deprecated. `target` is a union field with either `targetUri` or `packageName`.\n"],null,["# AppLinkData\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [AppLinkInfo](#AppLinkInfo)\n - [JSON representation](#AppLinkInfo.SCHEMA_REPRESENTATION)\n- [AppTarget](#AppTarget)\n - [JSON representation](#AppTarget.SCHEMA_REPRESENTATION)\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"androidAppLinkInfo\": { object (/wallet/reference/rest/v1/AppLinkData#AppLinkInfo) }, \"iosAppLinkInfo\": { object (/wallet/reference/rest/v1/AppLinkData#AppLinkInfo) }, \"webAppLinkInfo\": { object (/wallet/reference/rest/v1/AppLinkData#AppLinkInfo) }, \"displayText\": { object (/wallet/reference/rest/v1/LocalizedString) } } ``` |\n\n| Fields ||\n|-----------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `androidAppLinkInfo` | `object (`[AppLinkInfo](/wallet/reference/rest/v1/AppLinkData#AppLinkInfo)`)` Optional information about the partner app link. |\n| `iosAppLinkInfo` **(deprecated)** | `object (`[AppLinkInfo](/wallet/reference/rest/v1/AppLinkData#AppLinkInfo)`)` | This item is deprecated! Deprecated. Links to open iOS apps are not supported. |\n| `webAppLinkInfo` | `object (`[AppLinkInfo](/wallet/reference/rest/v1/AppLinkData#AppLinkInfo)`)` Optional information about the partner web link. |\n| `displayText` | `object (`[LocalizedString](/wallet/reference/rest/v1/LocalizedString)`)` Optional display text for the app link button. Character limit is 30. |\n\nAppLinkInfo\n-----------\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"appLogoImage\": { object (/wallet/reference/rest/v1/Image) }, \"title\": { object (/wallet/reference/rest/v1/LocalizedString) }, \"description\": { object (/wallet/reference/rest/v1/LocalizedString) }, \"appTarget\": { object (/wallet/reference/rest/v1/AppLinkData#AppTarget) } } ``` |\n\n| Fields ||\n|---------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `appLogoImage` **(deprecated)** | `object (`[Image](/wallet/reference/rest/v1/Image)`)` | This item is deprecated! Deprecated. Image isn't supported in the app link module. |\n| `title` **(deprecated)** | `object (`[LocalizedString](/wallet/reference/rest/v1/LocalizedString)`)` | This item is deprecated! Deprecated. Title isn't supported in the app link module. |\n| `description` **(deprecated)** | `object (`[LocalizedString](/wallet/reference/rest/v1/LocalizedString)`)` | This item is deprecated! Deprecated. Description isn't supported in the app link module. |\n| `appTarget` | `object (`[AppTarget](/wallet/reference/rest/v1/AppLinkData#AppTarget)`)` Target to follow when opening the app link on clients. It will be used by partners to open their app or webpage. |\n\nAppTarget\n---------\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `target` can be only one of the following: \"targetUri\": { object (/wallet/reference/rest/v1/Uri) }, \"packageName\": string // End of list of possible types for union field `target`. } ``` |\n\n| Fields ||\n|---------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `target`. `target` can be only one of the following: ||\n| `targetUri` | `object (`[Uri](/wallet/reference/rest/v1/Uri)`)` URI for AppTarget. The description on the URI must be set. Prefer setting package field instead, if this target is defined for your application. |\n| `packageName` | `string` Package name for AppTarget. For example: com.google.android.gm |"]]