This method returns a card asset for the specified card network.

The SDK must be initialized before this method is called or an error will be thrown.

123456
@Throws(SdkUninitializedException::class)@JvmStaticfun getCardNetworkAsset(  context: Context,  cardNetwork: CardNetwork.Type): PrimerCardNetworkAsset
kotlin
copy

Parameters

Returns

cardNetwork
CardNetwork.Type
The card network that the asset represents.
The human-readable name of the card network (e.g., Visa, Mastercard)
cardImage
Drawable?
A small rectangular icon representing the card network.

Throws

An exception that will be thrown in case the SDK was not initialized properly. Before calling any of the manager's method, the SDK must be initialized using start method.