@Immutable @LevelUpApi(contract=INTERNAL) public abstract class PaymentPreferences extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static int | COLOR_UNKNOWNReturn code for when a color cannot be parsed or is otherwise missing. | 
| protected String | mPaymentPreferencesThe payment preferences string passed in from the constructor. | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | PaymentPreferences(String paymentPreferences) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract int | getColor()Subclasses must implement this to return the color index parsed or  COLOR_UNKNOWN. | 
| static int | getColorPreference(String preferenceData)Gets the color index of the provided  preferenceData. | 
public static final int COLOR_UNKNOWN
protected final String mPaymentPreferences
protected PaymentPreferences(String paymentPreferences)
paymentPreferences - the paymentPreferences string from the QR code.protected abstract int getColor()
COLOR_UNKNOWN.COLOR_UNKNOWN if none could be parsed.public static int getColorPreference(String preferenceData)
preferenceData.preferenceData - the preference string from the QR code.COLOR_UNKNOWN if parsing failed.