public class DefaultTokenListViewFactory extends java.lang.Object implements TokenListViewFactory
TokenListViewFactory provides a default list view of the token
list in a recycler view.TokenListViewFactory.TokenViewListener| Constructor and Description |
|---|
DefaultTokenListViewFactory() |
| Modifier and Type | Method and Description |
|---|---|
DefaultTokenListView |
build(android.view.ViewGroup parent,
TokenListViewFactory.TokenViewListener listener,
java.util.List<TokenVersion> tokens,
java.util.Map<PaymentMethodConfiguration,PaymentMethodIcon> icons)
This method is invoked to create a view which allows the user to select from a list of tokens
one which should be used to execute the payment.
|
public DefaultTokenListView build(android.view.ViewGroup parent, TokenListViewFactory.TokenViewListener listener, java.util.List<TokenVersion> tokens, java.util.Map<PaymentMethodConfiguration,PaymentMethodIcon> icons)
TokenListViewFactoryThe implementor does not need to insert the created view into the parent. This is done by the caller of the method.
build in interface TokenListViewFactoryparent - the parent view into which the token list will be inserted into.listener - the listener which is listening on the selected token.tokens - the list of tokens to display.icons - the icons which can be used within the token list.