Search in sources :

Example 1 with Size

use of com.globalcollect.gateway.sdk.client.android.sdk.model.Size in project connect-sdk-client-android by Ingenico-ePayments.

the class PaymentProductSelectionActivity method updateLogos.

private void updateLogos(Region region, EnvironmentType environment, List<BasicPaymentItem> basicPaymentItems) {
    // if you want to specify the size of the logos you update, set resizedLogo to a size (width, height)
    Size resizedLogo = new Size(100, 100);
    // if you just want to get the default images, set
    // resizedLogo = null;
    AssetManager manager = AssetManager.getInstance(getApplicationContext());
    manager.updateLogos(region, environment, basicPaymentItems, resizedLogo);
}
Also used : AssetManager(com.globalcollect.gateway.sdk.client.android.sdk.manager.AssetManager) Size(com.globalcollect.gateway.sdk.client.android.sdk.model.Size)

Aggregations

AssetManager (com.globalcollect.gateway.sdk.client.android.sdk.manager.AssetManager)1 Size (com.globalcollect.gateway.sdk.client.android.sdk.model.Size)1