Page Summary
-
Wallet Object Messages can be displayed to users with valuable content, including a header, body, and display interval.
-
Messages can be customized with localized headers and bodies for different languages.
-
The
MessageTypedetermines how the message is rendered, with options for text display and Android notifications. -
Each message has a unique ID for management purposes, and a display interval can be set to control when it is shown.
A message that will be displayed with a Valuable
| JSON representation |
|---|
{ "kind" : string , "header" : string , "body" : string , "displayInterval" : { object ( |
| Fields | |
|---|---|
kind
|
Identifies what kind of resource this is. Value: the fixed string |
header
|
The message header. |
body
|
The message body. |
displayInterval
|
The period of time that the message will be displayed to users. You can define both a |
id
|
The ID associated with a message. This field is here to enable ease of management of messages. Notice ID values could possibly duplicate across multiple messages in the same class/instance, and care must be taken to select a reasonable ID for each message. |
localizedHeader
|
Translated strings for the message header. |
localizedBody
|
Translated strings for the message body. |
MessageType
| Enums | |
|---|---|
MESSAGE_TYPE_UNSPECIFIED
|
|
TEXT
|
Renders the message as text on the card details screen. This is the default message type. |
text
|
Legacy alias for |
EXPIRATION_NOTIFICATION
|
Note: This enum is currently not supported. |
expirationNotification
|
Legacy alias for |
TEXT_AND_NOTIFY
|
Renders the message as text on the card details screen and as an Android notification. |


