java.lang.Object | |
↳ | com.google.android.gms.wallet.OfferWalletObject.Builder |
Builder to create a OfferWalletObject
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds an image module data image uri.
| |||||||||||
Adds a collection of image module data image uris.
| |||||||||||
Adds an info module data label value row.
| |||||||||||
Adds a collection of info module data label value rows.
| |||||||||||
Add a links module data.
| |||||||||||
Adds a collection of links module data.
| |||||||||||
Adds the location where the Wallet Object can be used.
| |||||||||||
Adds the collection of locations where the Wallet Object can be used.
| |||||||||||
Adds a message to be associated with this object.
| |||||||||||
Adds a collection of messages to be associated with this object.
| |||||||||||
Adds a text module data.
| |||||||||||
Adds a collection of text modules data.
| |||||||||||
Sets the barcode label describing the contents of the barcode, such as "OFFER CODE" or
"MEMBER ID."
| |||||||||||
Sets the type of the barcode.
| |||||||||||
Sets the value encoded in the barcode.
| |||||||||||
Sets the id of the class associated with this object.
| |||||||||||
Sets the background color for the Info Module.
| |||||||||||
Sets the color for the font in this Info Module.
| |||||||||||
Sets the flag which determines whether to display the last update time of the Wallet Object.
| |||||||||||
Sets the issuer name of this offer object.
| |||||||||||
Sets the redemption code of the offer wallet object.
| |||||||||||
Sets offer object state.
| |||||||||||
Sets the offer title.
| |||||||||||
Sets the time period this object will be active and can be used.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Adds an image module data image uri.
If image modules data is also defined on the class, the ones defined here on the object will be displayed first, followed by those defined on the class.
Parameters | |
---|---|
uri |
UriData |
Returns | |
---|---|
OfferWalletObject.Builder |
Adds a collection of image module data image uris.
If image modules data is also defined on the class, the ones defined here on the object will be displayed first, followed by those defined on the class.
Parameters | |
---|---|
uris |
Collection |
Returns | |
---|---|
OfferWalletObject.Builder |
Adds an info module data label value row.
If info module data is also defined on the class, the one defined here on the object will be displayed first, followed by the one defined on the class.
Parameters | |
---|---|
row |
LabelValueRow |
Returns | |
---|---|
OfferWalletObject.Builder |
Adds a collection of info module data label value rows.
If info module data is also defined on the class, the one defined here on the object will be displayed first, followed by the one defined on the class.
Parameters | |
---|---|
rows |
Collection |
Returns | |
---|---|
OfferWalletObject.Builder |
Add a links module data.
If links module data is also defined on the class, the one defined here on the object will be displayed first, followed by those defined on the class.
Parameters | |
---|---|
uri |
UriData |
Returns | |
---|---|
OfferWalletObject.Builder |
Adds a collection of links module data.
If links module data is also defined on the class, the one defined here on the object will be displayed first, followed by those defined on the class.
Parameters | |
---|---|
uris |
Collection |
Returns | |
---|---|
OfferWalletObject.Builder |
Adds the location where the Wallet Object can be used.
The Wallet Object platform uses this information to trigger geolocated notifications to users.
Note that locations in the object override locations in the class which override locations in the Google Places ID.
Parameters | |
---|---|
location |
LatLng |
Returns | |
---|---|
OfferWalletObject.Builder |
Adds the collection of locations where the Wallet Object can be used.
The Wallet Object platform uses this information to trigger geolocated notifications to users.
Note that locations in the object override locations in the class which override locations in the Google Places ID.
Parameters | |
---|---|
locations |
Collection |
Returns | |
---|---|
OfferWalletObject.Builder |
Adds a message to be associated with this object. All users of this Wallet Object will receive its associated messages.
Parameters | |
---|---|
message |
WalletObjectMessage |
Returns | |
---|---|
OfferWalletObject.Builder |
Adds a collection of messages to be associated with this object. All users of this Wallet Object will receive its associated messages.
Parameters | |
---|---|
messages |
Collection |
Returns | |
---|---|
OfferWalletObject.Builder |
Adds a text module data.
If text module data is also defined on the class, the ones defined here on the object will be displayed first, followed by those defined on the class.
Parameters | |
---|---|
data |
TextModuleData |
Returns | |
---|---|
OfferWalletObject.Builder |
Adds a collection of text modules data.
If text module data is also defined on the class, the ones defined here on the object will be displayed first, followed by those defined on the class.
Parameters | |
---|---|
data |
Collection |
Returns | |
---|---|
OfferWalletObject.Builder |
Parameters | |
---|---|
barcodeAlternateText |
String |
Returns | |
---|---|
OfferWalletObject.Builder |
Sets the barcode label describing the contents of the barcode, such as "OFFER CODE" or "MEMBER ID."
Parameters | |
---|---|
barcodeLabel |
String |
Returns | |
---|---|
OfferWalletObject.Builder |
Sets the type of the barcode.
Acceptable values are:
Parameters | |
---|---|
barcodeType |
String |
Returns | |
---|---|
OfferWalletObject.Builder |
Sets the value encoded in the barcode.
Parameters | |
---|---|
barcodeValue |
String |
Returns | |
---|---|
OfferWalletObject.Builder |
Sets the id of the class associated with this object.
Parameters | |
---|---|
classId |
String |
Returns | |
---|---|
OfferWalletObject.Builder |
Parameters | |
---|---|
id |
String |
Returns | |
---|---|
OfferWalletObject.Builder |
Sets the background color for the Info Module.
The format is #hhhhhh where h is a hex digit.
Parameters | |
---|---|
color |
String |
Returns | |
---|---|
OfferWalletObject.Builder |
Sets the color for the font in this Info Module.
The format is #hhhhhh where h is a hex digit.
Parameters | |
---|---|
color |
String |
Returns | |
---|---|
OfferWalletObject.Builder |
Sets the flag which determines whether to display the last update time of the Wallet Object.
Parameters | |
---|---|
show |
boolean |
Returns | |
---|---|
OfferWalletObject.Builder |
Sets the issuer name of this offer object.
This field is required and should match issuer name specified for the corresponding offer class of the offer object being created. It will be displayed to the user in the accepting offer object confirmation screen.
Parameters | |
---|---|
issuerName |
String |
Returns | |
---|---|
OfferWalletObject.Builder |
Sets the redemption code of the offer wallet object.
Parameters | |
---|---|
redemptionCode |
String : The redemption code of the offer wallet object.
|
Returns | |
---|---|
OfferWalletObject.Builder |
Sets offer object state.
Supported states are defined by WalletObjectsConstants.State
Parameters | |
---|---|
state |
int |
Returns | |
---|---|
OfferWalletObject.Builder |
Sets the offer title.
This field is required and should match the title specified for the corresponding offer class of the offer object being created. It will be displayed to the user in the accepting offer object confirmation screen.
Parameters | |
---|---|
title |
String |
Returns | |
---|---|
OfferWalletObject.Builder |
Sets the time period this object will be active and can be used. An object's state will be changed to expired when this time period has passed.
Parameters | |
---|---|
interval |
TimeInterval |
Returns | |
---|---|
OfferWalletObject.Builder |