public final class VolleyIconRequestManager extends java.lang.Object implements IconRequestManager
The payment method icons can be changed through the backend of wallee by the merchant and as such we have to load them dynamically. This request manager helps to fetch them. However it is not responsible to cache the icons in any way.
Fetching the icons do not require any permissions or credentials. The icons can be accessed by
anymore and as such we do not need anything else beside the RequestQueue to fetch the
icons.
| Constructor and Description |
|---|
VolleyIconRequestManager(RequestQueue requestQueue)
Constructs a request manager with a request queue.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fetchIcon(PaymentMethodConfiguration paymentMethodConfiguration,
RequestCallback<PaymentMethodIcon> callback)
This method fetches the payment method icon from the remote server.
|
public VolleyIconRequestManager(RequestQueue requestQueue)
requestQueue - the request queue which should be used. The request queue should be
shared with the rest of the app.public void fetchIcon(PaymentMethodConfiguration paymentMethodConfiguration, RequestCallback<PaymentMethodIcon> callback)
fetchIcon in interface IconRequestManagerpaymentMethodConfiguration - the payment method for which icon should be fetched for.callback - the callback which is invoked once the icon has been
loaded.